Skip to content

Commit 49a789f

Browse files
committed
Merge branch 'develop' of https://github.com/oracle/weblogic-kubernetes-operator into exportertest
2 parents 8ba4890 + b82a54e commit 49a789f

File tree

14 files changed

+840
-13
lines changed

14 files changed

+840
-13
lines changed

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
@@ -357,7 +357,7 @@
357357
<id>jrf-integration-tests</id>
358358
<properties>
359359
<skipITs>false</skipITs>
360-
<includes-failsafe>**/JrfInOperatorTest.java</includes-failsafe>
360+
<includes-failsafe>**/JrfInOperator*Test.java</includes-failsafe>
361361
<jrf_enabled>true</jrf_enabled>
362362
</properties>
363363
</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
@@ -388,7 +388,7 @@ public void testClusterRestartVersion() throws Exception {
388388
try {
389389
// Modify the original domain yaml to include restartVersion in admin server node
390390
DomainCRD crd = new DomainCRD(originalYaml);
391-
Map<String, String> cluster = new HashMap();
391+
Map<String, Object> cluster = new HashMap();
392392
cluster.put("restartVersion", "v1.1");
393393
crd.addObjectNodeToCluster("cluster-1", cluster);
394394
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)