Skip to content

Commit

Permalink
Fix broken tests with empty varDir
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Beck <[email protected]>
  • Loading branch information
Kidswiss committed May 14, 2024
1 parent 21494ca commit c6e1909
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions operator/restorecontroller/executor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,16 +226,16 @@ func TestRestore_args(t *testing.T) {
}{
"givenS3RestoreResource_whenArgs_expectS3RestoreType": {
GivenResource: newS3RestoreResource(),
ExpectedArgs: []string{"-varDir", "/k8up", "-restore", "-restoreType", "s3"},
ExpectedArgs: []string{"-varDir", "", "-restore", "-restoreType", "s3"},
},
"givenFolderRestoreResource_whenArgs_expectFolderRestoreType": {
GivenResource: newFolderRestoreResource(),
ExpectedArgs: []string{"-varDir", "/k8up", "-restore", "-restoreType", "folder"},
ExpectedArgs: []string{"-varDir", "", "-restore", "-restoreType", "folder"},
},
"givenFolderRestoreResourceWithAdditionalArguments_whenBuildRestoreObject_expectJobResource": {
GivenResource: newFilteredFolderRestoreResource(),
ExpectedArgs: []string{
"-varDir", "/k8up",
"-varDir", "",
"-restore",
"--tag", "testtag",
"--tag", "another",
Expand Down

0 comments on commit c6e1909

Please sign in to comment.