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

#1176: check id usage in fail-if, warn-if #1320

Merged

Conversation

benfitzpatrick
Copy link
Contributor

This checks that ids written in fail-if and warn-if expressions
are actually present in the metadata.

The old rule test in metadata-check was actually using ids not
present in the metadata, so that's been updated in both
source locations.

@arjclark, please review.

@benfitzpatrick benfitzpatrick added this to the next-release milestone Jul 1, 2014
@@ -176,16 +176,30 @@ class RuleEvaluator(rose.macro.MacroBase):
REC_VALUE = re.compile(r'("[^"]*")')

def evaluate_rule(self, rule, setting_id, config):
"""Evaluate the logic in this rule based on config values."""
Copy link
Contributor

Choose a reason for hiding this comment

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

by the provided rule?

@arjclark
Copy link
Contributor

arjclark commented Jul 2, 2014

@benfitzpatrick - code looks fine to me, tests as working in my environment. Can you tweak/add docstrings as per the comments above.

@arjclark
Copy link
Contributor

arjclark commented Jul 4, 2014

Looks good to me. Tests pass in my environment.

arjclark added a commit that referenced this pull request Jul 4, 2014
…-if-ids

#1176: check id usage in fail-if, warn-if
@arjclark arjclark merged commit ff3f10b into metomi:master Jul 4, 2014
@benfitzpatrick benfitzpatrick deleted the 1176.metadata-check-fail-if-ids branch August 26, 2014 09:25
@benfitzpatrick
Copy link
Contributor Author

This closed #1176.

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.

None yet

2 participants