diff --git a/functional-test/src/test/groovy/functional/LargeInventorySpec.groovy b/functional-test/src/test/groovy/functional/LargeInventorySpec.groovy index e1734a9..050fd99 100644 --- a/functional-test/src/test/groovy/functional/LargeInventorySpec.groovy +++ b/functional-test/src/test/groovy/functional/LargeInventorySpec.groovy @@ -10,15 +10,12 @@ class LargeInventorySpec extends BaseTestConfiguration { def setupSpec() { startCompose() - configureRundeck(PROJ_NAME) + configureRundeck(PROJ_NAME, "Node-0") } def "test large inventory"(){ when: - //wait for node to be available - waitForNodes(PROJ_NAME) - def result = client.apiCall {api-> api.listNodes(PROJ_NAME,".*")} then: diff --git a/functional-test/src/test/groovy/functional/base/BaseTestConfiguration.groovy b/functional-test/src/test/groovy/functional/base/BaseTestConfiguration.groovy index 360385f..810df54 100644 --- a/functional-test/src/test/groovy/functional/base/BaseTestConfiguration.groovy +++ b/functional-test/src/test/groovy/functional/base/BaseTestConfiguration.groovy @@ -140,14 +140,4 @@ class BaseTestConfiguration extends Specification{ } } - void waitForNodes(String projectName){ - def result = client.apiCall {api-> api.listNodes(projectName,".*")} - def count =0 - - while(result.size()<=1 && count<5){ - sleep(2000) - result = client.apiCall {api-> api.listNodes(projectName,".*")} - count++ - } - } } diff --git a/functional-test/src/test/resources/project-import/ansible-large-inventory/rundeck-ansible-large-inventory/files/etc/project.properties b/functional-test/src/test/resources/project-import/ansible-large-inventory/rundeck-ansible-large-inventory/files/etc/project.properties index 2e72202..7a5958b 100644 --- a/functional-test/src/test/resources/project-import/ansible-large-inventory/rundeck-ansible-large-inventory/files/etc/project.properties +++ b/functional-test/src/test/resources/project-import/ansible-large-inventory/rundeck-ansible-large-inventory/files/etc/project.properties @@ -16,7 +16,7 @@ project.later.schedule.disable=false project.later.schedule.enable.value= project.later.schedule.enable=false project.name=ansible-large-inventory -project.nodeCache.enabled=true +project.nodeCache.enabled=false project.nodeCache.firstLoadSynch=true project.output.allowUnsanitized=false project.retry-counter=3