Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix vApp network related tests #595

Merged
merged 2 commits into from
Jul 31, 2023

Conversation

dataclouder
Copy link
Contributor

@dataclouder dataclouder commented Jul 23, 2023

Test_AddAndRemoveOrgVappNetworkWithMinimumValues,
Test_AddAndRemoveOrgVappNetwork, and Test_UpdateOrgVappNetwork were failing on VCD 10.5.0 for two reasons:

  • The call to vapp.AddOrgNetwork was adding the same network that was already in the vApp: In 10.5.0, a stricter check forbade such false addition (*)
  • In two of the tests, the vApp refresh was performed on the default test vApp (The one created by TestSetUpSuite) instead of the vApp being created in the test

This fix adds a second network to the vApp and amends the Refresh call.

(*) Example: error updating vApp Network: API Error: 400: Cannot have two networks with the same name net-scheduled-r within this vApp

Testing

go test -tags vapp -check.f 'Test_AddAndRemoveOrgVappNetworkWithMinimumValues|Test_AddAndRemoveOrgVappNetwork|UpdateOrgVappNetwork' -check.vv

Test_AddAndRemoveOrgVappNetworkWithMinimumValues,
Test_AddAndRemoveOrgVappNetwork, and Test_UpdateOrgVappNetwork
were faiiling on VCD 10.5.0 for two reasons:
* The call to vapp.AddOrgNetwork was adding the same network that was
  already in the vApp. In 10.5.0, a stricter check forbade such
  false addition
* In two of the tests, the vApp reftesh was performed on the
  default test vApp (The one created by 'TestSetUpSuite') instead of the
  vApp being created in the test

This fix adds a second network to the vApp and amends the Refresh call.

Signed-off-by: Giuseppe Maxia <[email protected]>
@dataclouder dataclouder marked this pull request as ready for review July 23, 2023 13:14
Signed-off-by: Giuseppe Maxia <[email protected]>
@dataclouder dataclouder merged commit 3f58609 into vmware:main Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants