Skip to content

Commit

Permalink
Update gateway ID validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyjux committed Jan 25, 2025
1 parent 5055584 commit b8628d0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion e2e/cypress/tests/19-api-v3/03-gateways.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ describe('Gateways', () => {
details: {
d0: {
message:
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start and end with a letter.',
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start with a letter.',
},
},
}
Expand Down
2 changes: 1 addition & 1 deletion src/lists/extensions/Namespace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ module.exports = {
assert.strictEqual(
re.test(args.namespace),
true,
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start and end with a letter.'
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start with a letter.'
);
const noauthContext = context.createContext({
skipAccessControl: true,
Expand Down
2 changes: 1 addition & 1 deletion src/services/keycloak/namespace-details.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ export function validateNamespaceName(name: string) {
regExprValidation(
namespaceValidationRule,
name,
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start and end with a letter.'
'Gateway ID must be between 5 and 15 lowercase alpha-numeric characters and start with a letter.'
);
}

Expand Down

0 comments on commit b8628d0

Please sign in to comment.