Skip to content

Commit 33dbc43

Browse files
committed
changes made for PR comments
1 parent 5c08cae commit 33dbc43

File tree

1 file changed

+17
-19
lines changed

1 file changed

+17
-19
lines changed

integration-tests/README.md

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
# Integration Tests for Operator
1+
# Integration Tests for Oracle WebLogic Server Kubernetes Operator
22

3-
This documentation describes the functional use cases that are covered in integration testing for Weblogic Operator. The tests are written in java(Junit tests) and driven by maven profile. All the use cases covered in run.sh will be covered in java integration tests. Currently, QUICKTEST use cases and some of non-quick test(till domain4) use cases are covered in java tests.
3+
This documentation describes the functional use cases that are covered in integration testing for he Oracle WebLogic Server Kubernetes Operator. The tests are written in Java (JUnit tests) and driven by Maven profile. All the use cases covered in run.sh will be covered in Java integration tests. Currently, QUICKTEST use cases and some of Full test(till domain4) use cases are covered in Java tests.
44

55
# Environments
66

7-
The tests currently runs in three modes, "Wercker", "Jenkins", and "standalone" Oracle Linux, where the mode is controlled by the WERCKER and JENKINS environment variables described below. The default is "standalone".
7+
The tests currently run in three modes: "Wercker", "Jenkins", and "standalone" Oracle Linux, where the mode is controlled by the WERCKER and JENKINS environment variables described below. The default is "standalone".
88

99
* "Standalone" Oracle Linux, i.e, run the tests manually with mvn command.
1010
* Wercker - https://app.wercker.com/Oracle/weblogic-kubernetes-operator/runs - integration-test-java is the pipeline name
1111
* Jenkins - http://wls-jenkins.us.oracle.com/view/weblogic-operator/job/weblogic-kubernetes-operator-javatest/
1212

1313
# Use Cases
1414

15-
Currently java integration tests cover all QUICKTEST and some non-QUICKTEST use cases from run.sh. The below are the use cases:
15+
Currently Java integration tests cover all QUICKTEST and some Full test use cases from run.sh. The below are the use cases:
1616

1717
* create operator operator1 which manages default and test1 namespaces, verify its deployed successfully, pod created, operator Ready and verify external REST service if configured
1818
* create domain domain1 in default namespace and verify the pods, services are created and servers are in Ready
@@ -23,7 +23,7 @@ Currently java integration tests cover all QUICKTEST and some non-QUICKTEST use
2323
* cluster scale up/down using Operator REST endpoint, webapp load balancing should adjust accordingly. (run.sh does scaling by editing the replicas in domain-custom-resource.yaml.)
2424
* Operator life cycle(destroy and create) should not impact the running domain
2525

26-
Non-quick test use cases
26+
Full test use cases
2727

2828
* keep the first domain and operator running
2929
* create another domain domain2 in default namespace and verify the domain by doing the checks 2 - 5 listed in quick test
@@ -43,14 +43,12 @@ Non-quick test use cases
4343

4444
# Directory Configuration and Structure
4545

46-
java integration tests are in feature/java-integration-tests branch on weblogic-kubernetes-operator project. Merged to develop branch.
47-
4846
Directory structure of source code:
4947

50-
A new module "integration-tests" is added to the maven project weblogic-kubernetes-operator.
48+
A new module "integration-tests" is added to the Maven project weblogic-kubernetes-operator.
5149

5250
weblogic-kubernetes-operator/integration-tests - location of module pom.xml
53-
weblogic-kubernetes-operator/integration-tests/src/test/java - integration test(junit) classes and utility classes
51+
weblogic-kubernetes-operator/integration-tests/src/test/java - integration test(JUnit) classes and utility classes
5452
weblogic-kubernetes-operator/integration-tests/src/test/resources - properties files(see Configuration Files section) and other scripts
5553

5654
Directory structure used for the test run:
@@ -88,7 +86,7 @@ Defaults for RESULT_ROOT & PV_ROOT:
8886

8987
# Configuration Files
9088

91-
A module "integration-tests" is added in maven weblogic-kubernetes-operator project.
89+
A module "integration-tests" is added in Maven weblogic-kubernetes-operator project.
9290

