Skip to content

Commit 5f08887

Browse files
committed
fix
1 parent d7ecd8f commit 5f08887

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ private void setupOperatorAndDomain(String operatorGitRelease, String operatorRe
6565
dom_ns.add(DOM_NS);
6666
operatorMap.put("domainNamespaces", dom_ns);
6767
operator20 = TestUtils.createOperator(operatorMap, Operator.RESTCertType.LEGACY);
68+
TestUtils.ExecAndPrintLog("kubectl get all --all-namespaces");
6869

6970
Map<String, Object> wlstDomainMap = TestUtils.loadYaml(DOMAININIMAGE_WLST_YAML);
7071
wlstDomainMap.put("domainUID", DUID);
7172
wlstDomainMap.put("namespace", DOM_NS);
7273
wlstDomainMap.put("projectRoot", opUpgradeTmpDir + "/weblogic-kubernetes-operator");
7374
domain = TestUtils.createDomain(wlstDomainMap);
75+
TestUtils.ExecAndPrintLog("kubectl get all --all-namespaces");
7476
domain.verifyDomainCreated();
7577
// testBasicUseCases(domain);
7678
// testClusterScaling(operator20, domain);
@@ -91,6 +93,7 @@ public void cleanupOperatorAndDomain() throws Exception {
9193
ExecResult result = cleanup();
9294
logger.log(Level.INFO, "cleanup stdout\n" + result.stdout());
9395
logger.log(Level.INFO, "cleanup stderr\n" + result.stderr());
96+
TestUtils.ExecAndPrintLog("helm del --purge operator-upgrade");
9497
TestUtils.ExecAndPrintLog(
9598
"kubectl delete pods,services,deployments,replicasets,configmaps,services --all --grace-period=0 --force --ignore-not-found -n "
9699
+ OP_NS);
@@ -101,6 +104,7 @@ public void cleanupOperatorAndDomain() throws Exception {
101104
"kubectl delete crd --all --grace-period=0 --ignore-not-found --force");
102105
TestUtils.ExecAndPrintLog("kubectl delete ns weblogic-operator --ignore-not-found --force");
103106
TestUtils.ExecAndPrintLog("kubectl delete ns weblogic-domain --ignore-not-found --force");
107+
TestUtils.ExecAndPrintLog("kubectl get all --all-namespaces");
104108
logger.log(Level.INFO, "+++++++++++++++Done AfterTest cleanup+++++++++++++++++++++");
105109
}
106110

0 commit comments

Comments
 (0)