Skip to content

Commit 689e80c

Browse files
committed
Updated README to new changes and added comments in domain yamls
1 parent ce5cff3 commit 689e80c

File tree

6 files changed

+49
-39
lines changed

6 files changed

+49
-39
lines changed

integration-tests/README.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,44 +17,46 @@ Wercker runs only Quick test use cases, Jenkins run both Quick and Full test use
1717
Java integration tests cover the below use cases:
1818

1919
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
2022

23+
Basic Use Cases
2124
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
2225
2. create domain domain1 in default namespace and verify the pods, services are created and servers are in Ready
2326
3. verify admin external service by accessing admin REST endpoint with nodeport in URL
2427
4. verify admin t3 channel port by exec into the admin pod and deploying webapp using the channel port for WLST
2528
5. verify web app load balancing by accessing the webapp using loadBalancerWebPort
29+
30+
Advanced Use Cases
2631
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
2732
7. cluster scale up/down using Operator REST endpoint, webapp load balancing should adjust accordingly.
2833
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
2936
9. verify liveness probe by killing managed server 1 process 3 times to kick pod auto-restart
3037
10. shutdown the domain by changing domain serverStartPolicy to NEVER
3138

3239
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+
5860

5961
# Directory Configuration and Structure
6062

@@ -108,14 +110,13 @@ Below configuration files are used from src/integration-tests/resources:
108110
OperatorIT.properties
109111
operator1.yaml
110112
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
119120
```
120121

121122
src/integration-tests/resources/OperatorIT.properties - This file is used for configuring common attributes for all integration tests
@@ -138,12 +139,11 @@ externalRestEnabled: true
138139
javaLoggingLevel: FINE
139140
```
140141

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.
142143

143144
```
144145
adminServerName: admin-server
145-
domainName: base_domain
146-
domainUID: domain1
146+
domainUID: domainonpvwlst
147147
clusterName: cluster-1
148148
configuredManagedServerCount: 4
149149
initialManagedServerReplicas: 2
@@ -172,7 +172,7 @@ staticPrepare() - initializes the application properties from OperatorIT.propert
172172

173173
staticUnPrepare() - releases the cluster lease on wercker env.
174174

175-
test methods - test1CreateFirstOperatorAndDomain, test2CreateAnotherDomainInDefaultNS, test3CreateDomainInTest1NS, etc
175+
test methods - testDomainOnPVUsingWLST, testDomainOnPVUsingWDT, testTwoDomainsManagedByTwoOperators, testCreateDomainWithStartPolicyAdminOnly, testCreateDomainPVReclaimPolicyRecycle, testCreateDomainWithDefaultValuesInSampleInputs, testAutoAndCustomSitConfigOverrides, testOperatorRESTIdentityBackwardCompatibility, testOperatorRESTUsingCertificateChain
176176

177177
Utility classes:
178178

@@ -270,11 +270,11 @@ JUnit test results can be seen at "integration-tests/target/failsafe-reports/TES
270270

271271
# How to run a single test
272272

273-
mvn -Dit.test="ITOperator#test6CreateConfiguredDomainInTest2NS" -DfailIfNoTests=false integration-test -P java-integration-tests
273+
mvn -Dit.test="ITOperator#testDomainOnPVUsingWLST" -DfailIfNoTests=false integration-test -P java-integration-tests
274274

275275
# How to run multiple tests
276276

277-
mvn -Dit.test="ITOperator#test6CreateConfiguredDomainInTest2NS+test7CreateDomainPVReclaimPolicyRecycle" -DfailIfNoTests=false integration-test -P java-integration-tests
277+
mvn -Dit.test="ITOperator#testDomainOnPVUsingWLST+testDomainOnPVUsingWDT" -DfailIfNoTests=false integration-test -P java-integration-tests
278278

279279
# How to run cleanup script
280280

integration-tests/src/test/resources/domainadminonly.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# This domain inputs file is used to create domain on pv using wlst option and server start policy ADMIn_ONLY
5+
46
adminServerName: admin-server
57
domainUID: domainadminonly
68
clusterName: cluster-1

integration-tests/src/test/resources/domainonpvwdt.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# This domain inputs file is used to create domain on pv using wdt option.
5+
46
adminServerName: admin-server
57
domainUID: domainonpvwdt
68
clusterName: cluster-1

integration-tests/src/test/resources/domainonpvwlst.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# This domain inputs file is used to create domain on pv using wlst option and traefik load balancer.
5+
46
adminServerName: admin-server
57
domainUID: domainonpvwlst
68
clusterName: cluster-1

integration-tests/src/test/resources/domainrecyclepolicy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# This domain inputs file is used to create domain on pv using wlst option and with recyle reclaim policy.
5+
46
adminServerName: admin-server
57
domainUID: domainrecyclepolicy
68
clusterName: cluster-1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Copyright 2018, Oracle Corporation and/or its affiliates. All rights reserved.
22
# Licensed under the Universal Permissive License v 1.0 as shown at http://oss.oracle.com/licenses/upl.
33

4+
# This domain inputs file is used to create domain using default values from samples for most of the input values
5+
46
domainUID: domainsampledefaults
57
configuredManagedServerCount: 4

0 commit comments

Comments
 (0)