- [Documentation] Test case to verify that all created VMs are ready and have received their ip addresses.
- ... We are polling first and longest on the last VM created assuming that if it's received it's address
- ... already the other instances should have theirs already or at least shortly thereafter.
- # first, ensure all VMs are in ACTIVE state. if not, we can just fail the test case and not waste time polling
- # for dhcp addresses
- @{NET1_L3_VM_IPS} ${NET1_DHCP_IP} = Get VM IPs @{NET_1_VM_INSTANCES}
- @{NET2_L3_VM_IPS} ${NET2_DHCP_IP} = Get VM IPs @{NET_2_VM_INSTANCES}
- Set Suite Variable @{NET1_L3_VM_IPS}
- Set Suite Variable @{NET2_L3_VM_IPS}
- Should Not Contain ${NET1_L3_VM_IPS} None
- Should Not Contain ${NET2_L3_VM_IPS} None
- Should Not Contain ${NET1_DHCP_IP} None
- Should Not Contain ${NET2_DHCP_IP} None
- [Teardown] Run Keywords Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
- ... AND Get Test Teardown Debugs
+ @{NET_1_L3_VM_IPS} ${NET_1_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_1_VM_INSTANCES}
+ @{NET_2_L3_VM_IPS} ${NET_2_DHCP_IP} = OpenStackOperations.Get VM IPs @{NET_2_VM_INSTANCES}
+ BuiltIn.Set Suite Variable @{NET_1_L3_VM_IPS}
+ BuiltIn.Set Suite Variable @{NET_2_L3_VM_IPS}
+ BuiltIn.Should Not Contain ${NET_1_L3_VM_IPS} None
+ BuiltIn.Should Not Contain ${NET_2_L3_VM_IPS} None
+ BuiltIn.Should Not Contain ${NET_1_DHCP_IP} None
+ BuiltIn.Should Not Contain ${NET_2_DHCP_IP} None
+ [Teardown] BuiltIn.Run Keywords OpenStackOperations.Show Debugs @{NET_1_VM_INSTANCES} @{NET_2_VM_INSTANCES}
+ ... AND OpenStackOperations.Get Test Teardown Debugs