Skip to content

Commit 8428c8a

Browse files
committed
Merge branch 'develop' of https://github.com/oracle/weblogic-kubernetes-operator into fix-int-test-external-jenkins
2 parents 76fa361 + 0256d80 commit 8428c8a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+1321
-208
lines changed

docs/domains/Domain.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
"type": "object",
408408
"properties": {
409409
"overallHealth": {
410-
"description": "Server health of this WebLogic server.",
410+
"description": "Server health of this WebLogic server. If the value is \"Not available\", the operator has failed to read the health. If the value is \"Not available (possibly overloaded)\", the operator has failed to read the health of the server possibly due to the server is in overloaded state",
411411
"type": "string"
412412
},
413413
"activationTime": {

docs/domains/Domain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ Shutdown describes the configuration for shutting down a server instance.
173173
| Name | Type | Description |
174174
| --- | --- | --- |
175175
| `activationTime` | DateTime | RFC 3339 date and time at which the server started. |
176-
| `overallHealth` | string | Server health of this WebLogic server. |
176+
| `overallHealth` | string | Server health of this WebLogic server. If the value is "Not available", the operator has failed to read the health. If the value is "Not available (possibly overloaded)", the operator has failed to read the health of the server possibly due to the server is in overloaded state |
177177
| `subsystems` | array of [Subsystem Health](#subsystem-health) | Status of unhealthy subsystems, if any. |
178178

179179
### Channel

docs/domains/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1327,7 +1327,7 @@
13271327
"type": "object",
13281328
"properties": {
13291329
"overallHealth": {
1330-
"description": "Server health of this WebLogic server.",
1330+
"description": "Server health of this WebLogic server. If the value is \"Not available\", the operator has failed to read the health. If the value is \"Not available (possibly overloaded)\", the operator has failed to read the health of the server possibly due to the server is in overloaded state",
13311331
"type": "string"
13321332
},
13331333
"activationTime": {

integration-tests/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ The tests accepts optional env var overrides:
209209
| RESULT_ROOT | The root directory to use for the tests temporary files. See "Directory Configuration and Structure" for defaults and a detailed description of test directories. |
210210
| PV_ROOT | The root directory on the kubernetes cluster used for persistent volumes. See "Directory Configuration and Structure" for defaults and a detailed description of test directories. |
211211
| QUICKTEST | When set to "true", limits testing to a subset of the tests. |
212-
| LB_TYPE | The default value is "TRAEFIK". Set to "VOYAGER" if you want to use it as LB. |
212+
| LB_TYPE | The default value is "TRAEFIK". Set to "VOYAGER" if you want to use it as LB. Using "VOYAGER" requires unique "voyagerWebPort"|
213213
| INGRESSPERDOMAIN | The defult value is true. If you want to test creating TRAEFIK LB by kubectl yaml for multiple domains, set it to false. |
214214
| SHARED_CLUSTER | Set to true if invoking on shared cluster, set to false or "" if running stand-alone or from Jenkins. Default is "". |
215215
| JENKINS | Set to true if invoking from Jenkins, set to false or "" if running stand-alone or on shared cluster. Default is "". |

integration-tests/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,7 @@
352352
<id>jrf-integration-tests</id>
353353
<properties>
354354
<skipITs>false</skipITs>
355-
<includes-failsafe>**/JrfInOperatorTest.java</includes-failsafe>
355+
<includes-failsafe>**/JrfInOperator*Test.java</includes-failsafe>
356356
<jrf_enabled>true</jrf_enabled>
357357
</properties>
358358
</profile>

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,11 @@ public void testCreateDomainTwoConfiguredCluster() throws Exception {
9393
"createDomainPyScript",
9494
"integration-tests/src/test/resources/domain-home-on-pv/"
9595
+ TWO_CONFIGURED_CLUSTER_SCRIPT);
96+
if ((System.getenv("LB_TYPE") != null && System.getenv("LB_TYPE").equalsIgnoreCase("VOYAGER"))
97+
|| (domainMap.containsKey("loadBalancer")
98+
&& ((String) domainMap.get("loadBalancer")).equalsIgnoreCase("VOYAGER"))) {
99+
domainMap.put("voyagerWebPort", new Integer("30366"));
100+
}
96101
addCluster2ToDomainTemplate();
97102
domain = TestUtils.createDomain(domainMap);
98103
domain.verifyDomainCreated();
@@ -136,6 +141,11 @@ public void testCreateDomainTwoMixedCluster() throws Exception {
136141
domainMap.put(
137142
"createDomainPyScript",
138143
"integration-tests/src/test/resources/domain-home-on-pv/" + TWO_MIXED_CLUSTER_SCRIPT);
144+
if ((System.getenv("LB_TYPE") != null && System.getenv("LB_TYPE").equalsIgnoreCase("VOYAGER"))
145+
|| (domainMap.containsKey("loadBalancer")
146+
&& ((String) domainMap.get("loadBalancer")).equalsIgnoreCase("VOYAGER"))) {
147+
domainMap.put("voyagerWebPort", new Integer("30377"));
148+
}
139149
addCluster2ToDomainTemplate();
140150
domain = TestUtils.createDomain(domainMap);
141151
domain.verifyDomainCreated();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ public void testClusterRestartVersion() throws Exception {
415415
try {
416416
// Modify the original domain yaml to include restartVersion in admin server node
417417
DomainCRD crd = new DomainCRD(originalYaml);
418-
Map<String, String> cluster = new HashMap();
418+
Map<String, Object> cluster = new HashMap();
419419
cluster.put("restartVersion", "v1.1");
420420
crd.addObjectNodeToCluster("cluster-1", cluster);
421421
String modYaml = crd.getYamlTree();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ public static void staticPrepare() throws Exception {
6363
logger.info("Creating WLS Domain & waiting for the script to complete execution");
6464
Map<String, Object> domainMap = TestUtils.loadYaml(DOMAINONPV_WLST_YAML);
6565
// Treafik doesn't work due to the bug 28050300. Use Voyager instead
66-
domainMap.put("LB_TYPE", "VOYAGER");
66+
domainMap.put("loadBalancer", "VOYAGER");
67+
domainMap.put("voyagerWebPort", new Integer("30355"));
6768
domain = TestUtils.createDomain(domainMap);
6869
domain.verifyDomainCreated();
6970
}

0 commit comments

Comments
 (0)