Skip to content

Commit 483120b

Browse files
committed
fix wldf scaling, domainUID's
1 parent b818f79 commit 483120b

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ public class ITOperator extends BaseTest {
5656

5757
private static Operator operator1, operator2;
5858

59-
private static Operator operatorForDel1;
60-
private static Operator operatorForDel2;
61-
6259
private static Operator operatorForBackwardCompatibility;
6360

6461
private static boolean QUICKTEST;
@@ -199,7 +196,7 @@ public void testDomainOnPVUsingWDT() throws Exception {
199196
} finally {
200197
if (domain != null && (JENKINS || testCompletedSuccessfully)) {
201198
// domain.destroy();
202-
TestUtils.verifyBeforeDeletion(domain);
199+
// TestUtils.verifyBeforeDeletion(domain);
203200
logger.info("About to delete domain: " + domain.getDomainUid());
204201
TestUtils.deleteWeblogicDomainResources(domain.getDomainUid());
205202
TestUtils.verifyAfterDeletion(domain);
@@ -235,7 +232,10 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
235232
Domain domain1 = null, domain2 = null;
236233
boolean testCompletedSuccessfully = false;
237234
try {
238-
domain1 = TestUtils.createDomain(domainOnPVUsingWLSTYamlFile);
235+
// load input yaml to map and add configOverrides
236+
Map<String, Object> wlstDomainMap = TestUtils.loadYaml(domainOnPVUsingWLSTYamlFile);
237+
wlstDomainMap.put("domainUID", "domain1onpvwlst");
238+
domain1 = TestUtils.createDomain(wlstDomainMap);
239239
domain1.verifyDomainCreated();
240240
testBasicUseCases(domain1);
241241
logger.info("Checking if operator2 is running, if not creating");
@@ -246,6 +246,7 @@ public void testTwoDomainsManagedByTwoOperators() throws Exception {
246246
// ToDo: configured cluster support is removed from samples, modify the test to create
247247
// configured cluster
248248
Map<String, Object> wdtDomainMap = TestUtils.loadYaml(domainOnPVUsingWDTYamlFile);
249+
wdtDomainMap.put("domainUID", "domain2onpvwdt");
249250
// wdtDomainMap.put("clusterType", "Configured");
250251
domain2 = TestUtils.createDomain(wdtDomainMap);
251252
domain2.verifyDomainCreated();
@@ -418,6 +419,7 @@ public void testAutoAndCustomSitConfigOverrides() throws Exception {
418419
// load input yaml to map and add configOverrides
419420
Map<String, Object> domainMap = TestUtils.loadYaml(domainOnPVUsingWLSTYamlFile);
420421
domainMap.put("configOverrides", "sitconfigcm");
422+
domainMap.put("domainUID", "customsitdomain");
421423

422424
// use NFS for this domain on Jenkins, defaultis HOST_PATH
423425
if (System.getenv("JENKINS") != null && System.getenv("JENKINS").equalsIgnoreCase("true")) {

integration-tests/src/test/resources/domain-home-on-pv/customsitconfig/config.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<name>admin-server</name>
44
<network-access-point>
55
<name>T3Channel</name>
6-
<public-address f:combine-mode="replace">${secret:domainonpvwlst-t3publicaddress.hostname}</public-address>
6+
<public-address f:combine-mode="replace">${secret:customsitdomain-t3publicaddress.hostname}</public-address>
77
</network-access-point>
88
</server>
99
</domain>

integration-tests/src/test/resources/wldf/wldf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@
3838
scriptAct = wn1.createScriptAction('ScriptActionScaleUp')
3939
scriptAct.setEnabled(true)
4040
scriptAct.setTimeout(0)
41-
scriptAct.setWorkingDirectory('/shared/domains/domain3/bin/scripts/')
42-
scriptAct.setPathToScript('/shared/domains/domain3/bin/scripts/scalingAction.sh')
41+
scriptAct.setWorkingDirectory('/shared/domains/domainonpvwdt/bin/scripts/')
42+
scriptAct.setPathToScript('/shared/domains/domainonpvwdt/bin/scripts/scalingAction.sh')
4343
props = Properties()
4444
props.setProperty("INTERNAL_OPERATOR_CERT", operator_cert_data);
4545
#props.setProperty("KUBERNETES_SERVICE_HOST", k8s_master_host);
4646
#props.setProperty("KUBERNETES_SERVICE_PORT", k8s_master_port);
4747
scriptAct.setEnvironment(props)
4848

49-
params=['--action=scaleUp', '--domain_uid=domain3', '--cluster_name=cluster-1', '--wls_domain_namespace=test1', '--operator_namespace=weblogic-operator1']
49+
params=['--action=scaleUp', '--domain_uid=domainonpvwdt', '--cluster_name=cluster-1', '--wls_domain_namespace=test2', '--operator_namespace=weblogic-operator2']
5050
k8s_master_url='--kubernetes_master=%s' %(k8s_master)
5151
params.append(k8s_master_url)
5252
scriptAct.setParameters(params)

0 commit comments

Comments
 (0)