Skip to content

Commit 4bce092

Browse files
committed
disable node cache
1 parent 184e0c4 commit 4bce092

File tree

3 files changed

+2
-15
lines changed

3 files changed

+2
-15
lines changed

functional-test/src/test/groovy/functional/LargeInventorySpec.groovy

+1-4
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,12 @@ class LargeInventorySpec extends BaseTestConfiguration {
1010

1111
def setupSpec() {
1212
startCompose()
13-
configureRundeck(PROJ_NAME)
13+
configureRundeck(PROJ_NAME, "Node-0")
1414
}
1515

1616
def "test large inventory"(){
1717
when:
1818

19-
//wait for node to be available
20-
waitForNodes(PROJ_NAME)
21-
2219
def result = client.apiCall {api-> api.listNodes(PROJ_NAME,".*")}
2320

2421
then:

functional-test/src/test/groovy/functional/base/BaseTestConfiguration.groovy

-10
Original file line numberDiff line numberDiff line change
@@ -140,14 +140,4 @@ class BaseTestConfiguration extends Specification{
140140
}
141141
}
142142

143-
void waitForNodes(String projectName){
144-
def result = client.apiCall {api-> api.listNodes(projectName,".*")}
145-
def count =0
146-
147-
while(result.size()<=1 && count<5){
148-
sleep(2000)
149-
result = client.apiCall {api-> api.listNodes(projectName,".*")}
150-
count++
151-
}
152-
}
153143
}

functional-test/src/test/resources/project-import/ansible-large-inventory/rundeck-ansible-large-inventory/files/etc/project.properties

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ project.later.schedule.disable=false
1616
project.later.schedule.enable.value=
1717
project.later.schedule.enable=false
1818
project.name=ansible-large-inventory
19-
project.nodeCache.enabled=true
19+
project.nodeCache.enabled=false
2020
project.nodeCache.firstLoadSynch=true
2121
project.output.allowUnsanitized=false
2222
project.retry-counter=3

0 commit comments

Comments
 (0)