Skip to content

Commit

Permalink
Fixed rename env tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreMerkely committed Oct 10, 2024
1 parent 73ee92a commit 3052cab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/kosli/renameEnvironment_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ func (suite *RenameEnvironmentCommandTestSuite) TestRenameEnvironmentCmd() {
{
wantError: true,
name: "renaming environment fails if the new name is illegal",
cmd: fmt.Sprintf(`rename environment %s new_illegal_name %s`, suite.envName, suite.defaultKosliArguments),
golden: "Error: 'new_illegal_name' is an invalid name for environments. Valid names should start with a letter and can contain alphanumeric characters and '-'.\n",
cmd: fmt.Sprintf(`rename environment %s 'new illegal name' %s`, suite.envName, suite.defaultKosliArguments),
golden: "Error: 'new illegal name' is an invalid name for environments. Valid names should start with an alphanumeric and only contain alphanumeric characters, '.', '-', '_' and '~'.\n",
},
{
wantError: true,
Expand Down

0 comments on commit 3052cab

Please sign in to comment.