Fix quirks in Test_CreateOrgVdcWithFlex and Test_VMPowerOnPowerOff #538
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR amends two tests:
Test_CreateOrgVdcWithFlex
It failed randomly with the following error:
I could reproduce this issue several times, then it started to pass without any change. Given that the variable
vdcStorageProfileDetails
was being retrieved from a fixed index from an array, my assumption is that it failed due to the array being unordered.I could not demonstrate this hypothesis but I changed the test implementation to use a loop to avoid the situation if that's the case. It should make the test more robust anyway.
Test_VMPowerOnPowerOff
Thanks to @Didainius for fixing this one.
This one failed randomly with the following error:
Due to the underlying VCD not being as fast as expected in powering off the VM, it could be in state "Powering off".
Tests done
Just a simple
Where
$1
isTest_CreateOrgVdcWithFlex
(addGOVCD_SKIP_VAPP_CREATION=1
) andTest_VMPowerOnPowerOff
and$2
is25
.