@@ -70,7 +70,6 @@ resource "cloudsmith_repository_upstream" "pub_dev" {
7070 Config : testAccRepositoryPythonUpstreamConfigBasic ,
7171 Check : resource .ComposeTestCheckFunc (
7272 resource .TestCheckResourceAttr (dartUpstreamResourceName , AuthMode , "None" ),
73- resource .TestCheckResourceAttr (dartUpstreamResourceName , AuthSecret , "" ),
7473 resource .TestCheckResourceAttr (dartUpstreamResourceName , AuthUsername , "" ),
7574 resource .TestCheckNoResourceAttr (dartUpstreamResourceName , Component ),
7675 resource .TestCheckResourceAttrSet (dartUpstreamResourceName , CreatedAt ),
@@ -179,7 +178,6 @@ resource "cloudsmith_repository_upstream" "ubuntu" {
179178 Config : testAccRepositoryDebUpstreamConfigBasic ,
180179 Check : resource .ComposeTestCheckFunc (
181180 resource .TestCheckResourceAttr (debUpstreamResourceName , AuthMode , "None" ),
182- resource .TestCheckResourceAttr (debUpstreamResourceName , AuthSecret , "" ),
183181 resource .TestCheckResourceAttr (debUpstreamResourceName , AuthUsername , "" ),
184182 resource .TestCheckResourceAttrSet (debUpstreamResourceName , Component ),
185183 resource .TestCheckResourceAttrSet (debUpstreamResourceName , CreatedAt ),
@@ -387,6 +385,7 @@ resource "cloudsmith_repository_upstream" "fakedocker" {
387385 Config : testAccRepositoryPythonUpstreamConfigBasic ,
388386 Check : resource .ComposeTestCheckFunc (
389387 resource .TestCheckResourceAttr (dockerUpstreamResourceName , AuthMode , "Username and Password" ),
388+ resource .TestCheckResourceAttr (dockerUpstreamResourceName , AuthUsername , "jonny.tables" ),
390389 resource .TestCheckNoResourceAttr (dockerUpstreamResourceName , Component ),
391390 resource .TestCheckResourceAttrSet (dockerUpstreamResourceName , CreatedAt ),
392391 resource .TestCheckNoResourceAttr (dockerUpstreamResourceName , DistroVersion ),
@@ -433,6 +432,7 @@ resource "cloudsmith_repository_upstream" "fakedocker" {
433432 ImportStateVerifyIgnore : []string {
434433 "auth_certificate" ,
435434 "auth_certificate_key" ,
435+ "auth_secret" ,
436436 },
437437 ImportStateIdFunc : func (s * terraform.State ) (string , error ) {
438438 resourceState := s .RootModule ().Resources [dockerUpstreamResourceName ]
@@ -504,7 +504,6 @@ resource "cloudsmith_repository_upstream" "helm" {
504504 Config : testAccRepositoryPythonUpstreamConfigBasic ,
505505 Check : resource .ComposeTestCheckFunc (
506506 resource .TestCheckResourceAttr (helmUpstreamResourceName , AuthMode , "None" ),
507- resource .TestCheckResourceAttr (helmUpstreamResourceName , AuthSecret , "" ),
508507 resource .TestCheckResourceAttr (helmUpstreamResourceName , AuthUsername , "" ),
509508 resource .TestCheckNoResourceAttr (helmUpstreamResourceName , Component ),
510509 resource .TestCheckResourceAttrSet (helmUpstreamResourceName , CreatedAt ),
@@ -550,7 +549,8 @@ resource "cloudsmith_repository_upstream" "helm" {
550549 resourceState .Primary .Attributes [SlugPerm ],
551550 ), nil
552551 },
553- ImportStateVerify : true ,
552+ ImportStateVerify : true ,
553+ ImportStateVerifyIgnore : []string {"auth_secret" },
554554 },
555555 },
556556 })
@@ -608,7 +608,6 @@ resource "cloudsmith_repository_upstream" "maven_central" {
608608 Config : testAccRepositoryPythonUpstreamConfigBasic ,
609609 Check : resource .ComposeTestCheckFunc (
610610 resource .TestCheckResourceAttr (mavenUpstreamResourceName , AuthMode , "None" ),
611- resource .TestCheckResourceAttr (mavenUpstreamResourceName , AuthSecret , "" ),
612611 resource .TestCheckResourceAttr (mavenUpstreamResourceName , AuthUsername , "" ),
613612 resource .TestCheckNoResourceAttr (mavenUpstreamResourceName , Component ),
614613 resource .TestCheckResourceAttrSet (mavenUpstreamResourceName , CreatedAt ),
@@ -654,7 +653,8 @@ resource "cloudsmith_repository_upstream" "maven_central" {
654653 resourceState .Primary .Attributes [SlugPerm ],
655654 ), nil
656655 },
657- ImportStateVerify : true ,
656+ ImportStateVerify : true ,
657+ ImportStateVerifyIgnore : []string {"auth_secret" },
658658 },
659659 },
660660 })
@@ -714,7 +714,6 @@ resource "cloudsmith_repository_upstream" "npmjs" {
714714 Config : testAccRepositoryPythonUpstreamConfigBasic ,
715715 Check : resource .ComposeTestCheckFunc (
716716 resource .TestCheckResourceAttr (npmUpstreamResourceName , AuthMode , "None" ),
717- resource .TestCheckResourceAttr (npmUpstreamResourceName , AuthSecret , "" ),
718717 resource .TestCheckResourceAttr (npmUpstreamResourceName , AuthUsername , "" ),
719718 resource .TestCheckNoResourceAttr (npmUpstreamResourceName , Component ),
720719 resource .TestCheckResourceAttrSet (npmUpstreamResourceName , CreatedAt ),
@@ -818,7 +817,6 @@ resource "cloudsmith_repository_upstream" "nuget" {
818817 Config : testAccRepositoryPythonUpstreamConfigBasic ,
819818 Check : resource .ComposeTestCheckFunc (
820819 resource .TestCheckResourceAttr (nugetUpstreamResourceName , AuthMode , "None" ),
821- resource .TestCheckResourceAttr (nugetUpstreamResourceName , AuthSecret , "" ),
822820 resource .TestCheckResourceAttr (nugetUpstreamResourceName , AuthUsername , "" ),
823821 resource .TestCheckNoResourceAttr (nugetUpstreamResourceName , Component ),
824822 resource .TestCheckResourceAttrSet (nugetUpstreamResourceName , CreatedAt ),
@@ -864,7 +862,8 @@ resource "cloudsmith_repository_upstream" "nuget" {
864862 resourceState .Primary .Attributes [SlugPerm ],
865863 ), nil
866864 },
867- ImportStateVerify : true ,
865+ ImportStateVerify : true ,
866+ ImportStateVerifyIgnore : []string {"auth_secret" },
868867 },
869868 },
870869 })
@@ -925,7 +924,6 @@ resource "cloudsmith_repository_upstream" "pypi" {
925924 Config : testAccRepositoryPythonUpstreamConfigBasic ,
926925 Check : resource .ComposeTestCheckFunc (
927926 resource .TestCheckResourceAttr (pythonUpstreamResourceName , AuthMode , "None" ),
928- resource .TestCheckResourceAttr (pythonUpstreamResourceName , AuthSecret , "" ),
929927 resource .TestCheckResourceAttr (pythonUpstreamResourceName , AuthUsername , "" ),
930928 resource .TestCheckNoResourceAttr (pythonUpstreamResourceName , Component ),
931929 resource .TestCheckResourceAttrSet (pythonUpstreamResourceName , CreatedAt ),
@@ -971,7 +969,8 @@ resource "cloudsmith_repository_upstream" "pypi" {
971969 resourceState .Primary .Attributes [SlugPerm ],
972970 ), nil
973971 },
974- ImportStateVerify : true ,
972+ ImportStateVerify : true ,
973+ ImportStateVerifyIgnore : []string {"auth_secret" },
975974 },
976975 },
977976 })
@@ -1036,7 +1035,6 @@ resource "cloudsmith_repository_upstream" "rpm_fusion" {
10361035 Config : testAccRepositoryRpmUpstreamConfigBasic ,
10371036 Check : resource .ComposeTestCheckFunc (
10381037 resource .TestCheckResourceAttr (rpmUpstreamResourceName , AuthMode , "None" ),
1039- resource .TestCheckResourceAttr (rpmUpstreamResourceName , AuthSecret , "" ),
10401038 resource .TestCheckResourceAttr (rpmUpstreamResourceName , AuthUsername , "" ),
10411039 resource .TestCheckNoResourceAttr (rpmUpstreamResourceName , Component ),
10421040 resource .TestCheckResourceAttrSet (rpmUpstreamResourceName , CreatedAt ),
@@ -1079,7 +1077,8 @@ resource "cloudsmith_repository_upstream" "rpm_fusion" {
10791077 resourceState .Primary .Attributes [SlugPerm ],
10801078 ), nil
10811079 },
1082- ImportStateVerify : true ,
1080+ ImportStateVerify : true ,
1081+ ImportStateVerifyIgnore : []string {"auth_secret" },
10831082 },
10841083 },
10851084 })
@@ -1140,7 +1139,6 @@ resource "cloudsmith_repository_upstream" "rubygems" {
11401139 Config : testAccRepositoryPythonUpstreamConfigBasic ,
11411140 Check : resource .ComposeTestCheckFunc (
11421141 resource .TestCheckResourceAttr (rubyUpstreamResourceName , AuthMode , "None" ),
1143- resource .TestCheckResourceAttr (rubyUpstreamResourceName , AuthSecret , "" ),
11441142 resource .TestCheckResourceAttr (rubyUpstreamResourceName , AuthUsername , "" ),
11451143 resource .TestCheckNoResourceAttr (rubyUpstreamResourceName , Component ),
11461144 resource .TestCheckResourceAttrSet (rubyUpstreamResourceName , CreatedAt ),
@@ -1186,7 +1184,8 @@ resource "cloudsmith_repository_upstream" "rubygems" {
11861184 resourceState .Primary .Attributes [SlugPerm ],
11871185 ), nil
11881186 },
1189- ImportStateVerify : true ,
1187+ ImportStateVerify : true ,
1188+ ImportStateVerifyIgnore : []string {"auth_secret" },
11901189 },
11911190 },
11921191 })
@@ -1247,7 +1246,6 @@ resource "cloudsmith_repository_upstream" "packagist" {
12471246 Config : testAccRepositoryComposerUpstreamConfigBasic ,
12481247 Check : resource .ComposeTestCheckFunc (
12491248 resource .TestCheckResourceAttr (composerUpstreamResourceName , AuthMode , "None" ),
1250- resource .TestCheckResourceAttr (composerUpstreamResourceName , AuthSecret , "" ),
12511249 resource .TestCheckResourceAttr (composerUpstreamResourceName , AuthUsername , "" ),
12521250 resource .TestCheckNoResourceAttr (composerUpstreamResourceName , Component ),
12531251 resource .TestCheckResourceAttrSet (composerUpstreamResourceName , CreatedAt ),
@@ -1293,7 +1291,8 @@ resource "cloudsmith_repository_upstream" "packagist" {
12931291 resourceState .Primary .Attributes [SlugPerm ],
12941292 ), nil
12951293 },
1296- ImportStateVerify : true ,
1294+ ImportStateVerify : true ,
1295+ ImportStateVerifyIgnore : []string {"auth_secret" },
12971296 },
12981297 },
12991298 })
0 commit comments