mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-26 17:51:13 +08:00
fix: issue where omitted visibility is now public and not empty for manifest parameters
This commit is contained in:
@@ -48,8 +48,8 @@ func TestParseParametersFromManifest(t *testing.T) {
|
||||
// Make sure visibility is set
|
||||
assert.Equal(t, *keyedParameters["dataset-path"].Visibility, "public")
|
||||
|
||||
// Make sure visibility is not set if omitted
|
||||
assert.Nil(t, keyedParameters["tf-image"].Visibility)
|
||||
// Make sure visibility is public if omitted
|
||||
assert.Equal(t, *keyedParameters["tf-image"].Visibility, "public")
|
||||
|
||||
// Make sure numbers, slashes, dashes, and letters are parsed correctly
|
||||
assert.Equal(t, *keyedParameters["tf-image"].Value, "tensorflow/tensorflow:1.13.1-py3")
|
||||
|
Reference in New Issue
Block a user