-
-
Notifications
You must be signed in to change notification settings - Fork 20
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
Assign Vars value to metrics #1581
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## devel #1581 +/- ##
==========================================
+ Coverage 77.81% 78.38% +0.57%
==========================================
Files 58 57 -1
Lines 6626 6582 -44
==========================================
+ Hits 5156 5159 +3
+ Misses 1470 1423 -47
☔ View full report in Codecov by Sentry. |
"vars": { | ||
"type": "object", | ||
"additionalProperties": false, | ||
"required": [ | ||
"value" | ||
], | ||
"properties": { | ||
"type": { | ||
"type": "string", | ||
"description": "Specify the type of the variable", | ||
"enum": [ | ||
"str", | ||
"int", | ||
"float" | ||
] | ||
} | ||
} | ||
}, |
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.
Please remove this we have a definition for environment variables that work same as variables. This is defined in same file
"env": {
"type": "object",
"description": "One or more key value pairs for an environment (key=value)",
"minItems": 1,
"items": {
"type": "object",
"minItems": 1,
"propertyNames": {
"pattern": "^[A-Za-z_][A-Za-z0-9_]*$"
}
}
},
@@ -199,13 +199,17 @@ | |||
"regex": { | |||
"$ref": "#/definitions/regex" | |||
}, | |||
"vars": { | |||
"$ref": "#/definitions/vars" |
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.
change this to #/definitions/env
that should fix the issue.
add support for vars to definitions.schema.json file
This pull is to assign metrics from variables defined in tests. A property name vars is defined with value for vars.