mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-27 05:38:50 +00:00
validate that object name adheres to RFC 1123 for flux create commands
Signed-off-by: Somtochi Onyekwere <somtochionyekwere@gmail.com>
This commit is contained in:
parent
8c2983c958
commit
4a893b13f8
6 changed files with 77 additions and 4 deletions
|
|
@ -13,7 +13,7 @@ func TestCreateGitSecret(t *testing.T) {
|
|||
{
|
||||
name: "no args",
|
||||
args: "create secret git",
|
||||
assert: assertError("secret name is required"),
|
||||
assert: assertError("name is required"),
|
||||
},
|
||||
{
|
||||
name: "basic secret",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue