@@ -79,26 +79,26 @@ func TestStackSourceSpeculatives(t *testing.T) {
79
79
oauthClient , cleanup := createOAuthClient (t , client , orgTest , nil )
80
80
t .Cleanup (cleanup )
81
81
82
- stack , err := client .Stacks .Create (ctx , StackCreateOptions {
82
+ stackVCS , err := client .Stacks .Create (ctx , StackCreateOptions {
83
83
Project : orgTest .DefaultProject ,
84
- Name : "test-stack" ,
84
+ Name : "test-stack-vcs " ,
85
85
VCSRepo : & StackVCSRepoOptions {
86
86
Identifier : "hashicorp-guides/pet-nulls-stack" ,
87
87
OAuthTokenID : oauthClient .OAuthTokens [0 ].ID ,
88
88
},
89
89
})
90
90
require .NoError (t , err )
91
91
92
- stackHCP , err := client .Stacks .Create (ctx , StackCreateOptions {
92
+ stack , err := client .Stacks .Create (ctx , StackCreateOptions {
93
93
Project : & Project {
94
94
ID : orgTest .DefaultProject .ID ,
95
95
},
96
- Name : "test-stack-hcp " ,
96
+ Name : "test-stack" ,
97
97
})
98
98
require .NoError (t , err )
99
99
100
100
t .Run ("with speculative run enabled for VCS upload" , func (t * testing.T ) {
101
- ss , err := client .StackSources .CreateAndUpload (ctx , stack .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
101
+ ss , err := client .StackSources .CreateAndUpload (ctx , stackVCS .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
102
102
SelectedDeployments : []string {"simple" },
103
103
SpeculativeEnabled : Bool (true ),
104
104
})
@@ -108,7 +108,7 @@ func TestStackSourceSpeculatives(t *testing.T) {
108
108
})
109
109
110
110
t .Run ("with speculative run disabled for manual upload" , func (t * testing.T ) {
111
- ss , err := client .StackSources .CreateAndUpload (ctx , stackHCP .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
111
+ ss , err := client .StackSources .CreateAndUpload (ctx , stack .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
112
112
SelectedDeployments : []string {"simple" },
113
113
SpeculativeEnabled : Bool (false ),
114
114
})
@@ -118,7 +118,7 @@ func TestStackSourceSpeculatives(t *testing.T) {
118
118
})
119
119
120
120
t .Run ("with invalid speculative run option for VCS upload" , func (t * testing.T ) {
121
- ss , err := client .StackSources .CreateAndUpload (ctx , stack .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
121
+ ss , err := client .StackSources .CreateAndUpload (ctx , stackVCS .ID , "test-fixtures/stack-source" , & CreateStackSourceOptions {
122
122
SelectedDeployments : []string {"simple" },
123
123
SpeculativeEnabled : Bool (false ),
124
124
})
0 commit comments