{
{pkg.binary.architecture}
-
+
{pkg.binary.installer && (
{
/>
)}
{
return (
-
+
-
+
{fetchExtension(filename)}
diff --git a/src/components/ReleaseNotesRender/__tests__/ReleaseNotesRender.test.tsx b/src/components/ReleaseNotesRender/__tests__/ReleaseNotesRender.test.tsx
index 3e023b49b..a6ee6f9f3 100644
--- a/src/components/ReleaseNotesRender/__tests__/ReleaseNotesRender.test.tsx
+++ b/src/components/ReleaseNotesRender/__tests__/ReleaseNotesRender.test.tsx
@@ -73,6 +73,7 @@ describe('ReleaseNotesRender component', () => {
function mockReleaseNotes(num: number) {
let releaseNoteDataBag = { releaseNoteAPIResponse :createMockReleaseNotesAPI(num), isValid: true };
+ releaseNoteDataBag.releaseNoteAPIResponse.release_name = 'jdk-20+36';
releaseNoteDataBag.releaseNoteAPIResponse.release_notes[0].type = 'Enhancement';
return releaseNoteDataBag;
}
@@ -92,6 +93,7 @@ describe('ReleaseNotesRender component', () => {
queryString.parse = vi.fn().mockReturnValue({'version': 'version'});
function mockReleaseNotes() {
let releaseNoteDataBag = { releaseNoteAPIResponse :createMockReleaseNotesAPI(1), isValid: true };
+ releaseNoteDataBag.releaseNoteAPIResponse.release_name = 'version';
releaseNoteDataBag.releaseNoteAPIResponse.release_notes[0].priority = undefined;
return releaseNoteDataBag;
}
diff --git a/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap b/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap
index 9f128be9a..8e48eb01b 100644
--- a/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap
+++ b/src/components/ReleaseNotesRender/__tests__/__snapshots__/ReleaseNotesRender.test.tsx.snap
@@ -6,7 +6,7 @@ exports[`ReleaseNotesRender component > should render correctly - no release not
class="text-center"
>
- version
+ release_name_mock
should render correctly - version not de
-
+
+ release_name_mock
+
should render correctly - version not de
-
- Oops... We couldn't find those release notes
-
-
- Please ensure that you have a specified a version using the version URL parameter:
-
- ?version=x.x.x
-
-
+
+ This section organizes the changes in the selected update release by the main component under which each issue is filed.
+
+
+
+ NOTE:
+
+ These are the release notes for the latest LTS version. If you need a different version, please visit the
+
+ download page
+
+ to select another one.
+
+
+
+ The total number of fixes marked as P1 is: 2
+
+
+
@@ -64,7 +893,7 @@ exports[`ReleaseNotesRender component > should render correctly 1`] = `
class="text-center"
>
- jdk-17.0.1+12
+ release_name_mock
should render correctly 1`] = `
This section organizes the changes in the selected update release by the main component under which each issue is filed.
+
+
+ NOTE:
+
+ These are the release notes for the latest LTS version. If you need a different version, please visit the
+
+ download page
+
+ to select another one.
+
The total number of fixes marked as P1 is: 2
@@ -83,7 +924,7 @@ exports[`ReleaseNotesRender component > should render correctly 1`] = `
should render correctly 1`] = `
tabindex="-1"
>
+ >
+ Text
+
@@ -480,7 +801,7 @@ exports[`TemurinArchiveTable component > renders correctly 1`] = `
- {asset.installer_link ? (
- Checksum
- ): <>>
+ {asset.installer_link && asset.installer_checksum
+ ? Checksum
+ : Not available
}
@@ -105,7 +105,10 @@ const TemurinArchiveTable = ({results, updatePage}) => {
/>
- Checksum
+ {asset.checksum
+ ? Checksum
+ : Not available
+ }
)
diff --git a/src/components/TemurinDownloadTable/__tests__/TemurinDownloadTable.test.tsx b/src/components/TemurinDownloadTable/__tests__/TemurinDownloadTable.test.tsx
index 450a5ced8..23287e0a1 100644
--- a/src/components/TemurinDownloadTable/__tests__/TemurinDownloadTable.test.tsx
+++ b/src/components/TemurinDownloadTable/__tests__/TemurinDownloadTable.test.tsx
@@ -44,4 +44,20 @@ describe('TemurinDownloadTable component', () => {
);
expect(container).toMatchSnapshot();
});
+
+ it('renders correctly - Without checksum', () => {
+ let releases = [
+ createRandomTemurinRelease(true),
+ ];
+
+ // erase checksum
+ releases[0].binaries[0].checksum = undefined;
+
+ const { container } = render(
+
+ );
+ expect(container).toMatchSnapshot();
+ });
});
\ No newline at end of file
diff --git a/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap b/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
index ce28c1b05..de4d82503 100644
--- a/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
+++ b/src/components/TemurinDownloadTable/__tests__/__snapshots__/TemurinDownloadTable.test.tsx.snap
@@ -1,5 +1,213 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+exports[`TemurinDownloadTable component > renders correctly - Without checksum 1`] = `
+
+
+
+
+
+
+
+ release_name_mock
+
+
+
+ Temurin
+
+
+ This build is JCK certified
+
+
+
+
+
+
+
+
+
+ January 1, 2020
+
+
+
+ Os_mock
+
+
+ arch_mock
+
+
+
+
+
+
+
+
+`;
+
exports[`TemurinDownloadTable component > renders correctly - no data 1`] = `
renders correctly - with source 1`] =
class="align-middle"
>
@@ -203,7 +411,7 @@ exports[`TemurinDownloadTable component > renders correctly - with source 1`] =
renders correctly - with source 1`] =
class="align-middle"
>
@@ -346,7 +554,7 @@ exports[`TemurinDownloadTable component > renders correctly - with source 1`] =
renders correctly - with source 1`] =
@@ -405,7 +613,7 @@ exports[`TemurinDownloadTable component > renders correctly - with source 1`] =
renders correctly 1`] = `
class="align-middle"
>
@@ -563,7 +771,7 @@ exports[`TemurinDownloadTable component > renders correctly 1`] = `
renders correctly 1`] = `
class="align-middle"
>
@@ -706,7 +914,7 @@ exports[`TemurinDownloadTable component > renders correctly 1`] = `
renders correctly 1`] = `
@@ -765,7 +973,7 @@ exports[`TemurinDownloadTable component > renders correctly 1`] = `
{
{capitalize(pkg.os)}
{pkg.architecture === 'x32' ? 'x86' : pkg.architecture}
-
+
{pkg.binaries.map(
(binary, i): string | JSX.Element =>
binary && (
@@ -105,7 +105,7 @@ export default TemurinDownloadTable;
const BinaryTable = ({ checksum, link, extension, type, size, os, arch, version }) => {
return (
-
+
@@ -115,19 +115,17 @@ const BinaryTable = ({ checksum, link, extension, type, size, os, arch, version
-
- Checksum
-
+ {checksum
+ ? Checksum
+ : Not available
+ }
-
+
{extension}
diff --git a/src/components/TemurinNightlyTable/__tests__/TemurinNightlyTable.test.tsx b/src/components/TemurinNightlyTable/__tests__/TemurinNightlyTable.test.tsx
index eb4038cf8..e1b6d07c4 100644
--- a/src/components/TemurinNightlyTable/__tests__/TemurinNightlyTable.test.tsx
+++ b/src/components/TemurinNightlyTable/__tests__/TemurinNightlyTable.test.tsx
@@ -30,4 +30,23 @@ describe('TemurinNightlyTable component', () => {
);
expect(container).toMatchSnapshot();
});
+
+ it('renders correctly - Without checksum', () => {
+ const data = {
+ pagecount: null,
+ releases: [
+ createRandomTemurinReleases(true),
+ ]
+ }
+
+ // erase checksum
+ data.releases[0].platforms.platform_mock.assets[0].checksum = undefined;
+
+ const { container } = render(
+
+ );
+ expect(container).toMatchSnapshot();
+ });
});
\ No newline at end of file
diff --git a/src/components/TemurinNightlyTable/__tests__/__snapshots__/TemurinNightlyTable.test.tsx.snap b/src/components/TemurinNightlyTable/__tests__/__snapshots__/TemurinNightlyTable.test.tsx.snap
index 8427148cd..995f519fe 100644
--- a/src/components/TemurinNightlyTable/__tests__/__snapshots__/TemurinNightlyTable.test.tsx.snap
+++ b/src/components/TemurinNightlyTable/__tests__/__snapshots__/TemurinNightlyTable.test.tsx.snap
@@ -1,5 +1,103 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html
+exports[`TemurinNightlyTable component > renders correctly - Without checksum 1`] = `
+
+
+
+
+
+
+ Platform
+
+
+ Type
+
+
+ Build/Tag
+
+
+ Date
+
+
+ Binary
+
+
+ Installer
+
+
+ SHA256
+
+
+
+
+
+
+ Os_mock
+
+ architecture_mock
+
+
+ type_mock
+
+
+ release_name_mock
+
+
+ January 1, 2020
+
+
+
+ extension_mock (0 MB)
+
+
+
+
+ installer_extension_mock
+
+
+
+ Text
+
+
+
+
+
+
+`;
+
exports[`TemurinNightlyTable component > renders correctly - no data 1`] = `
)
)
diff --git a/src/hooks/__tests__/__snapshots__/fetchLatestTemurin.test.tsx.snap b/src/hooks/__tests__/__snapshots__/fetchLatestTemurin.test.tsx.snap
index 97b4427b1..d8744cd00 100644
--- a/src/hooks/__tests__/__snapshots__/fetchLatestTemurin.test.tsx.snap
+++ b/src/hooks/__tests__/__snapshots__/fetchLatestTemurin.test.tsx.snap
@@ -2,7 +2,7 @@
exports[`fetchLatestForOS > binary URL is set correctly 1`] = `
{
- "checksum": "sha265sum_mock",
+ "checksum": "sha256sum_mock",
"link": "https://link_mock/",
"release_name": "release_name_mock",
}
@@ -10,7 +10,7 @@ exports[`fetchLatestForOS > binary URL is set correctly 1`] = `
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",
}
diff --git a/src/hooks/fetchMarketplace.tsx b/src/hooks/fetchMarketplace.tsx
index 2d211fd1a..ba6a78185 100644
--- a/src/hooks/fetchMarketplace.tsx
+++ b/src/hooks/fetchMarketplace.tsx
@@ -69,14 +69,18 @@ export interface MarketplaceRelease {
package: {
name: string;
link: URL;
+ // Name of previous typo to be removed when vendors update their code to fix the typo
sha265sum: string;
+ sha256sum: string;
sha256sum_link: URL;
signature_link: URL;
}
installer?: [{
name: string;
link: URL;
+ // Name of previous typo to be removed when vendors update their code to fix the typo
sha265sum: string;
+ sha256sum: string;
sha256sum_link: URL;
signature_link: URL;
}]
diff --git a/src/hooks/fetchReleaseNotes.tsx b/src/hooks/fetchReleaseNotes.tsx
index 833dc37d4..7c210e59e 100644
--- a/src/hooks/fetchReleaseNotes.tsx
+++ b/src/hooks/fetchReleaseNotes.tsx
@@ -3,22 +3,32 @@ import { useEffect, useState } from 'react';
import axios from 'axios';
const baseUrl = 'https://api.adoptium.net/v3/info/release_notes';
+const releaseNamesUrl = 'https://api.adoptium.net/v3/info/release_names?heap_size=normal&image_type=jdk<s=true&page=0&page_size=1&project=jdk&release_type=ga&semver=false&sort_method=DEFAULT&sort_order=DESC&vendor=eclipse';
export function fetchReleaseNotesForVersion(
isVisible: boolean,
version: any,
sortReleaseNotesByCallback?: Function,
): ReleaseNoteDataBag | null {
- if (!version) {
- return null
- }
const [releaseNotes, setReleaseNotes] = useState(null);
useEffect(() => {
if (isVisible) {
(async () => {
- const url = `${baseUrl}/${version}`;
+ let versionToDisplay = version;
+
+ if(!versionToDisplay) {
+ // retrieve the last version as default Release notes
+ await axios.get(releaseNamesUrl)
+ .then(function (response) {
+ versionToDisplay = response.data.releases[0];
+ })
+ .catch(function (error) {
+ });
+ }
+
+ const url = `${baseUrl}/${versionToDisplay}`;
await axios.get(url.toString())
.then(function (response) {
diff --git a/src/json/adopters.json b/src/json/adopters.json
index faf1e0b76..d59612580 100644
--- a/src/json/adopters.json
+++ b/src/json/adopters.json
@@ -109,6 +109,12 @@
"url": "https://opensource.mercedes-benz.com/",
"tier": "adopter"
},
+ {
+ "name": "Michelin",
+ "logo": "adopters/logo-michelin.svg",
+ "url": "https://opensource.michelin.io/",
+ "tier": "adopter"
+ },
{
"name": "Microsoft",
"logo": "microsoft.svg",
diff --git a/src/pages/__tests__/__snapshots__/download.test.tsx.snap b/src/pages/__tests__/__snapshots__/download.test.tsx.snap
index c0069364a..1ebd65da7 100644
--- a/src/pages/__tests__/__snapshots__/download.test.tsx.snap
+++ b/src/pages/__tests__/__snapshots__/download.test.tsx.snap
@@ -46,7 +46,7 @@ exports[`Download page > renders correctly - vendor 1`] = `
>
renders correctly 1`] = `
>
renders correctly 1`] = `