Skip to content

Commit b7f2a90

Browse files
authored
test(instance): fix ssh config install tests (scaleway#4370)
1 parent 278ff5c commit b7f2a90

File tree

3 files changed

+2697
-2793
lines changed

3 files changed

+2697
-2793
lines changed

internal/namespaces/instance/v1/custom_ssh_config_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ func Test_SSHConfigInstall(t *testing.T) {
1717
t.Run("Install config and create default", core.Test(&core.TestConfig{
1818
TmpHomeDir: true,
1919
Commands: instance.GetCommands(),
20-
BeforeFunc: createServerBionic("Server"),
20+
BeforeFunc: core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
2121
Args: []string{"scw", "instance", "ssh", "install-config"},
2222
Check: core.TestCheckCombine(
2323
core.TestCheckGoldenAndReplacePatterns(
@@ -58,7 +58,7 @@ func Test_SSHConfigInstall(t *testing.T) {
5858

5959
return nil
6060
},
61-
createServerBionic("Server"),
61+
core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
6262
),
6363
Args: []string{"scw", "instance", "ssh", "install-config"},
6464
Check: core.TestCheckCombine(

0 commit comments

Comments
 (0)