Skip to content

Commit abfceed

Browse files
feat(e2e): fix org links
Signed-off-by: Oleksandr Andriienko <oandriie@redhat.com>
1 parent b090485 commit abfceed

1 file changed

Lines changed: 14 additions & 13 deletions

File tree

workspaces/bulk-import/e2e-tests/tests/specs/bulk-import.spec.ts

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,39 +80,41 @@ async function catalogImportRegisterFromComponentUrl(page: Page, url: string) {
8080
await waitForLoad(page);
8181
}
8282

83+
export const GITHUB_ORG = 'janus-qe';
84+
8385
test.describe.serial("Bulk Import plugin", () => {
8486
test.skip(
8587
() => !!process.env.JOB_NAME?.includes("osd-gcp"),
8688
"skipping due to RHDHBUGS-555 on OSD Env",
8789
);
8890
test.describe.configure({ retries: process.env.CI ? 5 : 0 });
8991

90-
const catalogRepoName = `cloud-eda-1-bulk-import-test-${Date.now()}`;
92+
const catalogRepoName = `${GITHUB_ORG}-1-bulk-import-test-${Date.now()}`;
9193
const catalogRepoDetails = {
9294
name: catalogRepoName,
93-
url: `github.com/cloud-eda/${catalogRepoName}`,
94-
org: "github.com/cloud-eda",
95-
owner: "cloud-eda",
95+
url: `github.com/${GITHUB_ORG}/${catalogRepoName}`,
96+
org: `github.com/${GITHUB_ORG}`,
97+
owner: GITHUB_ORG,
9698
};
9799

98100
const catalogInfoYamlContent = `apiVersion: backstage.io/v1alpha1
99101
kind: Component
100102
metadata:
101103
name: ${catalogRepoName}
102104
annotations:
103-
github.com/project-slug: cloud-eda/${catalogRepoName}
105+
github.com/project-slug: ${GITHUB_ORG}/${catalogRepoName}
104106
spec:
105107
type: other
106108
lifecycle: unknown
107109
owner: user:default/rhdh-qe-2`;
108110

109111
const newRepoName = `bulk-import-${Date.now()}`;
110112
const newRepoDetails = {
111-
owner: "cloud-eda",
113+
owner: `${GITHUB_ORG}`,
112114
repoName: newRepoName,
113115
updatedComponentName: `${newRepoName}-updated`,
114116
labels: `bulkimport1: test1;bulkimport2: test2`,
115-
repoUrl: `github.com/cloud-eda/${newRepoName}`,
117+
repoUrl: `github.com/${GITHUB_ORG}/${newRepoName}`,
116118
};
117119

118120
test.beforeAll(async ({ rhdh }) => {
@@ -394,7 +396,7 @@ test.describe
394396
const existingComponentDetails = {
395397
name: "janus-test-2-bulk-import-test",
396398
repoName: "janus-test-2-bulk-import-test",
397-
url: "https://github.com/cloud-eda/janus-test-2-bulk-import-test/blob/main/catalog-info.yaml",
399+
url: `https://github.com/${GITHUB_ORG}/janus-test-2-bulk-import-test/blob/main/catalog-info.yaml`,
398400
};
399401

400402
test.beforeAll(async ({ rhdh }) => {
@@ -503,13 +505,12 @@ test.describe
503505
// ============================================================================
504506

505507
test.describe("Bulk import tests orchestrator mode", () => {
506-
const catalogRepoName = `cloud-eda-1-bulk-import-test-${Date.now()}`;
507-
const githubOrg = "cloud-eda";
508+
const catalogRepoName = `${GITHUB_ORG}-1-bulk-import-test-${Date.now()}`;
508509
const catalogRepoDetailsForOrchestrator = {
509510
name: catalogRepoName,
510-
url: `github.com/${githubOrg}/${catalogRepoName}`,
511-
org: `github.com/${githubOrg}`,
512-
owner: githubOrg,
511+
url: `github.com/${GITHUB_ORG}/${catalogRepoName}`,
512+
org: `github.com/${GITHUB_ORG}`,
513+
owner: GITHUB_ORG,
513514
};
514515

515516
test.beforeAll(async ({ rhdh }) => {

0 commit comments

Comments
 (0)