Fix flux install command so it returns an error when unexpected arguments are passed
Co-authored-by: Max Jonas Werner <makkes@users.noreply.github.com> Signed-off-by: Vinícius Garcia <vingarcia00@gmail.com>
This commit is contained in:
@@ -37,6 +37,11 @@ func TestInstall(t *testing.T) {
|
||||
args: "install --namespace='@#[]'",
|
||||
assert: assertError("namespace must be a valid DNS label: \"@#[]\""),
|
||||
},
|
||||
{
|
||||
name: "invalid sub-command",
|
||||
args: "install unexpectedPosArg --namespace=example",
|
||||
assert: assertError(`unknown command "unexpectedPosArg" for "flux install"`),
|
||||
},
|
||||
}
|
||||
|
||||
for _, tt := range tests {
|
||||
|
||||
Reference in New Issue
Block a user