@@ -21,24 +21,24 @@ func TestMainHooksAndStoreIntegration(t *testing.T) {
21
21
if err != nil {
22
22
t .Fatalf ("failed to get current working directory: %v" , err )
23
23
}
24
- defer os .RemoveAll (path .Join (origDir , "testdata " , "fixtures" , "hooks-test" , ".terraform" ))
24
+ defer os .RemoveAll (path .Join (origDir , "tests " , "fixtures" , "scenarios " , "hooks-test" , ".terraform" ))
25
25
defer os .Chdir (origDir )
26
26
27
- if err := os .Chdir ("testdata /fixtures/hooks-test" ); err != nil {
27
+ if err := os .Chdir ("tests /fixtures/scenarios /hooks-test" ); err != nil {
28
28
t .Fatalf ("failed to change directory: %v" , err )
29
29
}
30
30
31
31
// Capture the original arguments
32
32
origArgs := os .Args
33
33
defer func () { os .Args = origArgs }()
34
34
35
- // Set the arguments for the first call to main() to deeploy the `random1 ` component, which uses a `hook` to set a
35
+ // Set the arguments for the first call to main() to deploy the `component1 ` component, which uses a `hook` to set a
36
36
// value in Redis
37
- os .Args = []string {"atmos" , "terraform" , "deploy" , "random1 " , "-s" , "test" }
37
+ os .Args = []string {"atmos" , "terraform" , "deploy" , "component1 " , "-s" , "test" }
38
38
main ()
39
39
40
- // Set the arguments for the second call to main() to deeploy the `random2 ` component, which uses a `store` to read a
40
+ // Set the arguments for the second call to main() to deeploy the `component2 ` component, which uses a `store` to read a
41
41
// value that was set in the first apply.
42
- os .Args = []string {"atmos" , "terraform" , "deploy" , "random2 " , "-s" , "test" }
42
+ os .Args = []string {"atmos" , "terraform" , "deploy" , "component2 " , "-s" , "test" }
43
43
main ()
44
44
}
0 commit comments