Skip to content

Commit 43cb2cc

Browse files
authored
test(instance): fix server ssh tests (scaleway#4376)
1 parent 5834d95 commit 43cb2cc

File tree

5 files changed

+4998
-5862
lines changed

5 files changed

+4998
-5862
lines changed

internal/namespaces/instance/v1/custom_server_ssh_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func Test_ServerSSH(t *testing.T) {
1111
t.Run("Simple", core.Test(&core.TestConfig{
1212
Commands: instance.GetCommands(),
1313
BeforeFunc: core.BeforeFuncCombine(
14-
createServerBionic("Server"),
14+
core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
1515
startServer("Server"),
1616
),
1717
Cmd: "scw instance server ssh {{ .Server.ID }}",
@@ -30,7 +30,7 @@ func Test_ServerSSH(t *testing.T) {
3030
t.Run("With-Exit-Code", core.Test(&core.TestConfig{
3131
Commands: instance.GetCommands(),
3232
BeforeFunc: core.BeforeFuncCombine(
33-
createServerBionic("Server"),
33+
core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
3434
startServer("Server"),
3535
),
3636
Cmd: "scw instance server ssh {{ .Server.ID }}",

0 commit comments

Comments
 (0)