-
Notifications
You must be signed in to change notification settings - Fork 217
OWLS-90888 added negative AI test: Error path due File Permission issue #2463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
integration-tests/src/test/resources/auxiliaryimage/negative/Dockerfile
Outdated
Show resolved
Hide resolved
integration-tests/src/test/java/oracle/weblogic/kubernetes/ItMiiAuxiliaryImage.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
few comments
* Negative Test to create domain with file , created by user tester with permission read only | ||
* and not accessible by oracle user in auxiliary image | ||
* via provided Dockerfile. | ||
* Check the error msg is in introspector pod log, domain events and operator pod log. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* Check the error msg is in introspector pod log, domain events and operator pod log. | |
* Check the error message is in introspector pod log, domain events and operator pod log. |
|
||
// create stage dir for auxiliary image | ||
Path errorpathAIPath1 = Paths.get(RESULTS_ROOT, "errorpathauxiimage4"); | ||
assertDoesNotThrow(() -> FileUtils.deleteDirectory(errorpathAIPath1.toFile())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please assert failure messages in all asserts below.
// push image to repo for multi node cluster | ||
if (!DOMAIN_IMAGES_REPO.isEmpty()) { | ||
logger.info("docker push image {0} to registry {1}", errorPathAuxiliaryImage1, DOMAIN_IMAGES_REPO); | ||
assertTrue(dockerPush(errorPathAuxiliaryImage1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you need to use dockerLoginAndPushImageToRegistry() method
Create a file on the source image that cannot be accessed by the oracle user, check error in introspector
https://build.weblogick8s.org:8443/job/weblogic-kubernetes-operator-kind-new/5711/