Skip to content

Commit

Permalink
test(instance): fix server ssh tests (#4376)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Dec 23, 2024
1 parent 5834d95 commit 43cb2cc
Show file tree
Hide file tree
Showing 5 changed files with 4,998 additions and 5,862 deletions.
4 changes: 2 additions & 2 deletions internal/namespaces/instance/v1/custom_server_ssh_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ func Test_ServerSSH(t *testing.T) {
t.Run("Simple", core.Test(&core.TestConfig{
Commands: instance.GetCommands(),
BeforeFunc: core.BeforeFuncCombine(
createServerBionic("Server"),
core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
startServer("Server"),
),
Cmd: "scw instance server ssh {{ .Server.ID }}",
Expand All @@ -30,7 +30,7 @@ func Test_ServerSSH(t *testing.T) {
t.Run("With-Exit-Code", core.Test(&core.TestConfig{
Commands: instance.GetCommands(),
BeforeFunc: core.BeforeFuncCombine(
createServerBionic("Server"),
core.ExecStoreBeforeCmd("Server", testServerCommand("stopped=true ip=new")),
startServer("Server"),
),
Cmd: "scw instance server ssh {{ .Server.ID }}",
Expand Down
Loading

0 comments on commit 43cb2cc

Please sign in to comment.