Skip to content

Commit

Permalink
fix test results not found issue in nightly job
Browse files Browse the repository at this point in the history
  • Loading branch information
subhashkhileri committed Jan 17, 2025
1 parent de30df8 commit bd739e6
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .ibm/pipelines/jobs/periodic.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,28 @@ handle_nightly() {
initiate_deployments
add_sanity_plugins_check
deploy_test_backstage_provider "${NAME_SPACE}"

run_standard_deployment_tests
run_rds_deployment_tests
# run_runtime_config_change_tests

}

run_standard_deployment_tests() {
local url="https://${RELEASE_NAME}-backstage-${NAME_SPACE}.${K8S_CLUSTER_ROUTER_BASE}"
check_and_test "${RELEASE_NAME}" "${NAME_SPACE}" "${url}"
local rbac_url="https://${RELEASE_NAME_RBAC}-backstage-${NAME_SPACE_RBAC}.${K8S_CLUSTER_ROUTER_BASE}"
check_and_test "${RELEASE_NAME_RBAC}" "${NAME_SPACE_RBAC}" "${rbac_url}"
}

run_rds_deployment_tests() {
# Only test TLS config with RDS and Change configuration at runtime in nightly jobs
initiate_rds_deployment "${RELEASE_NAME}" "${NAME_SPACE_RDS}"
local rds_url="https://${RELEASE_NAME}-backstage-${NAME_SPACE_RDS}.${K8S_CLUSTER_ROUTER_BASE}"
check_and_test "${RELEASE_NAME}" "${NAME_SPACE_RDS}" "${rds_url}"
}

run_runtime_config_change_tests() {
# Deploy `showcase-runtime` to run tests that require configuration changes at runtime
configure_namespace "${NAME_SPACE_RUNTIME}"
uninstall_helmchart "${NAME_SPACE_RUNTIME}" "${RELEASE_NAME}"
Expand Down

0 comments on commit bd739e6

Please sign in to comment.