Skip to content

Commit f4d0247

Browse files
committed
added sleep to wait for deletion of prom, grafana
1 parent a05967c commit f4d0247

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/ItMonitoringExporter.java

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1130,14 +1130,19 @@ private static void uninstallPrometheusGrafanaViaChart() throws Exception {
11301130
ExecCommand.exec(crdCmd);
11311131
crdCmd = "kubectl delete -f " + monitoringExporterEndToEndDir + "/grafana/persistence.yaml";
11321132
ExecCommand.exec(crdCmd);
1133+
Thread.sleep(15000);
11331134

11341135
// uninstall prometheus
11351136
logger.info("Uninstalling prometheus");
11361137
crdCmd = "helm delete --purge prometheus";
11371138
ExecCommand.exec(crdCmd);
1139+
Thread.sleep(15000);
1140+
logger.info("Uninstalling prometheus persistence ");
11381141
crdCmd = "kubectl delete -f " + monitoringExporterEndToEndDir + "/prometheus/persistence.yaml";
11391142
ExecCommand.exec(crdCmd);
1143+
Thread.sleep(15000);
11401144

1145+
logger.info("Uninstalling namespace monitoring ");
11411146
crdCmd = "kubectl delete namespace monitoring";
11421147
TestUtils.exec(crdCmd);
11431148
}
@@ -1154,9 +1159,10 @@ private static void uninstallMySQL() throws Exception {
11541159
logger.info("Uninstalling mysql");
11551160
String crdCmd = " kubectl delete -f " + monitoringExporterEndToEndDir + "mysql/mysql.yaml";
11561161
ExecCommand.exec(crdCmd);
1157-
1162+
Thread.sleep(15000);
11581163
crdCmd = " kubectl delete -f " + monitoringExporterEndToEndDir + "mysql/persistence.yaml";
11591164
ExecCommand.exec(crdCmd);
1165+
Thread.sleep(15000);
11601166
deletePvDir();
11611167
}
11621168

0 commit comments

Comments
 (0)