Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
51824d6
Initial changes to test application update
doxiao Apr 16, 2020
c9dc18a
Add app assertions
doxiao Apr 16, 2020
af2e168
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 17, 2020
351bc8a
Save the current change
doxiao Apr 17, 2020
9b50a62
Update ItMiiDomain test
doxiao Apr 20, 2020
c40df28
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 20, 2020
36f7b34
More changes
doxiao Apr 21, 2020
8a1164e
verify an app from a server pod
doxiao Apr 21, 2020
888b1f3
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 21, 2020
75d6028
add code to patch the domain with a new image and verify
doxiao Apr 22, 2020
b2b169f
Revert unintended changes
doxiao Apr 22, 2020
c99fae4
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 22, 2020
e76239b
Fix merge issues
doxiao Apr 22, 2020
dd2745f
more cleanup
doxiao Apr 22, 2020
fa28b4c
Initial change for test number 6
doxiao Apr 22, 2020
32d0238
Fix ExecCommand to allow both redirect and saveResults enabled the sa…
doxiao Apr 22, 2020
92ac716
Initial change for adding another app
doxiao Apr 23, 2020
f3c9709
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 23, 2020
d41efed
More impl for the second test case
doxiao Apr 23, 2020
754bf44
Add model file for the second app
doxiao Apr 23, 2020
c5532b3
Minor cleanup
doxiao Apr 23, 2020
be44a53
Clean up comments
doxiao Apr 24, 2020
0794ce0
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 24, 2020
6f586f7
Minor fix
doxiao Apr 24, 2020
4d0b7bd
Move delete images to the end of AfterAll
doxiao Apr 24, 2020
3e71462
Update command to check response
doxiao Apr 24, 2020
7cecb83
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 24, 2020
937c923
Fix a merge error
doxiao Apr 24, 2020
5bc4f4f
Fix exec command
doxiao Apr 24, 2020
d3e17ca
Add code for remote repo stuff for the new tests
doxiao Apr 24, 2020
45c965a
Minor fixes
doxiao Apr 24, 2020
cdc8282
Cleanup
doxiao Apr 24, 2020
2c729d7
Fix image name
doxiao Apr 24, 2020
e5c5d46
Add an app file
doxiao Apr 24, 2020
4094e4e
Make sure the thread joins before we save the stdout
doxiao Apr 24, 2020
c243b49
Remove ItWitValidation class becuase the test in it has been copied t…
doxiao Apr 24, 2020
3e2b97e
Revert "Remove ItWitValidation class becuase the test in it has been …
doxiao Apr 24, 2020
0591fbf
Debugging
doxiao Apr 25, 2020
e8f50c7
Fix pushed image name
doxiao Apr 25, 2020
713a3bb
Turn off debugging
doxiao Apr 25, 2020
5c6c391
Testing
doxiao Apr 25, 2020
818af80
Change single check of expected condition to quick retry
doxiao Apr 27, 2020
a2fb039
Check app on all managed servers
doxiao Apr 27, 2020
9b9f6aa
Check each pod to verify if the image has been patched
doxiao Apr 27, 2020
9a9b2e4
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 27, 2020
1b3af6f
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao Apr 27, 2020
5ca8fc5
Fine tuning
doxiao Apr 28, 2020
c68d8ea
clean up
doxiao Apr 28, 2020
6fde567
More cleanup
doxiao Apr 28, 2020
e15b34b
Continue work in progress
doxiao Apr 28, 2020
b8a267c
Add app continuous availability check and enable it with a system pro…
doxiao Apr 30, 2020
497ad27
Clean up
doxiao Apr 30, 2020
32cab30
More javadoc
doxiao May 1, 2020
1461b96
Merge branch 'develop' into mii-app-patching-test
doxiao May 1, 2020
9570c02
javadoc and cleanup
doxiao May 1, 2020
87451a8
Adjust timeout values
doxiao May 1, 2020
41f6ede
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 1, 2020
31cc7fd
Fine tuning
doxiao May 1, 2020
5206a89
Minor fix
doxiao May 2, 2020
ab8ecdf
Use kubectl exec command for checking app continuous availability
doxiao May 2, 2020
191ea28
clean up javadoc
doxiao May 2, 2020
d15f52a
Cleanup
doxiao May 3, 2020
9171826
Minor update
doxiao May 4, 2020
89a9123
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 5, 2020
bb8af26
Minor update of log messages
doxiao May 5, 2020
f1c3025
More cleanup of log messages and comments
doxiao May 5, 2020
d735a7e
Address review comments
doxiao May 6, 2020
072aa1f
Address one more comment
doxiao May 6, 2020
3003cd5
Minor fix
doxiao May 6, 2020
d67a4a9
More logging
doxiao May 6, 2020
745f883
Minor comment update
doxiao May 8, 2020
b5c3a0d
Make log messages more informative
doxiao May 8, 2020
ea8c955
Address a new review comment
doxiao May 8, 2020
a8bded1
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 8, 2020
0e3f241
Fix a minor merge error
doxiao May 8, 2020
8a14653
Address more review comments
doxiao May 11, 2020
24f2579
Update javadoc
doxiao May 12, 2020
34d51a1
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 12, 2020
c352f59
Fix merge issues
doxiao May 12, 2020
6b2d51d
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 12, 2020
3b4da2f
Update the push image code to check REPO_NAME
doxiao May 12, 2020
294decc
remove double adding REMO_NAME
doxiao May 12, 2020
70fbeb1
Change baseImageName to image Name
doxiao May 12, 2020
034a9b7
Merge remote-tracking branch 'origin/develop' into mii-app-patching-test
doxiao May 14, 2020
d37858e
Fix a typo
doxiao May 17, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import io.kubernetes.client.openapi.models.V1EnvVar;
import io.kubernetes.client.openapi.models.V1LocalObjectReference;
import io.kubernetes.client.openapi.models.V1ObjectMeta;
import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1Secret;
import io.kubernetes.client.openapi.models.V1SecretReference;
import io.kubernetes.client.openapi.models.V1ServiceAccount;
Expand Down Expand Up @@ -497,21 +496,14 @@ private void checkServiceCreated(String serviceName, String domNamespace) {
}

