Skip to content

Commit 7e76b69

Browse files
authored
fix(apple-silicon): skip tests and add server-type to create tests (#4350)
1 parent ea3fdc9 commit 7e76b69

File tree

5 files changed

+3
-398
lines changed

5 files changed

+3
-398
lines changed

internal/namespaces/applesilicon/v1alpha1/custom_server_ssh_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ import (
88
)
99

1010
func Test_ServerSSH(t *testing.T) {
11+
t.Skip("Cannot run test as it's lock for 24h before deletion")
1112
t.Run("Simple", core.Test(&core.TestConfig{
1213
Commands: applesilicon.GetCommands(),
1314
BeforeFunc: core.BeforeFuncCombine(
14-
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create --wait"),
15+
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create server-type=M2-M --wait"),
1516
),
1617
Cmd: "scw apple-silicon server ssh {{ .Server.ID }}",
1718
OverrideExec: core.OverrideExecSimple(
@@ -31,7 +32,7 @@ func Test_ServerSSH(t *testing.T) {
3132
t.Run("With-Exit-Code", core.Test(&core.TestConfig{
3233
Commands: applesilicon.GetCommands(),
3334
BeforeFunc: core.BeforeFuncCombine(
34-
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create --wait"),
35+
core.ExecStoreBeforeCmd("Server", "scw apple-silicon server create server-type=M2-M --wait"),
3536
),
3637
Cmd: "scw apple-silicon server ssh {{ .Server.ID }}",
3738
OverrideExec: core.OverrideExecSimple(

internal/namespaces/applesilicon/v1alpha1/testdata/test-server-ssh-simple.cassette.yaml

Lines changed: 0 additions & 195 deletions
This file was deleted.

internal/namespaces/applesilicon/v1alpha1/testdata/test-server-ssh-simple.golden

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)