Skip to content

Commit aac9ad1

Browse files
authored
OWLS-102744 [wko-nightly] testErrorPathDomainWithFailCustomMountCommand failure 3.4 (#3711)
* Update test to patch introspectVersion to abort current introspection if there are any
1 parent 4c4d55a commit aac9ad1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
import static oracle.weblogic.kubernetes.actions.TestActions.getServiceNodePort;
7070
import static oracle.weblogic.kubernetes.actions.TestActions.now;
7171
import static oracle.weblogic.kubernetes.actions.TestActions.patchDomainCustomResource;
72+
import static oracle.weblogic.kubernetes.actions.TestActions.patchDomainResourceWithNewIntrospectVersion;
7273
import static oracle.weblogic.kubernetes.assertions.TestAssertions.secretExists;
7374
import static oracle.weblogic.kubernetes.assertions.TestAssertions.verifyRollingRestartOccurred;
7475
import static oracle.weblogic.kubernetes.utils.CommonMiiTestUtils.createDomainResource;
@@ -518,6 +519,9 @@ void testErrorPathDomainWithFailCustomMountCommand() {
518519
patchDomainCustomResource(domainUid, domainNamespace, patch, "application/json-patch+json"),
519520
"patchDomainCustomResource(Auxiliary Image) failed ");
520521
assertTrue(aiPatched, "patchDomainCustomResource(auxiliary image) failed");
522+
// update introspectVersion to ensure that any introspection started before
523+
// auxiliary image was patched, if there is any still running, would be aborted.
524+
patchDomainResourceWithNewIntrospectVersion(domainUid, domainNamespace);
521525

522526
// check the introspector pod log contains the expected error message
523527
String expectedErrorMsg = "Auxiliary Image: Command 'exit 1' execution failed in container";

0 commit comments

Comments
 (0)