@@ -27,6 +27,7 @@ func TestAccTFEStackResource_basic(t *testing.T) {
27
27
Check : resource .ComposeAggregateTestCheckFunc (
28
28
resource .TestCheckResourceAttrSet ("tfe_stack.foobar" , "id" ),
29
29
resource .TestCheckResourceAttrSet ("tfe_stack.foobar" , "project_id" ),
30
+ resource .TestCheckResourceAttrSet ("tfe_stack.foobar" , "agent_pool_id" ),
30
31
resource .TestCheckResourceAttr ("tfe_stack.foobar" , "name" , "example-stack" ),
31
32
resource .TestCheckResourceAttr ("tfe_stack.foobar" , "description" , "Just an ordinary stack" ),
32
33
resource .TestCheckResourceAttr ("tfe_stack.foobar" , "vcs_repo.identifier" , "brandonc/pet-nulls-stack" ),
@@ -51,6 +52,11 @@ resource "tfe_organization" "foobar" {
51
52
52
53
}
53
54
55
+ resource "tfe_agent_pool" "foobar" {
56
+ name = "agent-pool-test-example"
57
+ organization = tfe_organization.foobar.name
58
+ }
59
+
54
60
resource "tfe_project" "example" {
55
61
name = "example"
56
62
organization = tfe_organization.foobar.name
@@ -68,6 +74,7 @@ resource "tfe_stack" "foobar" {
68
74
name = "example-stack"
69
75
description = "Just an ordinary stack"
70
76
project_id = tfe_project.example.id
77
+ agent_pool_id = tfe_agent_pool.foobar.id
71
78
72
79
vcs_repo {
73
80
identifier = "%s"
@@ -85,7 +92,7 @@ func TestAccTFEStackResource_withAgentPool(t *testing.T) {
85
92
86
93
resource .Test (t , resource.TestCase {
87
94
PreCheck : func () { testAccPreCheck (t ) },
88
- ProtoV5ProviderFactories : testAccMuxedProviders ,
95
+ ProtoV6ProviderFactories : testAccMuxedProviders ,
89
96
Steps : []resource.TestStep {
90
97
{
91
98
Config : testAccTFEStackResourceConfigWithAgentPool (orgName ),
0 commit comments