Skip to content

Commit 55eea4b

Browse files
authored
Tests: Do not cleanup classic org Content Libraries (#43)
1 parent 1bd47b1 commit 55eea4b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.changes/v1.0.0/12-features.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
- **New Resource:** `vcfa_content_library` to manage Content Libraries [GH-12, GH-42]
1+
- **New Resource:** `vcfa_content_library` to manage Content Libraries [GH-12, GH-42, GH-43]
22
- **New Data Source:** `vcfa_content_library` to read Content Libraries [GH-12, GH-42]
33
- **New Data Source:** `vcfa_region_storage_policy` to read Region Storage Policies [GH-12]
44
- **New Data Source:** `vcfa_storage_class` to read Storage Classes [GH-12]

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ require (
66
github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320
77
github.com/hashicorp/go-version v1.7.0
88
github.com/hashicorp/terraform-plugin-sdk/v2 v2.35.0
9-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.30
9+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.31
1010
)
1111

1212
require (

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ github.com/vmihailenco/msgpack/v5 v5.4.1 h1:cQriyiUvjTwOHg8QZaPihLWeRAAVoCpE00IU
149149
github.com/vmihailenco/msgpack/v5 v5.4.1/go.mod h1:GaZTsDaehaPpQVyxrf5mtQlH+pc21PIudVV/E3rRQok=
150150
github.com/vmihailenco/tagparser/v2 v2.0.0 h1:y09buUbR+b5aycVFQs/g70pqKVZNBmxwAhO7/IwNM9g=
151151
github.com/vmihailenco/tagparser/v2 v2.0.0/go.mod h1:Wri+At7QHww0WTrCBeu4J6bNtoV6mEfg5OIWRZA9qds=
152-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.30 h1:CLa/a7hX92mfkvGgtPaZ9Jz7wanXiy5j/19BuBdMfuU=
153-
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.30/go.mod h1:68KHsVns52dsq/w5JQYzauaU/+NAi1FmCxhBrFc/VoQ=
152+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.31 h1:6v/eaVEhLO2kIqj3e5mtL97dsSMeFB1AApMtukJNb/4=
153+
github.com/vmware/go-vcloud-director/v3 v3.0.0-alpha.31/go.mod h1:68KHsVns52dsq/w5JQYzauaU/+NAi1FmCxhBrFc/VoQ=
154154
github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM=
155155
github.com/xanzy/ssh-agent v0.3.3/go.mod h1:6dzNDKs0J9rVPHPhaGCukekBHKqfl+L3KghI1Bc68Uw=
156156
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=

vcfa/remove_leftovers_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ func removeLeftovers(tmClient *govcd.VCDClient, verbose bool) error {
6868
return fmt.Errorf("error retrieving Organizations: %s", err)
6969
}
7070
for _, org := range orgs {
71+
if org.TmOrg.IsClassicTenant {
72+
continue
73+
}
7174
// --------------------------------------------------------------
7275
// Tenant Content Libraries
7376
// --------------------------------------------------------------

0 commit comments

Comments
 (0)