-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
chore(workflow-engine): comparison json schema for LevelHandler #84049
base: master
Are you sure you want to change the base?
Conversation
comparison_json_schema = { | ||
"type": "object", | ||
"properties": { | ||
"level": {"type": "integer", "enum": [*LOG_LEVELS_MAP.values()]}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: does this work?
"level": {"type": "integer", "enum": [*LOG_LEVELS_MAP.values()]}, | |
"level": {"type": "integer", "enum": list(LOG_LEVELS_MAP.values())}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yes maam i will fix
} | ||
assert dc.condition_result is True | ||
assert dc.condition_group == dcg | ||
|
||
def test_json_schema(self): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: test invalid match?
comparison
forLevelHandler
should be a dict withlevel: LOG_LEVELS_MAP.values()
andmatch: MatchType