private void checkServerReadyStatusByExec(String podName, String namespace) {
final V1Pod pod = assertDoesNotThrow(() -> oracle.weblogic.kubernetes.assertions.impl.Kubernetes
.getPod(namespace, null, podName));

if (pod != null) {
ExecResult execResult = assertDoesNotThrow(
() -> execCommand(pod, null, true, READ_STATE_COMMAND));
if (execResult.exitValue() == 0) {
logger.info("execResult: " + execResult);
assertEquals("RUNNING", execResult.stdout(),
"Expected " + podName + ", in namespace " + namespace + ", to be in RUNNING ready status");
} else {
fail("Ready command failed with exit status code: " + execResult.exitValue());
}
ExecResult execResult = assertDoesNotThrow(
() -> execCommand(namespace, podName, null, true, READ_STATE_COMMAND));
if (execResult.exitValue() == 0) {
logger.info("execResult: " + execResult);
assertEquals("RUNNING", execResult.stdout(),
"Expected " + podName + ", in namespace " + namespace + ", to be in RUNNING ready status");
} else {
fail("Did not find pod " + podName + " in namespace " + namespace);
fail("Ready command failed with exit status code: " + execResult.exitValue());
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import io.kubernetes.client.openapi.models.V1EnvVar;
import io.kubernetes.client.openapi.models.V1LocalObjectReference;
import io.kubernetes.client.openapi.models.V1ObjectMeta;
import io.kubernetes.client.openapi.models.V1Pod;
import io.kubernetes.client.openapi.models.V1Secret;
import io.kubernetes.client.openapi.models.V1SecretReference;
import io.kubernetes.client.openapi.models.V1ServiceAccount;
Expand Down Expand Up @@ -566,21 +565,14 @@ private void checkServiceCreated(String serviceName, String domNamespace) {
}

private void checkServerReadyStatusByExec(String podName, String namespace) {
final V1Pod pod = assertDoesNotThrow(() -> oracle.weblogic.kubernetes.assertions.impl.Kubernetes
.getPod(namespace, null, podName));

if (pod != null) {
ExecResult execResult = assertDoesNotThrow(
() -> execCommand(pod, null, true, READ_STATE_COMMAND));
if (execResult.exitValue() == 0) {
logger.info("execResult: " + execResult);
assertEquals("RUNNING", execResult.stdout(),
"Expected " + podName + ", in namespace " + namespace + ", to be in RUNNING ready status");
} else {
fail("Ready command failed with exit status code: " + execResult.exitValue());
}
ExecResult execResult = assertDoesNotThrow(
() -> execCommand(namespace, podName, null, true, READ_STATE_COMMAND));
if (execResult.exitValue() == 0) {
logger.info("execResult: " + execResult);
assertEquals("RUNNING", execResult.stdout(),
"Expected " + podName + ", in namespace " + namespace + ", to be in RUNNING ready status");
} else {
fail("Did not find pod " + podName + " in namespace " + namespace);
fail("Ready command failed with exit status code: " + execResult.exitValue());
}
}

Expand Down
Loading