Skip to content

Commit

Permalink
test(instance): use sbs additionnal volumes with server backup
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax committed Jan 9, 2025
1 parent aafd622 commit f261893
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/namespaces/instance/v1/custom_server_action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,14 +123,14 @@ func Test_ServerBackup(t *testing.T) {

t.Run("With SBS volumes", core.Test(&core.TestConfig{
Commands: instance.GetCommands(),
BeforeFunc: core.ExecStoreBeforeCmd("Server", testServerCommand("root-volume=sbs:20G stopped=true image=ubuntu-jammy")),
BeforeFunc: core.ExecStoreBeforeCmd("Server", testServerCommand("root-volume=sbs:20G additional-volumes.0=sbs:10G additional-volumes.1=sbs:15G stopped=true image=ubuntu-jammy")),
Cmd: `scw instance server backup {{ .Server.ID }} name=backup`,
Check: core.TestCheckCombine(
core.TestCheckGolden(),
core.TestCheckExitCode(0),
),
AfterFunc: core.AfterFuncCombine(
core.ExecAfterCmd("scw instance image delete {{ .CmdResult.Image.ID }} with-snapshots=true"),
core.ExecAfterCmd("scw instance image delete {{ .CmdResult.Image.ID }} with-snapshots=true --debug"),
core.ExecAfterCmd("scw instance server delete {{ .Server.ID }} with-ip=true with-volumes=local"),
),
}))
Expand Down

0 comments on commit f261893

Please sign in to comment.