You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: integration-tests/README.md
+13-9Lines changed: 13 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ Wercker runs only Quick test use cases, Jenkins run both Quick and Full test use
16
16
17
17
Java integration tests cover the below use cases:
18
18
19
-
Quick test use cases -
19
+
Quick test Configuration & Use Cases -
20
20
21
21
|||
22
22
| --- | --- |
@@ -42,12 +42,12 @@ Also the below use cases are covered for Quick test
42
42
9. verify liveness probe by killing managed server 1 process 3 times to kick pod auto-restart
43
43
10. shutdown the domain by changing domain serverStartPolicy to NEVER
44
44
45
-
Full test use cases -
45
+
Full test Configuration & Use Cases - Runs Quick test Configuration & Use cases and the below
46
46
47
47
|||
48
48
| --- | --- |
49
49
| Operator Configuration | operator2 deployed in weblogic-operator2 namespace and manages domains test2 namespace |
50
-
| Domain Configuration | Domain on PV using WDT, Domain with serverStartPolicy ADMIN_ONLY, Domain with auto and custom situational configuration, Two domains managed by two operators, Domain with Recycle weblogicDomainStorageReclaimPolicy, Domain with default sample values |
50
+
| Domain Configuration | Domain on PV using WDT <p> Domain with serverStartPolicy ADMIN_ONLY <p> Domain with auto and custom situational configuration <p> Two domains managed by two operators <p> Domain with Recycle weblogicDomainStorageReclaimPolicy <p> Domain with default sample values |
51
51
52
52
53
53
Basic Use Cases described above are verified in all the domain configurations. Also the below use cases are covered:
@@ -167,7 +167,7 @@ Certain properties like weblogicDomainStoragePath, image, externalOperatorCert a
167
167
# How does it work
168
168
169
169
When the tests are run manually with mvn command on hosted Linux, WebLogic image store/oracle/weblogic:12.2.1.3 is pulled from docker hub or uses local image if one exists. Server jre images are pulled from a local repository wlsldi-v2.docker.oraclecorp.com. Operator image is built with the git branch from where the mvn command is executed.
170
-
All the tests that start with IT*.java are run. The test builds the operator, runs a series of tests and archives the results into tar.gz files upon completion.
170
+
All the tests that start with IT*.java in integration-tests/src/test/java are run. The test runs a series of tests and archives the results into jar files upon completion.
171
171
172
172
Integration test classes:
173
173
@@ -181,11 +181,15 @@ test methods - testDomainOnPVUsingWLST, testDomainOnPVUsingWDT, testTwoDomainsM
181
181
182
182
Utility classes:
183
183
184
-
Operator - contains methods to create/destroy operator, verify operator created, scale using rest api, etc
Operator - contructor takes yaml file with operator properties and generates operator valus yaml with required properties and certs, creates service account, namespace and calls helm install using the generated values yaml file. Also contains methods to delete operator release, verify operator created and ready, scale using rest api, verify a given domain via rest, verify external rest service, etc <p>
185
+
Domain - constructor takes Map with domain, LB, PV properties and creates domain crd, LB operator/ingress and PV artifacts using the sample scripts provided in the project. Also contains helper methods to destroy domain by deleting domain crd, verify domain created and servers are ready,deploy webapp, verify load balancing of http requests, etc <p>
186
+
PersistentVolume - runs k8s job to create PV directory and creates PV and PVC using sample scripts <p>
187
+
LoadBalancer - creates load balancer, currently TREFIK and VOYAGER are supported <p>
188
+
Secret - creates a k8s secret <p>
189
+
TestUtils - monstly runs kubectl commands. Contains utility methods to check if a pod is created, ready, deleted, service created, get pod restart cnt, get cluster replica, delete PVC, check PV released, create rbac policy, create wldf module, etc. <p>
190
+
ExecCommand - Class for executing shell commands from java <p>
191
+
ExecResult - Class that holds the results of using java to exec a command (i.e. exit value, stdout and stderr) <p>
192
+
K8sTestUtils - uses kubernetes java client api, this is used only for delete domain use cases for now. <p>
0 commit comments