Skip to content

Commit

Permalink
fix(apple-silicon): skip tests and add server-type to create tests (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Laure-di authored Dec 11, 2024
1 parent ea3fdc9 commit 7e76b69
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 398 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,11 @@ import (
)

func Test_ServerSSH(t *testing.T) {
t.Skip("Cannot run test as it's lock for 24h before deletion")
t.Run("Simple", core.Test(&core.TestConfig{
Commands: applesilicon.GetCommands(),
BeforeFunc: core.BeforeFuncCombine(
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create --wait"),
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create server-type=M2-M --wait"),
),
Cmd: "scw apple-silicon server ssh {{ .Server.ID }}",
OverrideExec: core.OverrideExecSimple(
Expand All @@ -31,7 +32,7 @@ func Test_ServerSSH(t *testing.T) {
t.Run("With-Exit-Code", core.Test(&core.TestConfig{
Commands: applesilicon.GetCommands(),
BeforeFunc: core.BeforeFuncCombine(
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create --wait"),
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create server-type=M2-M --wait"),
),
Cmd: "scw apple-silicon server ssh {{ .Server.ID }}",
OverrideExec: core.OverrideExecSimple(
Expand Down

This file was deleted.

This file was deleted.

Loading

0 comments on commit 7e76b69

Please sign in to comment.