Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.

Commit af51240

Browse files
committed
Fixed the variant-of relationship tests for SPDX and a typo in the generated-from tests.
1 parent 61fe085 commit af51240

File tree

6 files changed

+9
-10
lines changed

6 files changed

+9
-10
lines changed

playwright.config.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ export default defineConfig({
9595
testDir: "./tests/api/features",
9696
testMatch: /.*\.ts/,
9797
dependencies: ["setup-api-data"],
98-
use: {
99-
ignoreHTTPSErrors: true,
100-
},
10198
},
10299
{
103100
name: "setup-api-data",

tests/api/features/relationship-variant-of.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ const cdxBinaryImagePurl =
88
const cdxIndexImagePurl =
99
"pkg:oci/openshift-ose-console@sha256:94a0d7feec34600a858c8e383ee0e8d5f4a077f6bbc327dcad8762acfcf40679";
1010
const spdxBinaryImagePurl =
11-
"pkg:oci/ubi9-container@sha256:d4c5d9c980678267b81c3c197a4a0dd206382111c912875a6cdffc6ca319b769?arch=aarch64&repository_url=registry.redhat.io/ubi9&tag=9.2-755.1697625012";
11+
"pkg:oci/flowlogs-pipeline@sha256:df416b77ce2e24110e23c0d0478e916fcf249a889f4be855e1834d0dd5d51af1?arch=amd64&repository_url=quay.io/redhat-user-workloads/ocp-network-observab-tenant/netobserv-operator/flowlogs-pipeline";
1212
const spdxIndexImagePurl =
13-
"pkg:oci/ubi9-container@sha256:2f168398c538b287fd705519b83cd5b604dc277ef3d9f479c28a2adb4d830a49?repository_url=registry.redhat.io/ubi9&tag=9.2-755.1697625012";
13+
"pkg:oci/flowlogs-pipeline@sha256:df416b77ce2e24110e23c0d0478e916fcf249a889f4be855e1834d0dd5d51af1?repository_url=quay.io/redhat-user-workloads/ocp-network-observab-tenant/netobserv-operator/flowlogs-pipeline";
1414

1515
test("Variant of / CDX / Binary image has ancestors that include index image / Get with pURL", async ({
1616
axios,

tests/api/fixtures.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ const getToken = async (baseURL?: string) => {
2929

3030
// Discover token endpoint
3131
const oidcConfigResponse = await axios.get(
32-
`${authUrl}/.well-known/openid-configuration`, {
32+
`${authUrl}/.well-known/openid-configuration`,
33+
{
3334
httpsAgent: new https.Agent({
3435
rejectUnauthorized: false,
35-
})
36+
}),
3637
}
3738
);
3839
const tokenServiceURL = oidcConfigResponse.data["token_endpoint"];
@@ -61,8 +62,8 @@ export const discoverTokenEndpoint = async (
6162
const indexPage = await axios.get<string>(baseURL, {
6263
maxRedirects: 0,
6364
httpsAgent: new https.Agent({
64-
rejectUnauthorized: false,
65-
})
65+
rejectUnauthorized: false,
66+
}),
6667
});
6768

6869
const matcher = indexPage.data.match(/window._env="([^"]+)"/);
1.61 KB
Binary file not shown.
-393 Bytes
Binary file not shown.

tests/common/constants.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ export const SBOM_FILES = [
3333
"RHEL-8.10.0.Z.MAIN+EUS.json.bz2",
3434
"rhel-9.2-eus.cdx.json.bz2",
3535
"rhel-9.2-eus.spdx.json.bz2",
36-
"spdx-ancestor-of-example.json.bz2"
36+
"spdx-ancestor-of-example.json.bz2",
37+
"example_container_index.json.bz2",
3738
];
3839

3940
export const ADVISORY_FILES = [

0 commit comments

Comments
 (0)