Skip to content

Commit edc2b56

Browse files
authored
chore(e2e): skip topology plugin test on k8s clusters (#2208)
1 parent b91248f commit edc2b56

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

.ibm/pipelines/utils.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ apply_yaml_files() {
453453
# Select the configuration file based on the namespace or job
454454
config_file=$(select_config_map_file)
455455
# Apply the ConfigMap with the correct file
456-
if [[ "${project}" == *showcase-k8s* ]]; then
456+
if [[ "${project}" == *showcase-k8s* ]]; then # Specific to non-RBAC deployment on K8S
457457
create_app_config_map_k8s "$config_file" "$project"
458458
else
459459
create_app_config_map "$config_file" "$project"
@@ -474,8 +474,9 @@ apply_yaml_files() {
474474
oc apply -f "$dir/resources/pipeline-run/hello-world-pipeline-run.yaml"
475475

476476
# Create Deployment and Pipeline for Topology test.
477-
oc apply -f "$dir/resources/topology_test/topology-test.yaml"
478-
477+
if [[ "${project}" != *k8s* ]]; then # Specific to OCP deployments (uses Route which is not supported by K8S)
478+
oc apply -f "$dir/resources/topology_test/topology-test.yaml"
479+
fi
479480
}
480481

481482
deploy_test_backstage_provider() {

e2e-tests/playwright.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ export default defineConfig({
9797
"**/playwright/e2e/authProviders/**/*.spec.ts",
9898
"**/playwright/e2e/plugins/bulk-import.spec.ts",
9999
"**/playwright/e2e/plugins/tekton/tekton.spec.ts",
100+
"**/playwright/e2e/plugins/topology/topology.spec.ts", // uses Route (not supported in K8S)
100101
"**/playwright/e2e/catalog-scaffoldedfromLink.spec.ts",
101102
"**/playwright/e2e/plugins/ocm.spec.ts",
102103
"**/playwright/e2e/audit-log/**/*.spec.ts",

0 commit comments

Comments
 (0)