Skip to content

Commit e80477f

Browse files
use TestUtils.exec to replace kubectl exec
1 parent 43a22fe commit e80477f

File tree

1 file changed

+2
-8
lines changed
  • integration-tests/src/test/java/oracle/kubernetes/operator/utils

1 file changed

+2
-8
lines changed

integration-tests/src/test/java/oracle/kubernetes/operator/utils/Domain.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -887,18 +887,12 @@ public void testDomainServerPodRestart(String oldPropertyString, String newPrope
887887
+ domainUid
888888
+ "/domain_new.yaml");
889889
logger.info("kubectl execut with command: " + command.toString());
890-
ExecResult exeResult = ExecCommand.exec(command.toString());
891-
if (exeResult.exitValue() != 0) {
892-
throw new RuntimeException(
893-
"FAILED: command to get domain " + command + " failed with " + exeResult.stderr());
894-
}
895-
if (!exeResult.stdout().contains(domainUid))
896-
throw new RuntimeException("FAILURE: domain not found, exiting!");
890+
TestUtils.exec(command.toString());
897891

898892
// verify the servers in the domain are being restarted in a sequence
899893
verifyAdminServerRestarted();
900894
verifyManagedServersRestarted();
901-
// let domain.yaml include the new changed property
895+
// make domain.yaml include the new changed property
902896
TestUtils.copyFile(
903897
BaseTest.getUserProjectsDir() + "/weblogic-domains/" + domainUid + "/domain_new.yaml",
904898
BaseTest.getUserProjectsDir() + "/weblogic-domains/" + domainUid + "/domain.yaml");

0 commit comments

Comments
 (0)