diff --git a/builtin/providers/rancher/resource_rancher_stack_test.go b/builtin/providers/rancher/resource_rancher_stack_test.go index 90f5e2895ac7..2c2c5cab138e 100644 --- a/builtin/providers/rancher/resource_rancher_stack_test.go +++ b/builtin/providers/rancher/resource_rancher_stack_test.go @@ -53,13 +53,19 @@ func TestAccRancherStack(t *testing.T) { testAccCheckRancherStackAttributes(&stack, emptyEnvironment, false), ), }, - // resource.TestStep{ - // Config: testAccRancherStackSystemCatalogConfig, - // Check: resource.ComposeTestCheckFunc( - // testAccCheckRancherStackExists("rancher_stack.catalog", &stack), - // testAccCheckRancherStackAttributes(&stack, "catalog", "Terraform acc test group - catalog", "system-catalog://library:route53:7", route53DockerCompose, route53RancherCompose, route53Environment, false), - // ), - // }, + resource.TestStep{ + Config: testAccRancherStackSystemCatalogConfig, + Check: resource.ComposeTestCheckFunc( + testAccCheckRancherStackExists("rancher_stack.catalog", &stack), + resource.TestCheckResourceAttr("rancher_stack.catalog", "name", "catalog"), + resource.TestCheckResourceAttr("rancher_stack.catalog", "description", "Terraform acc test group - catalog"), + resource.TestCheckResourceAttr("rancher_stack.catalog", "catalog_id", "library:route53:7"), + resource.TestCheckResourceAttr("rancher_stack.catalog", "scope", "system"), + resource.TestCheckResourceAttr("rancher_stack.catalog", "docker_compose", route53DockerCompose), + resource.TestCheckResourceAttr("rancher_stack.catalog", "rancher_compose", route53RancherCompose), + testAccCheckRancherStackAttributes(&stack, route53Environment, false), + ), + }, }, }) } @@ -196,7 +202,7 @@ resource "rancher_stack" "catalog" { const route53DockerCompose = `route53: image: rancher/external-dns:v0.5.0 - expose: + expose: - 1000 environment: AWS_ACCESS_KEY: ${AWS_ACCESS_KEY}