9391
Below configuration files are used:
9492
```
@@ -101,7 +99,7 @@ maxIterationsPod=50
10199
waitTimePod=5
102100

103101

104-
src/integration-tests/resources/ITFirstOperator.properties - customized properties for operator. Any property can be provided here from create-weblogic-operator-inputs.yaml, for all the properties that are not defined here default values in create-weblogic-operator-inputs.yaml are used while generating the operator inputs yaml file.
102+
src/integration-tests/resources/ITFirstOperator.properties - customized properties for Operator. Any property can be provided here from create-weblogic-operator-inputs.yaml, for all the properties that are not defined here default values in create-weblogic-operator-inputs.yaml are used while generating the operator inputs yaml file.
105103

106104
```
107105
serviceAccount= weblogic-operator
@@ -112,7 +110,7 @@ externalRestOption= SELF_SIGNED_CERT
112110
elkIntegrationEnabled= false
113111
```
114112

115-
src/integration-tests/resources/ITFirstDomain.properties - customized properties for domain. Any property can be provided here from create-weblogic-domain-inputs.yaml. For all the properties that are not defined here, the default values in create-weblogic-domain-inputs.yaml are used while generating the domain inputs yaml file.
113+
src/integration-tests/resources/ITFirstDomain.properties - customized properties for WebLogic Domain. Any property can be provided here from create-weblogic-domain-inputs.yaml. For all the properties that are not defined here, the default values in create-weblogic-domain-inputs.yaml are used while generating the domain inputs yaml file.
116114

117115
```
118116
adminServerName= admin-server
@@ -137,8 +135,8 @@ Certain properties like weblogicDomainStoragePath, weblogicOperatorImage, extern
137135

138136
# How does it work
139137

140-
When the tests are run manually with mvn command on hosted linux, weblogic image and server jre images are pulled from a local repository. Operator image is built with the git branch from where the mvn command is executed.
141-
All the tests that start with IT*.java are ran. The test builds the operator, runs a series of tests and archives the results into tar.gz files upon completion.
138+
When the tests are run manually with mvn command on hosted Linux, WebLogic image and server jre images are pulled from a local repository. Operator image is built with the git branch from where the mvn command is executed.
139+
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.
142140

143141
Integration test classes:
144142

@@ -157,7 +155,7 @@ Domain - contains methods to create/destroy domain, verify domain created,deploy
157155
PersistentVolume - to create PV
158156
Secret - to create secret
159157

160-
# How to run the java integration tests
158+
# How to run the Java integration tests
161159

162160
Maven and latest Git should be in PATH
163161

@@ -273,11 +271,11 @@ java.lang.RuntimeException: FAILURE: testwebapp did not return 200 status code,
273271
[ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream
274272
275273
```
276-
Junit test results can be seen at "integration-tests/target/failsafe-reports/TEST-oracle.kubernetes.operator.ITSingleDomain.xml". This file shows how much time each test case took to run and the failed test results if any.
274+
JUnit test results can be seen at "integration-tests/target/failsafe-reports/TEST-oracle.kubernetes.operator.ITSingleDomain.xml". This file shows how much time each test case took to run and the failed test results if any.
277275

278276
# Logging/Archiving
279277

280-
java utils logging is used, writes all the messages to console and java_test_suite.out in $RESULT_ROOT/acceptance_test_tmp directory.
278+
Java utils logging is used, writes all the messages to console and java_test_suite.out in $RESULT_ROOT/acceptance_test_tmp directory.
281279
At the end of the test run, all pods logs, describes are logged in individual files and are written to state-dump-logs directory in $RESULT_ROOT/acceptance_test_tmp.
282280

283281
$RESULT_ROOT/acceptance_test_tmp is archived under $RESULT_ROOT/acceptance_test_tmp_archive
@@ -286,12 +284,12 @@ $PV_ROOT/acceptance_test_pv is archived under $PV_ROOT/acceptance_test_pv_archiv
286284

287285
# How to add a new test
288286

289-
Add a new Junit test under integration-tests/src/test/java/oracle/kubernetes/operator.
287+
Add a new JUnit test under integration-tests/src/test/java/oracle/kubernetes/operator.
290288

291289
class name must start with IT(Integration Test), IT*.java
292290

293291
ITFirstDomain.java - take a look at this test for reference
294292

295293
# Future enhancement
296294

297-
Add non-quick test use cases - part1 done.
295+
Add Full test use cases - part1 done.

0 commit comments

Comments
 (0)