Skip to content

Commit 2479da6

Browse files
Reflect changes in test
1 parent 85578f0 commit 2479da6

File tree

1 file changed

+15
-7
lines changed

1 file changed

+15
-7
lines changed

cloudsmith/resource_repository_upstream_test.go

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,7 @@ resource "cloudsmith_repository_upstream" "fakedocker" {
432432
ImportStateVerifyIgnore: []string{
433433
"auth_certificate",
434434
"auth_certificate_key",
435+
"auth_secret",
435436
},
436437
ImportStateIdFunc: func(s *terraform.State) (string, error) {
437438
resourceState := s.RootModule().Resources[dockerUpstreamResourceName]
@@ -548,7 +549,8 @@ resource "cloudsmith_repository_upstream" "helm" {
548549
resourceState.Primary.Attributes[SlugPerm],
549550
), nil
550551
},
551-
ImportStateVerify: true,
552+
ImportStateVerify: true,
553+
ImportStateVerifyIgnore: []string{"auth_secret"},
552554
},
553555
},
554556
})
@@ -651,7 +653,8 @@ resource "cloudsmith_repository_upstream" "maven_central" {
651653
resourceState.Primary.Attributes[SlugPerm],
652654
), nil
653655
},
654-
ImportStateVerify: true,
656+
ImportStateVerify: true,
657+
ImportStateVerifyIgnore: []string{"auth_secret"},
655658
},
656659
},
657660
})
@@ -859,7 +862,8 @@ resource "cloudsmith_repository_upstream" "nuget" {
859862
resourceState.Primary.Attributes[SlugPerm],
860863
), nil
861864
},
862-
ImportStateVerify: true,
865+
ImportStateVerify: true,
866+
ImportStateVerifyIgnore: []string{"auth_secret"},
863867
},
864868
},
865869
})
@@ -965,7 +969,8 @@ resource "cloudsmith_repository_upstream" "pypi" {
965969
resourceState.Primary.Attributes[SlugPerm],
966970
), nil
967971
},
968-
ImportStateVerify: true,
972+
ImportStateVerify: true,
973+
ImportStateVerifyIgnore: []string{"auth_secret"},
969974
},
970975
},
971976
})
@@ -1072,7 +1077,8 @@ resource "cloudsmith_repository_upstream" "rpm_fusion" {
10721077
resourceState.Primary.Attributes[SlugPerm],
10731078
), nil
10741079
},
1075-
ImportStateVerify: true,
1080+
ImportStateVerify: true,
1081+
ImportStateVerifyIgnore: []string{"auth_secret"},
10761082
},
10771083
},
10781084
})
@@ -1178,7 +1184,8 @@ resource "cloudsmith_repository_upstream" "rubygems" {
11781184
resourceState.Primary.Attributes[SlugPerm],
11791185
), nil
11801186
},
1181-
ImportStateVerify: true,
1187+
ImportStateVerify: true,
1188+
ImportStateVerifyIgnore: []string{"auth_secret"},
11821189
},
11831190
},
11841191
})
@@ -1284,7 +1291,8 @@ resource "cloudsmith_repository_upstream" "packagist" {
12841291
resourceState.Primary.Attributes[SlugPerm],
12851292
), nil
12861293
},
1287-
ImportStateVerify: true,
1294+
ImportStateVerify: true,
1295+
ImportStateVerifyIgnore: []string{"auth_secret"},
12881296
},
12891297
},
12901298
})

0 commit comments

Comments
 (0)