Skip to content

Commit 481ac77

Browse files
Naming alignment
1 parent ca1b63b commit 481ac77

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

stack_source_integration_test.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -79,26 +79,26 @@ func TestStackSourceSpeculatives(t *testing.T) {
7979
oauthClient, cleanup := createOAuthClient(t, client, orgTest, nil)
8080
t.Cleanup(cleanup)
8181

82-
stack, err := client.Stacks.Create(ctx, StackCreateOptions{
82+
stackVCS, err := client.Stacks.Create(ctx, StackCreateOptions{
8383
Project: orgTest.DefaultProject,
84-
Name: "test-stack",
84+
Name: "test-stack-vcs",
8585
VCSRepo: &StackVCSRepoOptions{
8686
Identifier: "hashicorp-guides/pet-nulls-stack",
8787
OAuthTokenID: oauthClient.OAuthTokens[0].ID,
8888
},
8989
})
9090
require.NoError(t, err)
9191

92-
stackHCP, err := client.Stacks.Create(ctx, StackCreateOptions{
92+
stack, err := client.Stacks.Create(ctx, StackCreateOptions{
9393
Project: &Project{
9494
ID: orgTest.DefaultProject.ID,
9595
},
96-
Name: "test-stack-hcp",
96+
Name: "test-stack",
9797
})
9898
require.NoError(t, err)
9999

100100
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{
102102
SelectedDeployments: []string{"simple"},
103103
SpeculativeEnabled: Bool(true),
104104
})
@@ -108,7 +108,7 @@ func TestStackSourceSpeculatives(t *testing.T) {
108108
})
109109

110110
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{
112112
SelectedDeployments: []string{"simple"},
113113
SpeculativeEnabled: Bool(false),
114114
})
@@ -118,7 +118,7 @@ func TestStackSourceSpeculatives(t *testing.T) {
118118
})
119119

120120
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{
122122
SelectedDeployments: []string{"simple"},
123123
SpeculativeEnabled: Bool(false),
124124
})

0 commit comments

Comments
 (0)