@@ -2,6 +2,7 @@ package argocd
22
33import (
44 "fmt"
5+ "github.com/hashicorp/terraform-plugin-sdk/helper/acctest"
56 "github.com/hashicorp/terraform-plugin-sdk/helper/resource"
67 "testing"
78)
@@ -13,35 +14,35 @@ func TestAccArgoCDRepository(t *testing.T) {
1314 PreCheck : func () { testAccPreCheck (t ) },
1415 Providers : testAccProviders ,
1516 Steps : []resource.TestStep {
16- // {
17- // Config: testAccArgoCDRepositorySimple(),
18- // Check: resource.ComposeTestCheckFunc(
19- // resource.TestCheckResourceAttr(
20- // "argocd_repository.simple",
21- // "connection_state_status",
22- // "Successful",
23- // ),
24- // ),
25- // },
26- // {
27- // Config: testAccArgoCDRepositoryHelm(),
28- // Check: resource.ComposeTestCheckFunc(
29- // resource.TestCheckResourceAttr(
30- // "argocd_repository.helm",
31- // "connection_state_status",
32- // "Successful",
33- // ),
34- // ),
35- // },
36- // {
37- // Config: testAccArgoCDRepositoryPublicUsageInApplication(acctest.RandString(10)),
38- // Check: resource.ComposeTestCheckFunc(
39- // resource.TestCheckResourceAttrSet(
40- // "argocd_application.public",
41- // "metadata.0.uid",
42- // ),
43- // ),
44- // },
17+ {
18+ Config : testAccArgoCDRepositorySimple (),
19+ Check : resource .ComposeTestCheckFunc (
20+ resource .TestCheckResourceAttr (
21+ "argocd_repository.simple" ,
22+ "connection_state_status" ,
23+ "Successful" ,
24+ ),
25+ ),
26+ },
27+ {
28+ Config : testAccArgoCDRepositoryHelm (),
29+ Check : resource .ComposeTestCheckFunc (
30+ resource .TestCheckResourceAttr (
31+ "argocd_repository.helm" ,
32+ "connection_state_status" ,
33+ "Successful" ,
34+ ),
35+ ),
36+ },
37+ {
38+ Config : testAccArgoCDRepositoryPublicUsageInApplication (acctest .RandString (10 )),
39+ Check : resource .ComposeTestCheckFunc (
40+ resource .TestCheckResourceAttrSet (
41+ "argocd_application.public" ,
42+ "metadata.0.uid" ,
43+ ),
44+ ),
45+ },
4546 {
4647 Config : testAccArgoCDRepositoryPrivateGitSSH (repoUrl ),
4748 //ExpectNonEmptyPlan: true,
0 commit comments