Skip to content

Commit 43657e7

Browse files
committed
fix ITServerDiscovery for werkcer
1 parent ad9c990 commit 43657e7

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

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

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -124,31 +124,12 @@ public static void staticPrepare() throws Exception {
124124
*/
125125
@AfterClass
126126
public static void staticUnPrepare() throws Exception {
127+
Assume.assumeFalse(QUICKTEST);
127128
logger.info("+++++++++++++++++++++++++++++++++---------------------------------+");
128129
logger.info("BEGIN");
129130
logger.info("Run once, release cluster lease");
130131

131-
StringBuffer cmd =
132-
new StringBuffer("export RESULT_ROOT=$RESULT_ROOT && export PV_ROOT=$PV_ROOT && ");
133-
cmd.append(BaseTest.getProjectRoot())
134-
.append("/integration-tests/src/test/resources/statedump.sh");
135-
logger.info("Running " + cmd);
136-
137-
ExecResult result = ExecCommand.exec(cmd.toString());
138-
if (result.exitValue() == 0) logger.info("Executed statedump.sh " + result.stdout());
139-
else
140-
logger.info("Execution of statedump.sh failed, " + result.stderr() + "\n" + result.stdout());
141-
142-
if (domain != null && !SMOKETEST) domain.shutdownUsingServerStartPolicy();
143-
144-
if (JENKINS) {
145-
cleanup();
146-
}
147-
148-
if (getLeaseId() != "") {
149-
logger.info("Release the k8s cluster lease");
150-
TestUtils.releaseLease(getProjectRoot(), getLeaseId());
151-
}
132+
tearDown();
152133

153134
logger.info("SUCCESS");
154135
}

0 commit comments

Comments
 (0)