Sfoglia il codice sorgente

Wait for scaled up machines to become running

Vadim Rutkovsky 6 anni fa
parent
commit
47b2466620
1 ha cambiato i file con 3 aggiunte e 0 eliminazioni
  1. 3 0
      test/aws/create_machineset.yml

+ 3 - 0
test/aws/create_machineset.yml

@@ -57,6 +57,9 @@
   - "'items' in new_machine.results.results[0]"
   - "'items' in new_machine.results.results[0]"
   - "new_machine.results.results[0]['items'] | length > 0"
   - "new_machine.results.results[0]['items'] | length > 0"
   - "'status' in new_machine.results.results[0]['items'][0]"
   - "'status' in new_machine.results.results[0]['items'][0]"
+  - "'providerStatus' in new_machine.results.results[0]['items'][0]['status']"
+  - "'instanceState' in new_machine.results.results[0]['items'][0]['status']['providerStatus']"
+  - "new_machine.results.results[0]['items'][0]['status']['providerStatus']['instanceState'] == 'running'"
 
 
 - name: add machine to the inventory
 - name: add machine to the inventory
   add_host:
   add_host: