Skip to content

Commit

Permalink
Correct sha265 name to sha256
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Nov 30, 2024
1 parent 4e3f016 commit f01a942
Show file tree
Hide file tree
Showing 7 changed files with 124 additions and 146 deletions.
8 changes: 4 additions & 4 deletions src/__fixtures__/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export const createRandomMarketplaceRelease = (
package: {
name: "name_mock.tar.gz",
link: new URL("https://link_mock"),
sha265sum: `sha265sum_mock${id}`,
sha256sum: `sha256sum_mock${id}`,
sha256sum_link: new URL("https://sha256sum_link_mock"),
signature_link: new URL("https://signature_link_mock"),
},
Expand All @@ -69,7 +69,7 @@ export const createRandomMarketplaceRelease = (
{
name: "installer_name_mock.msi",
link: new URL("https://installer_link_mock"),
sha265sum: "installer_sha265sum_mock",
sha256sum: "installer_sha256sum_mock",
sha256sum_link: new URL("https://installer_sha256sum_link_mock"),
signature_link: new URL("https://installer_signature_link_mock"),
},
Expand Down Expand Up @@ -114,7 +114,7 @@ export const mockLatestTemurin = (installer): LatestTemurin => ({
package: {
name: "name_mock.tar.gz",
link: new URL("https://link_mock"),
checksum: "sha265sum_mock",
checksum: "sha256sum_mock",
checksum_link: new URL("https://sha256sum_link_mock"),
metadata_link: new URL("https://metadata_link_mock"),
signature_link: new URL("https://signature_link_mock"),
Expand All @@ -125,7 +125,7 @@ export const mockLatestTemurin = (installer): LatestTemurin => ({
? {
name: "installer_name_mock.msi",
link: new URL("https://installer_link_mock"),
checksum: "installer_sha265sum_mock",
checksum: "installer_sha256sum_mock",
checksum_link: new URL("https://installer_sha256sum_link_mock"),
metadata_link: new URL("https://installer_metadata_link_mock"),
signature_link: new URL("https://installer_signature_link_mock"),
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

exports[`fetchLatestForOS > binary URL is set correctly 1`] = `
{
"checksum": "sha265sum_mock",
"checksum": "sha256sum_mock",
"link": "https://link_mock/",
"release_name": "release_name_mock",
}
`;

exports[`fetchLatestForOS > installer is returned if available 1`] = `
{
"checksum": "installer_sha265sum_mock",
"checksum": "installer_sha256sum_mock",
"link": "https://installer_link_mock/",
"release_name": "release_name_mock",
}
Expand Down
2 changes: 2 additions & 0 deletions src/hooks/fetchMarketplace.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export interface MarketplaceRelease {
name: string
link: URL
sha265sum: string
sha256sum: string
sha256sum_link: URL
signature_link: URL
}
Expand All @@ -86,6 +87,7 @@ export interface MarketplaceRelease {
name: string
link: URL
sha265sum: string
sha256sum: string
sha256sum_link: URL
signature_link: URL
},
Expand Down
4 changes: 2 additions & 2 deletions src/pages/__tests__/__snapshots__/download.test.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports[`Download page > renders correctly - vendor 1`] = `
>
<a
class="btn btn-lg btn-outline-dark m-2"
data-bs-checksum="sha265sum_mock"
data-bs-checksum="sha256sum_mock"
data-bs-target="#checksumModal"
data-bs-toggle="modal"
href=""
Expand Down Expand Up @@ -218,7 +218,7 @@ exports[`Download page > renders correctly 1`] = `
>
<a
class="btn btn-lg btn-outline-dark m-2"
data-bs-checksum="sha265sum_mock"
data-bs-checksum="sha256sum_mock"
data-bs-target="#checksumModal"
data-bs-toggle="modal"
href=""
Expand Down
4 changes: 2 additions & 2 deletions src/pages/__tests__/download.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import Download, { Head } from "../download"
const location = {
state: {
link: "https://fake-download.tar.gz",
checksum: "sha265sum_mock",
checksum: "sha256sum_mock",
os: "linux",
arch: "x64",
type: "jdk",
Expand Down Expand Up @@ -44,7 +44,7 @@ describe("Download page", () => {
const location = {
state: {
link: "https://fake-download.tar.gz",
checksum: "sha265sum_mock",
checksum: "sha256sum_mock",
os: "linux",
arch: "x64",
java_version: "1.0.0",
Expand Down
Loading

0 comments on commit f01a942

Please sign in to comment.