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
, andTest_UpdateOrgVappNetwork
were failing on VCD 10.5.0 for two reasons:vapp.AddOrgNetwork
was adding the same network that was already in the vApp: In 10.5.0, a stricter check forbade such false addition (*)TestSetUpSuite
) instead of the vApp being created in the testThis 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