Skip to content

chore: add validation test for object name formatting#368

Open
nieomylnieja wants to merge 2 commits into
mainfrom
improve-validation-error-formatting
Open

chore: add validation test for object name formatting#368
nieomylnieja wants to merge 2 commits into
mainfrom
improve-validation-error-formatting

Conversation

@nieomylnieja

Copy link
Copy Markdown
Collaborator

Summary

Introduces a new bats test to validate object name formatting against RFC-1123 compliant label naming rules. The test ensures that invalid names in the wrong-name-objects.yaml manifest are correctly flagged during the sloctl apply operation. The validation checks include:

  • Ensuring names consist of lowercase alphanumeric characters or hyphens.
  • Names must start and end with an alphanumeric character.

Additionally, a new test input file wrong-name-objects.yaml is added to provide sample invalid objects for testing purposes.

nieomylnieja and others added 2 commits August 25, 2025 12:19
This commit introduces a new BATS test to validate object name formatting against RFC-1123 compliant label naming rules.
The test ensures that invalid names in the `wrong-name-objects.yaml` manifest are correctly flagged during the `sloctl apply` operation.
The validation checks include:
- Ensuring names consist of lowercase alphanumeric characters or hyphens.
- Names must start and end with an alphanumeric character.

Additionally, a new test input file `wrong-name-objects.yaml` is added to provide sample invalid objects for testing purposes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants