@@ -334,6 +334,13 @@ var _ = Describe("RHOBS Synthetic Monitoring", Ordered, func() {
334334 )
335335
336336 BeforeAll (func (ctx context.Context ) {
337+ // Emergency skip switch - allows disabling RHOBS API tests through app-interface
338+ // In the case of an emergency outage in the rhobs API caused by an RMO misconfiguration
339+ // set SKIP_RHOBS_SYNTHETICS_TESTS: "true" to in the app-interface job and rhobs API tests will be skipped.
340+ if os .Getenv ("SKIP_RHOBS_SYNTHETICS_TESTS" ) == "true" {
341+ Skip ("RHOBS Synthetic Monitoring tests skipped via SKIP_RHOBS_SYNTHETICS_TESTS environment variable" )
342+ }
343+
337344 log .SetLogger (GinkgoLogr )
338345 var err error
339346 k8s , err = openshift .New (GinkgoLogr )
@@ -1246,10 +1253,10 @@ func createRMOConfigMap(ctx context.Context, k8s *openshift.Client, creds *OIDCC
12461253 Namespace : "openshift-route-monitor-operator" ,
12471254 },
12481255 Data : map [string ]string {
1249- "probe-api-url" : creds .ProbeAPIURL ,
1250- "oidc-client-id" : creds .ClientID ,
1251- "oidc-client-secret" : creds .ClientSecret ,
1252- "oidc-issuer-url" : creds .IssuerURL ,
1256+ "probe-api-url" : creds .ProbeAPIURL ,
1257+ "oidc-client-id" : creds .ClientID ,
1258+ "oidc-client-secret" : creds .ClientSecret ,
1259+ "oidc-issuer-url" : creds .IssuerURL ,
12531260 "skip-infrastructure-health-check" : skipInfraHealthCheck ,
12541261 },
12551262 }
0 commit comments