-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
hotfix: cluster create argument value validation (#1256)
- Loading branch information
1 parent
aeffea6
commit e4a81a3
Showing
2 changed files
with
16 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package utils | ||
|
||
import ( | ||
"testing" | ||
|
||
"github.com/stretchr/testify/assert" | ||
) | ||
|
||
func TestValidateParameterArgument(t *testing.T) { | ||
err := ValidateParameterArgument([]string{"machine-type", "e2-medium"}) | ||
assert.NoError(t, err, "no error expected") | ||
|
||
err = ValidateParameterArgument([]string{"container-type", "container_d"}) | ||
assert.NoError(t, err, "no error expected") | ||
} |