Skip to content

Commit

Permalink
test(instance): use sbs additionnal volumes with server backup (#4412)
Browse files Browse the repository at this point in the history
  • Loading branch information
Codelax authored Jan 10, 2025
1 parent 453ebd1 commit 9105d29
Show file tree
Hide file tree
Showing 3 changed files with 669 additions and 188 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ 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(),
Expand Down
Loading

0 comments on commit 9105d29

Please sign in to comment.