Skip to content

Commit

Permalink
disable node cache
Browse files Browse the repository at this point in the history
  • Loading branch information
ltamaster committed Jul 9, 2024
1 parent 184e0c4 commit 4bce092
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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++
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4bce092

Please sign in to comment.