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
+39-39Lines changed: 39 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,44 +17,46 @@ Wercker runs only Quick test use cases, Jenkins run both Quick and Full test use
17
17
Java integration tests cover the below use cases:
18
18
19
19
Quick test use cases.
20
+
Operator Configuration - operator1 deployed in weblogic-operator1 namespace and manages domains in defaut and test1 namespaces
21
+
Domain Configuration - Domain on PV using WLST, traefik load balancer
20
22
23
+
Basic Use Cases
21
24
1. create operator operator1 which manages default and test1 namespaces, verify its deployed successfully, pod created, operator Ready and verify external REST service if configured
22
25
2. create domain domain1 in default namespace and verify the pods, services are created and servers are in Ready
23
26
3. verify admin external service by accessing admin REST endpoint with nodeport in URL
24
27
4. verify admin t3 channel port by exec into the admin pod and deploying webapp using the channel port for WLST
25
28
5. verify web app load balancing by accessing the webapp using loadBalancerWebPort
29
+
30
+
Advanced Use Cases
26
31
6. verify domain life cycle(destroy and create) should not any impact on Operator managing the domain and web app load balancing and admin external service
27
32
7. cluster scale up/down using Operator REST endpoint, webapp load balancing should adjust accordingly.
28
33
8. Operator life cycle(destroy and create) should not impact the running domain
34
+
35
+
Also the below use cases are covered for Quick test
29
36
9. verify liveness probe by killing managed server 1 process 3 times to kick pod auto-restart
30
37
10. shutdown the domain by changing domain serverStartPolicy to NEVER
31
38
32
39
Full test use cases
33
-
34
-
* keep the first operator running
35
-
* create another domain domain2 in default namespace and verify the domain by doing the checks 2 - 5 listed in quick test
36
-
* shutdown and delete domain domain2
37
-
* create another domain domain3 with dynamic cluster using WDT in test1 namespace and verify the domain by doing the checks 2 - 5 listed in quick test
38
-
* verify cluster scaling by doing scale up for domain3 using WLDF scaling
39
-
* shutdown and delete domain domain3
40
-
* create another operator operator2 which manages test2 namespace and verify domain1 is not affected
41
-
* create another domain domain4 with dynamic cluster in default namespace and domain domain5 with Configured cluster using WDT in test2 namespace and verify the domain by doing the checks 2 - 5 listed in quick test
42
-
* verify scaling for domain5 cluster from 2 to 3 servers and back to 2, plus verify no impact on domain4
43
-
* cycle domain4 down and back up, plus verify no impact on domain5
44
-
* shutdown and delete both domain4 and domain5
45
-
* create domain6 in the default namespace with serverStartPolicy="ADMIN_ONLY", and verify that only admin server is created. on Jenkins, this domain will also test NFS instead of HOSTPATH PV storage
46
-
* shutdown and delete domain6
47
-
* create domain7 in the default namespace with pvReclaimPolicy="Recycle", and verify that the PV is deleted once the domain and PVC are deleted
48
-
* shutdown and delete domain7
49
-
* create domain domain8 and test that create domain fails when its pv is already populated by a shutdown domain
50
-
* create another domain domain9 with APACHE load balancer and access admin console via LB port. shutdown domain.
51
-
* create another domain domain10 with mostly default values from sample domain inputs, mainly exposeAdminT3Channel and exposeAdminNodePort which are false by default and verify domain startup and cluster scaling using operator rest endpoint works.
52
-
* create another domain domain11 with listen address not set for admin server and t3 channel and incorrect file for admin server log
53
-
* verify automatic situational config override works by bringing up the domain and by doing checks 2 - 5 listed in quick test
54
-
* create another domain domain12 with some junk value for t3 channel public address and using custom situational config override replace with valid public address
55
-
* verify the domain by doing checks 2 - 5 listed in quick test
56
-
57
-
40
+
Operator Configuration - operator2 deployed in weblogic-operator2 namespace and manages domains test2 namespace
41
+
Domain Configuration - Domain on PV using WDT, Domain with serverStartPolicy ADMIN_ONLY,
42
+
Domain with auto and custom situational configuration, Two domains managed by two operators,
43
+
Domain with Recycle weblogicDomainStorageReclaimPolicy, Domain with default sample values
44
+
45
+
Basic Use Cases described above are verified in all the domain configurations. Also the below use cases are covered:
46
+
47
+
Domain on PV using WDT - WLDF scaling
48
+
Domain with ADMIN_ONLY - making sure only admin server is started and managed servers are not started.
49
+
Shutdown domain by deleting domain CRD. Create domain on existing PV dir, pv is already populated by a shutdown domain.
50
+
Domain with situational config - create domain with listen address not set for admin server and t3 channel/NAP and
51
+
incorrect file for admin server log location. Introspector should override these with sit-config automatically.
52
+
Also, with some junk value for t3 channel public address and using custom situational config override
53
+
replace with valid public address using secret.
54
+
Two domains managed by two operators - verify scaling and restart of one domain doesn't impact another domain.
55
+
Delete domain resources using delete script from samples.
56
+
Domain with Recycle weblogicDomainStorageReclaimPolicy - create domain with pvReclaimPolicy="Recycle" Verify that the PV is deleted
57
+
once the domain and PVC are deleted
58
+
Domain with default sample values - create domain using mostly default values for inputs
59
+
58
60
59
61
# Directory Configuration and Structure
60
62
@@ -108,14 +110,13 @@ Below configuration files are used from src/integration-tests/resources:
108
110
OperatorIT.properties
109
111
operator1.yaml
110
112
operator2.yaml
111
-
domain1.yaml
112
-
domain2.yaml
113
-
domain3.yaml
114
-
domain4.yaml
115
-
domain5.yaml
116
-
domain6.yaml
117
-
domain7.yaml
118
-
domain8.yaml
113
+
operator_bc.yaml
114
+
operator_chain.yaml
115
+
domainonpvwlst.yaml
116
+
domainonpvwdt.yaml
117
+
domainadminonly.yaml
118
+
domainrecyclepolicy.yaml
119
+
domainsampledefaults.yaml
119
120
```
120
121
121
122
src/integration-tests/resources/OperatorIT.properties - This file is used for configuring common attributes for all integration tests
@@ -138,12 +139,11 @@ externalRestEnabled: true
138
139
javaLoggingLevel: FINE
139
140
```
140
141
141
-
src/integration-tests/resources/domain1.yaml - input/customized properties for PV/Load Balancer/WebLogic Domain. Any property can be provided here from kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml and kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/create-pv-pvc-inputs.yaml. For all the properties that are not defined here, the default values in the sample inputs are used while generating inputs yaml.
142
+
src/integration-tests/resources/domainonpvwlst.yaml - input/customized properties for PV/Load Balancer/WebLogic Domain. Any property can be provided here from kubernetes/samples/scripts/create-weblogic-domain/domain-home-on-pv/create-domain-inputs.yaml and kubernetes/samples/scripts/create-weblogic-domain-pv-pvc/create-pv-pvc-inputs.yaml. For all the properties that are not defined here, the default values in the sample inputs are used while generating inputs yaml.
142
143
143
144
```
144
145
adminServerName: admin-server
145
-
domainName: base_domain
146
-
domainUID: domain1
146
+
domainUID: domainonpvwlst
147
147
clusterName: cluster-1
148
148
configuredManagedServerCount: 4
149
149
initialManagedServerReplicas: 2
@@ -172,7 +172,7 @@ staticPrepare() - initializes the application properties from OperatorIT.propert
172
172
173
173
staticUnPrepare() - releases the cluster lease on wercker env.
174
174
175
-
test methods - test1CreateFirstOperatorAndDomain, test2CreateAnotherDomainInDefaultNS, test3CreateDomainInTest1NS, etc
0 commit comments