-
Notifications
You must be signed in to change notification settings - Fork 104
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support specifying many manifest directories to install in test harne…
…ss. (#572) * Support specifying many manifest directories to install in test harness. * Drop --manifests-dirs in favor of making --manifests-dir a string slice.
- Loading branch information
1 parent
2d7474f
commit ff154a8
Showing
5 changed files
with
58 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package v1alpha1 | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestGetManifestsDirs(t *testing.T) { | ||
ts := TestSuite{} | ||
assert.Equal(t, []string{}, ts.GetManifestsDirs()) | ||
|
||
ts = TestSuite{ | ||
ManifestsDir: "./hello", | ||
} | ||
assert.Equal(t, []string{"./hello"}, ts.GetManifestsDirs()) | ||
|
||
ts = TestSuite{ | ||
ManifestsDirs: []string{ | ||
"./hello", | ||
}, | ||
} | ||
assert.Equal(t, []string{"./hello"}, ts.GetManifestsDirs()) | ||
|
||
ts = TestSuite{ | ||
ManifestsDirs: []string{ | ||
"./hello", | ||
}, | ||
ManifestsDir: "./world", | ||
} | ||
assert.Equal(t, []string{"./hello", "./world"}, ts.GetManifestsDirs()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters