@@ -27,7 +27,7 @@ func TestStackDeploymentRunsList(t *testing.T) {
27
27
stack , err := client .Stacks .Create (ctx , StackCreateOptions {
28
28
Name : "test-stack" ,
29
29
VCSRepo : & StackVCSRepoOptions {
30
- Identifier : "hashicorp-guides/pet-nulls-stack " ,
30
+ Identifier : "ctrombley/linked-stacks-demo-network " ,
31
31
OAuthTokenID : oauthClient .OAuthTokens [0 ].ID ,
32
32
Branch : "main" ,
33
33
},
@@ -42,11 +42,11 @@ func TestStackDeploymentRunsList(t *testing.T) {
42
42
require .NoError (t , err )
43
43
require .NotNil (t , stackUpdated )
44
44
45
- stack = pollStackDeployments (t , ctx , client , stackUpdated .ID )
46
- require .NotNil (t , stack .LatestStackConfiguration )
45
+ stackUpdated = pollStackDeploymentGroups (t , ctx , client , stackUpdated .ID )
46
+ require .NotNil (t , stackUpdated .LatestStackConfiguration )
47
47
48
48
// Get the deployment group ID from the stack configuration
49
- deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stack .LatestStackConfiguration .ID , nil )
49
+ deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stackUpdated .LatestStackConfiguration .ID , nil )
50
50
require .NoError (t , err )
51
51
require .NotNil (t , deploymentGroups )
52
52
require .NotEmpty (t , deploymentGroups .Items )
@@ -90,7 +90,7 @@ func TestStackDeploymentRunsRead(t *testing.T) {
90
90
Project : orgTest .DefaultProject ,
91
91
Name : "test-stack" ,
92
92
VCSRepo : & StackVCSRepoOptions {
93
- Identifier : "hashicorp-guides/pet-nulls-stack " ,
93
+ Identifier : "ctrombley/linked-stacks-demo-network " ,
94
94
OAuthTokenID : oauthClient .OAuthTokens [0 ].ID ,
95
95
Branch : "main" ,
96
96
},
@@ -102,10 +102,10 @@ func TestStackDeploymentRunsRead(t *testing.T) {
102
102
require .NoError (t , err )
103
103
require .NotNil (t , stackUpdated )
104
104
105
- stack = pollStackDeployments (t , ctx , client , stackUpdated .ID )
106
- require .NotNil (t , stack .LatestStackConfiguration )
105
+ stackUpdated = pollStackDeploymentGroups (t , ctx , client , stackUpdated .ID )
106
+ require .NotNil (t , stackUpdated .LatestStackConfiguration )
107
107
108
- stackDeploymentGroups , err := client .StackDeploymentGroups .List (ctx , stack .LatestStackConfiguration .ID , nil )
108
+ stackDeploymentGroups , err := client .StackDeploymentGroups .List (ctx , stackUpdated .LatestStackConfiguration .ID , nil )
109
109
require .NoError (t , err )
110
110
require .NotEmpty (t , stackDeploymentGroups )
111
111
@@ -115,7 +115,7 @@ func TestStackDeploymentRunsRead(t *testing.T) {
115
115
require .NoError (t , err )
116
116
require .NotEmpty (t , stackDeploymentRuns )
117
117
118
- sdr := stackDeploymentGroups .Items [0 ]
118
+ sdr := stackDeploymentRuns .Items [0 ]
119
119
120
120
t .Run ("Read with valid ID" , func (t * testing.T ) {
121
121
run , err := client .StackDeploymentRuns .Read (ctx , sdr .ID )
@@ -145,7 +145,7 @@ func TestStackDeploymentRunsApproveAllPlans(t *testing.T) {
145
145
Project : orgTest .DefaultProject ,
146
146
Name : "test-stack" ,
147
147
VCSRepo : & StackVCSRepoOptions {
148
- Identifier : "hashicorp-guides/pet-nulls-stack " ,
148
+ Identifier : "ctrombley/linked-stacks-demo-network " ,
149
149
OAuthTokenID : oauthClient .OAuthTokens [0 ].ID ,
150
150
Branch : "main" ,
151
151
},
@@ -157,11 +157,11 @@ func TestStackDeploymentRunsApproveAllPlans(t *testing.T) {
157
157
require .NoError (t , err )
158
158
require .NotNil (t , stackUpdated )
159
159
160
- stack = pollStackDeployments (t , ctx , client , stackUpdated .ID )
161
- require .NotNil (t , stack .LatestStackConfiguration )
160
+ stackUpdated = pollStackDeploymentGroups (t , ctx , client , stackUpdated .ID )
161
+ require .NotNil (t , stackUpdated .LatestStackConfiguration )
162
162
163
163
// Get the deployment group ID from the stack configuration
164
- deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stack .LatestStackConfiguration .ID , nil )
164
+ deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stackUpdated .LatestStackConfiguration .ID , nil )
165
165
require .NoError (t , err )
166
166
require .NotNil (t , deploymentGroups )
167
167
require .NotEmpty (t , deploymentGroups .Items )
@@ -198,7 +198,7 @@ func TestStackDeploymentRunsCancel(t *testing.T) {
198
198
Project : orgTest .DefaultProject ,
199
199
Name : "test-stack" ,
200
200
VCSRepo : & StackVCSRepoOptions {
201
- Identifier : "hashicorp-guides/pet-nulls-stack " ,
201
+ Identifier : "ctrombley/linked-stacks-demo-network " ,
202
202
OAuthTokenID : oauthClient .OAuthTokens [0 ].ID ,
203
203
Branch : "main" ,
204
204
},
@@ -210,11 +210,11 @@ func TestStackDeploymentRunsCancel(t *testing.T) {
210
210
require .NoError (t , err )
211
211
require .NotNil (t , stackUpdated )
212
212
213
- stack = pollStackDeployments (t , ctx , client , stackUpdated .ID )
214
- require .NotNil (t , stack .LatestStackConfiguration )
213
+ stackUpdated = pollStackDeploymentGroups (t , ctx , client , stackUpdated .ID )
214
+ require .NotNil (t , stackUpdated .LatestStackConfiguration )
215
215
216
216
// Get the deployment group ID from the stack configuration
217
- deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stack .LatestStackConfiguration .ID , nil )
217
+ deploymentGroups , err := client .StackDeploymentGroups .List (ctx , stackUpdated .LatestStackConfiguration .ID , nil )
218
218
require .NoError (t , err )
219
219
require .NotNil (t , deploymentGroups )
220
220
require .NotEmpty (t , deploymentGroups .Items )
0 commit comments