Skip to content

Commit 8b76bc2

Browse files
committed
update readme and comments
1 parent 5396646 commit 8b76bc2

File tree

2 files changed

+31
-26
lines changed

2 files changed

+31
-26
lines changed

integration-tests/README.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,10 @@ Java integration tests cover the below use cases:
1818

1919
Quick test use cases -
2020

21-
Operator Configuration - operator1 deployed in weblogic-operator1 namespace and manages domains in default and test1 namespaces
22-
Domain Configuration - Domain on PV using WLST, traefik load balancer
21+
| | |
22+
| --- | --- |
23+
| Operator Configuration | operator1 deployed in weblogic-operator1 namespace and manages domains in default and test1 namespaces |
24+
| Domain Configuration | Domain on PV using WLST, traefik load balancer |
2325

2426
Basic Use Cases
2527

@@ -238,36 +240,38 @@ Successful run will have the output like below:
238240
[INFO] Final Memory: 60M/1236M
239241
240242
```
241-
Failed run will have the output
243+
Failed run will have the output like
242244
```
243245
244246
[INFO]
245247
[INFO] Results:
246248
[INFO]
247249
[ERROR] Errors:
248-
[ERROR] ITOperator.testBCreateDomainWithDefaultValuesInSampleInputs:287->testAllUseCasesForADomain:303->BaseTest.testClusterScaling:241 ? Runtime
250+
[ERROR] ITOperator.testDomainOnPVUsingWLST:145 ? Runtime FAILURE: Couldn't create serv...
249251
[INFO]
250-
[ERROR] Tests run: 11, Failures: 0, Errors: 1, Skipped: 0
252+
[ERROR] Tests run: 9, Failures: 0, Errors: 1, Skipped: 0
251253
[INFO]
252254
[INFO]
253255
[INFO] --- maven-failsafe-plugin:2.20.1:verify (integration-tests) @ operator-integration-tests ---
254256
[INFO] ------------------------------------------------------------------------
255257
[INFO] Reactor Summary:
256258
[INFO]
257-
[INFO] weblogic-kubernetes-operator ....................... SUCCESS [ 1.669 s]
258-
[INFO] operator-model ..................................... SUCCESS [ 22.159 s]
259-
[INFO] operator-swagger ................................... SUCCESS [ 1.426 s]
260-
[INFO] operator-runtime ................................... SUCCESS [ 54.559 s]
261-
[INFO] operator-integration-tests ......................... FAILURE [ 01:03 h]
259+
[INFO] Build Tools ........................................ SUCCESS [ 1.193 s]
260+
[INFO] weblogic-kubernetes-operator ....................... SUCCESS [ 2.671 s]
261+
[INFO] json-schema ........................................ SUCCESS [ 14.917 s]
262+
[INFO] jsonschema-maven-plugin Maven Mojo ................. SUCCESS [ 8.600 s]
263+
[INFO] operator-model ..................................... SUCCESS [ 23.065 s]
264+
[INFO] operator-swagger ................................... SUCCESS [ 4.487 s]
265+
[INFO] operator-runtime ................................... SUCCESS [ 53.675 s]
266+
[INFO] operator-integration-tests ......................... FAILURE [41:09 min]
262267
[INFO] installation-tests ................................. SKIPPED
268+
[INFO] Project Reports .................................... SKIPPED
263269
[INFO] ------------------------------------------------------------------------
264270
[INFO] BUILD FAILURE
265271
[INFO] ------------------------------------------------------------------------
266-
[INFO] Total time: 01:04 h
267-
[INFO] Finished at: 2018-10-31T15:19:46-07:00
268-
[INFO] Final Memory: 48M/1275M
269-
[INFO] ------------------------------------------------------------------------
270-
272+
[INFO] Total time: 42:58 min
273+
[INFO] Finished at: 2019-02-11T09:42:08-08:00
274+
[INFO] Final Memory: 124M/1534M
271275
```
272276
JUnit test results can be seen at "integration-tests/target/failsafe-reports/TEST-oracle.kubernetes.operator.ITOperator.xml". This file shows how much time each test case took to run and the failed test results if any.
273277

integration-tests/src/test/java/oracle/kubernetes/operator/ITOperator.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,12 @@ public void testDomainOnPVUsingWDT() throws Exception {
200200
}
201201

202202
/**
203-
* Create two operators if they are not running. Create domain domain4 with dynamic cluster in
204-
* default namespace, managed by operator1. Create domain domain5 with Configured cluster using
205-
* WDT in test2 namespace, managed by operator2 Verify scaling for domain5 cluster from 2 to 3
206-
* servers and back to 2, plus verify no impact on domain4 Cycle domain4 down and back up, plus
207-
* verify no impact on domain5 shutdown by deleting both domain4 and domain5 CRD's
203+
* Create two operators if they are not running. Create domain domain1 with dynamic cluster in
204+
* default namespace, managed by operator1. Create domain domain2 with Configured cluster using
205+
* WDT in test2 namespace, managed by operator2. Verify scaling for domain2 cluster from 2 to 3
206+
* servers and back to 2, plus verify no impact on domain1. Cycle domain1 down and back up, plus
207+
* verify no impact on domain2. shutdown by the domains using the delete resource script from
208+
* samples.
208209
*
209210
* <p>ToDo: configured cluster support is removed from samples, modify the test to create
210211
*
@@ -215,7 +216,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
215216
Assume.assumeFalse(QUICKTEST);
216217
String testMethodName = new Object() {}.getClass().getEnclosingMethod().getName();
217218
logTestBegin(testMethodName);
218-
logger.info("Creating Domain domain4 & verifing the domain creation");
219+
logger.info("Creating Domain domain1 & verifing the domain creation");
219220

220221
logger.info("Checking if operator1 and domain1 are running, if not creating");
221222
if (operator1 == null) {
@@ -237,7 +238,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
237238
if (operator2 == null) {
238239
operator2 = TestUtils.createOperator(operator2File);
239240
}
240-
// create domain5 with configured cluster
241+
// create domain2 with configured cluster
241242
// ToDo: configured cluster support is removed from samples, modify the test to create
242243
// configured cluster
243244
Map<String, Object> wdtDomainMap = TestUtils.loadYaml(domainonpvwdtFile);
@@ -256,7 +257,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
256257
logger.info("Verify the only remaining running domain domain1 is unaffected");
257258
domain1.verifyDomainCreated();
258259

259-
logger.info("Destroy and create domain4 and verify no impact on domain2");
260+
logger.info("Destroy and create domain1 and verify no impact on domain2");
260261
domain1.destroy();
261262
domain1.create();
262263

@@ -299,7 +300,7 @@ public void testCreateDomainWithStartPolicyAdminOnly() throws Exception {
299300
operator1 = TestUtils.createOperator(operator1File);
300301
}
301302
logger.info("Creating Domain domain6 & verifing the domain creation");
302-
// create domain6
303+
// create domain
303304
Domain domain = null;
304305
boolean testCompletedSuccessfully = false;
305306
try {
@@ -332,8 +333,8 @@ public void testCreateDomainPVReclaimPolicyRecycle() throws Exception {
332333
if (operator1 == null) {
333334
operator1 = TestUtils.createOperator(operator1File);
334335
}
335-
logger.info("Creating Domain domain7 & verifing the domain creation");
336-
// create domain7
336+
logger.info("Creating Domain domain & verifing the domain creation");
337+
// create domain
337338
Domain domain = null;
338339

339340
try {

0 commit comments

Comments
 (0)