Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure we have one scenario per automation file #379

Merged
merged 1 commit into from
Sep 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/automation-schema.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# We are using yamale to validate files
# https://github.com/23andMe/Yamale
---
vas: map(include('_architecture'), key=str())
vas: map(include('_architecture'), key=str(), min=1, max=1)

---
# Define various nested types
Expand Down
2 changes: 2 additions & 0 deletions .ci/validate-schema-paths.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ def __run_file(self, f):
content = yaml.safe_load(fh)
for scenario in content['vas']:
print(f' Checking scenario: {scenario}')
assert (rel.name == f'{scenario}.yaml'), \
f'!! {rel.name} does not match {scenario}.yaml'
self.__validate(content['vas'][scenario])

def __validate(self, scenario):
Expand Down