Skip to content

Commit 74607b0

Browse files
authored
Merge pull request #537 from oracle/wldf-fix
Corrections to wldf script
2 parents 275e7fd + 0d79952 commit 74607b0

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,9 +288,9 @@ private Domain testAllUseCasesForADomain(Operator operator, String domainYamlFil
288288
logger.info("Creating Domain & verifing the domain creation");
289289
// create domain1
290290
Domain domain = testDomainCreation(domainYamlFile);
291+
testClusterScaling(operator, domain);
291292
testDomainLifecyle(operator, domain);
292293
testOperatorLifecycle(operator, domain);
293-
testClusterScaling(operator, domain);
294294
return domain;
295295
}
296296

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

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from java.io import File
44
import sys, socket
55
import os
6+
import time as systime
67
hostname = socket.gethostname()
78

89
k8s_master_host=os.environ.get('KUBERNETES_SERVICE_HOST')
@@ -63,4 +64,22 @@
6364
wh1.addNotification(scriptAct)
6465

6566
save()
66-
activate()
67+
activate(block='true')
68+
69+
print "wait for harvester watch to become active"
70+
71+
domainRuntime()
72+
73+
cd('ServerRuntimes/admin-server/WLDFRuntime/WLDFRuntime/WLDFWatchNotificationRuntime/WatchNotification')
74+
75+
numWatchEval=cmo.getTotalHarvesterWatchEvaluations()
76+
maxwait=300
77+
78+
while(numWatchEval < 1) and (maxwait > 0):
79+
print numWatchEval
80+
maxwait -= 1
81+
systime.sleep(1)
82+
numWatchEval=cmo.getTotalHarvesterWatchEvaluations()
83+
84+
print "wldf.py done numWatchEval is ", numWatchEval, " maxwait is ", maxwait
85+

0 commit comments

Comments
 (0)