Skip to content

Commit d75e8be

Browse files
authored
backport FmwDiiSample change to release/4.0 (#3641)
1 parent 3bc56a5 commit d75e8be

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

integration-tests/src/test/java/oracle/weblogic/kubernetes/ItFmwDiiSample.java

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
import oracle.weblogic.kubernetes.annotations.IntegrationTest;
2121
import oracle.weblogic.kubernetes.annotations.Namespaces;
2222
import oracle.weblogic.kubernetes.logging.LoggingFacade;
23-
import oracle.weblogic.kubernetes.utils.ExecResult;
2423
import org.junit.jupiter.api.BeforeAll;
2524
import org.junit.jupiter.api.DisplayName;
2625
import org.junit.jupiter.api.Tag;
@@ -226,19 +225,15 @@ private void createDomainAndVerify(String domainName, Path sampleBase) {
226225
+ " -b host"
227226
+ " -o "
228227
+ Paths.get(sampleBase.toString());
229-
ExecResult result1 = Command.withParams(
228+
boolean result1 = Command.withParams(
230229
new CommandParams()
231230
.command(command1)
232231
.env(envMap)
233232
.redirect(true)
234233
.verbose(true)
235-
).executeAndReturnResult();
236-
boolean success =
237-
result1 != null
238-
&& result1.exitValue() == 0;
239-
logger.info("Going to run sample create-domain.sh");
240-
testUntil(() -> success,
241-
logger, "Failed to create domain.yaml");
234+
).execute();
235+
assertTrue(result1, "Failed to create domain.yaml. This could be a transient env issue because of "
236+
+ "'getaddrinfo' failure in the socket.py script. Please check the test out to confirm");
242237

243238

244239
//If the tests are running in kind cluster, push the image to kind registry

0 commit comments

Comments
 (0)