@@ -78,7 +78,7 @@ const operatorUtils = {
7878 ) . then ( ( result ) => {
7979 expect ( result . code ) . to . eq ( 0 ) ;
8080 cy . log ( `CMO CSV updated successfully with Monitoring Plugin image: ${ result . stdout } ` ) ;
81- cy . reload ( ) ;
81+ cy . reload ( true ) ;
8282 } ) ;
8383 } else {
8484 cy . log ( 'MP_IMAGE is NOT set. Skipping patching the image in CMO operator CSV.' ) ;
@@ -189,7 +189,7 @@ const operatorUtils = {
189189 ) . then ( ( result ) => {
190190 expect ( result . code ) . to . eq ( 0 ) ;
191191 cy . log ( `COO CSV updated successfully with Monitoring Console Plugin image: ${ result . stdout } ` ) ;
192- cy . reload ( ) ;
192+ cy . reload ( true ) ;
193193 } ) ;
194194 } else {
195195 cy . log ( 'MCP_CONSOLE_IMAGE is NOT set. Skipping patching the image in COO operator CSV.' ) ;
@@ -228,7 +228,7 @@ const operatorUtils = {
228228 cy . log ( `Monitoring plugin pod is now running in namespace: ${ MCP . namespace } ` ) ;
229229 } ) ;
230230 cy . exec ( `oc label namespace openshift-cluster-observability-operator openshift.io/cluster-monitoring="true" --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
231- cy . reload ( ) ;
231+ cy . reload ( true ) ;
232232 cy . visit ( '/monitoring/v2/dashboards' ) ;
233233 cy . url ( ) . should ( 'include' , '/monitoring/v2/dashboards' ) ;
234234 } ,
@@ -250,7 +250,7 @@ const operatorUtils = {
250250 ) . then ( ( result ) => {
251251 expect ( result . code ) . to . eq ( 0 ) ;
252252 cy . log ( `CMO CSV reverted successfully with Monitoring Plugin image: ${ result . stdout } ` ) ;
253- cy . reload ( ) ;
253+ cy . reload ( true ) ;
254254 } ) ;
255255 } else {
256256 cy . log ( 'MP_IMAGE is NOT set. Skipping reverting the image in CMO operator CSV.' ) ;
@@ -266,6 +266,21 @@ const operatorUtils = {
266266 `oc delete ${ config . kind } ${ config . name } --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ,
267267 ) ;
268268
269+ cy . log ( 'Remove openshift-cluster-sample-dashboard instance.' ) ;
270+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/openshift-cluster-sample-dashboard.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
271+
272+ cy . log ( 'Remove perses-dashboard-sample instance.' ) ;
273+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/perses-dashboard-sample.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
274+
275+ cy . log ( 'Remove prometheus-overview-variables instance.' ) ;
276+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/prometheus-overview-variables.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
277+
278+ cy . log ( 'Remove thanos-compact-overview-1var instance.' ) ;
279+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/thanos-compact-overview-1var.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
280+
281+ cy . log ( 'Remove Thanos Querier instance.' ) ;
282+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/thanos-querier-datasource.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
283+
269284 cy . log ( 'Remove perses-dev namespace' ) ;
270285 cy . executeAndDelete ( `oc delete namespace perses-dev --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
271286
@@ -279,6 +294,21 @@ const operatorUtils = {
279294 `oc delete ${ config . kind } ${ config . name } --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ,
280295 ) ;
281296
297+ cy . log ( 'Remove openshift-cluster-sample-dashboard instance.' ) ;
298+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/openshift-cluster-sample-dashboard.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
299+
300+ cy . log ( 'Remove perses-dashboard-sample instance.' ) ;
301+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/perses-dashboard-sample.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
302+
303+ cy . log ( 'Remove prometheus-overview-variables instance.' ) ;
304+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/prometheus-overview-variables.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
305+
306+ cy . log ( 'Remove thanos-compact-overview-1var instance.' ) ;
307+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/thanos-compact-overview-1var.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
308+
309+ cy . log ( 'Remove Thanos Querier instance.' ) ;
310+ cy . executeAndDelete ( `oc delete -f ./cypress/fixtures/coo/thanos-querier-datasource.yaml --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
311+
282312 cy . log ( 'Remove Cluster Observability Operator namespace' ) ;
283313 cy . executeAndDelete ( `oc delete namespace ${ MCP . namespace } --kubeconfig ${ Cypress . env ( 'KUBECONFIG_PATH' ) } ` ) ;
284314
0 commit comments