Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions workspaces/tech-radar/e2e-tests/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ export default defineConfig({
{
name: "tech-radar",
},
{
name: "tech-radar-app-next",
},
],
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
app:
title: RHDH Tech Radar Test Instance (app-next)
backend:
reading:
allow:
- host: ${TECH_RADAR_DATA_URL}
techRadar:
url: "http://${TECH_RADAR_DATA_URL}/tech-radar"
signInPage: oidc
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
# rhdh app config file
# this file is used to merge with the default values of the rhdh app config

app:
title: RHDH Tech Radar Test Instance
title: RHDH Tech Radar Test Instance (app)
backend:
reading:
allow:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
includes:
- dynamic-plugins.default.yaml
plugins:
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-tech-radar:bs_1.49.4__1.17.0
disabled: false
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/backstage-community-plugin-tech-radar-backend:bs_1.49.4__1.16.0
disabled: false
- package: oci://ghcr.io/redhat-developer/rhdh-plugin-export-overlays/red-hat-developer-hub-backstage-plugin-app-auth:bs_1.49.4__0.0.1
disabled: false
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: v1
kind: Secret
metadata:
name: rhdh-secrets
type: Opaque
stringData:
TECH_RADAR_DATA_URL: $TECH_RADAR_DATA_URL
APP_CONFIG_app_packageName: app-next
ENABLE_STANDARD_MODULE_FEDERATION: "true"
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import { test, expect, Page } from "@red-hat-developer-hub/e2e-test-utils/test";
import { $ } from "@red-hat-developer-hub/e2e-test-utils/utils";
import path from "path";

const secretsFileAppNext = "tests/config/rhdh-secrets-next.yaml";
const configFileAppNext = "tests/config/app-config-rhdh-next.yaml";
const setupScript = path.join(
import.meta.dirname,
"deploy-customization-provider.sh",
Expand All @@ -10,7 +12,13 @@ const setupScript = path.join(
test.describe("Test tech-radar plugin", () => {
test.beforeAll(async ({ rhdh }) => {
const project = rhdh.deploymentConfig.namespace;
await rhdh.configure({ auth: "keycloak" });
await rhdh.configure({
auth: "keycloak",
...(project === "tech-radar-app-next" && {
appConfig: configFileAppNext,
secrets: secretsFileAppNext,
}),
});
await $`bash ${setupScript} ${project}`;
process.env.TECH_RADAR_DATA_URL = (
await rhdh.k8sClient.getRouteLocation(
Expand Down