vmware / go-vcloud-director

Golang SDK for VMware Cloud Director
Other
80 stars 79 forks source link

Add explicit removal of many resources from tests #605

Closed dataclouder closed 1 year ago

dataclouder commented 1 year ago

Several resources were left undeleted, waiting for the cleanup function to remove them, increasing the risk of interfering with other tests. This PR removes the resources most likely to affect other tests:

Testing:

go test -tags functional -check.vv  -timeout 0 -check.f 'TestCreateOrgVdcNetworkDhcp|TestVCD.TestQueryOrgVdcList|Test_CreateOrgVdcNetworkDirect|Test_CreateOrgVdcNetworkIso|Test_CreateUpdateOrgVdcNetworkDirect|Test_CreateUpdateOrgVdcNetworkIso|Test_CreateVdcGroup|Test_GlobalRoles|Test_NsxtIpSet|Test_NsxtOrgVdcNetworkImportedNsxtLogicalSwitch|Test_NsxtOrgVdcNetworkIsolated|Test_NsxtOrgVdcNetworkRouted|Test_NsxtSecurityGroupGetAssociatedVms|Test_NsxtVdcGroup|Test_NsxtVdcGroupOrgNetworks|Test_NsxtVdcGroupWithOrgAdmin|Test_QueryOrgVdcNetworkByNameWithSpace|Test_QueryProviderVdcEntities|Test_RightsBundle|Test_SearchOrgVdc|Test_UpdateNetworkStaticRoutes|Test_UpdateVdc|Test_UpdateVdcFlex|Test_VMGetDhcpAddress|Test_VdcUpdateStorageProfile'