Skip to content

Add locale yaml schema manual check#109

Merged
blackboxsw merged 3 commits into
cloud-init:masterfrom
lucasmoura:locale_schema_yaml
Jun 11, 2020
Merged

Add locale yaml schema manual check#109
blackboxsw merged 3 commits into
cloud-init:masterfrom
lucasmoura:locale_schema_yaml

Conversation

@lucasmoura
Copy link
Copy Markdown

Manual check for 335

Comment thread bugs/gh-335.txt Outdated
Comment on lines +52 to +56
echo "Expect schema failure on invalid_locale"
if [ "$SERIES" = "xenial" ]; then
echo "Xenial does not have jsonschema dependecy, making this type of checking to not work on it"
fi
lxc exec $name -- cloud-init devel schema -c /var/tmp/invalid_locale.yaml
Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw Jun 10, 2020

Choose a reason for hiding this comment

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

Suggested change
echo "Expect schema failure on invalid_locale"
if [ "$SERIES" = "xenial" ]; then
echo "Xenial does not have jsonschema dependecy, making this type of checking to not work on it"
fi
lxc exec $name -- cloud-init devel schema -c /var/tmp/invalid_locale.yaml
if [ "$SERIES" = "xenial" ]; then
echo "Xenial does not have jsonschema dependecy, making this type of checking to not work on it"
lxc exec $name -- cloud-init devel schema -c /var/tmp/invalid_locale.yaml || echo "FAILURE: xenial should have passed invalid_schema because it has no jsonschema dep"
else
lxc exec $name -- cloud-init devel schema -c /var/tmp/invalid_locale.yaml || echo "SUCCESS: $SERIES rejected invalid schema"
fi

@lucasmoura lucasmoura force-pushed the locale_schema_yaml branch from 52d9aa5 to 158bdbf Compare June 11, 2020 13:03
@lucasmoura
Copy link
Copy Markdown
Author

@blackboxsw done

@lucasmoura lucasmoura requested a review from blackboxsw June 11, 2020 13:04
Copy link
Copy Markdown
Collaborator

@blackboxsw blackboxsw left a comment

Choose a reason for hiding this comment

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

+1

@blackboxsw blackboxsw merged commit e70016c into cloud-init:master Jun 11, 2020
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.

2 participants