Skip to content

Commit

Permalink
Re-enable catalog stack test.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnrengelman committed Oct 11, 2016
1 parent 120602a commit b467ab1
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions builtin/providers/rancher/resource_rancher_stack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
),
},
},
})
}
Expand Down Expand Up @@ -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}
Expand Down

0 comments on commit b467ab1

Please sign in to comment.