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

CI test for flavor-name syntax in scs-0103 yaml file #438

Merged
merged 6 commits into from
Jan 11, 2024
Merged

Conversation

mbuechse
Copy link
Contributor

closes #339

Test it like so:

$ Tests/iaas/flavor-naming/check-yaml.py Tests/testing/
ERROR: flavor 'SCS-1V-4': field 'cpu-type' contradicting name-v2 'SCS-1V-4'; found 'crowded-core', expected 'shared-core'
ERROR: flavor 'SCS-2V-8': field 'name-v1' contradicting name-v2 'SCS-2V-8'; found 'SCS-2V-8', expected 'SCS-2V:8'
ERROR: flavor 'SCS-4V-16': field 'ram' contradicting name-v2 'SCS-4V-16'; found '12', expected '16.0'
ERROR: flavor 'SCS-1V-2': field 'cpus' contradicting name-v2 'SCS-1V-2'; found '2', expected '1'
ERROR: flavor 'SCS-2V-4-20s': field 'disk0-type' contradicting name-v2 'SCS-2V-4-20s'; found 'network', expected 'ssd'
ERROR: flavor 'SCS-4V-16-100s': field 'disk' contradicting name-v2 'SCS-4V-16-100s'; found '10', expected '100'
ERROR: file 'scs-0103-v1-flavors-wrong.yaml': found 6 errors

Copy link
Contributor

@artificial-intelligence artificial-intelligence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM beside some nits and opinions surrounding naming and documenting stuff.

Tests/iaas/flavor-naming/check-yaml.py Show resolved Hide resolved
Tests/iaas/flavor-naming/check-yaml.py Outdated Show resolved Hide resolved
Tests/iaas/flavor-naming/check-yaml.py Show resolved Hide resolved
Tests/iaas/flavor-naming/check-yaml.py Outdated Show resolved Hide resolved
Copy link
Contributor

@artificial-intelligence artificial-intelligence left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mbuechse mbuechse merged commit ea173de into main Jan 11, 2024
4 checks passed
@mbuechse mbuechse deleted the issue/339 branch January 11, 2024 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI tests for mandatory-flavor-list (#319)
2 participants