-
Notifications
You must be signed in to change notification settings - Fork 55
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
Add validation for Update Results API Params #814
Conversation
Signed-off-by: saakhan <[email protected]>
Signed-off-by: saakhan <[email protected]>
… a new method Signed-off-by: saakhan <[email protected]>
@khansaad - As discussed, please update the expected error messages in the negative functional tests |
…-exp-json # Conflicts: # src/main/java/com/autotune/analyzer/serviceObjects/Converters.java # src/main/java/com/autotune/analyzer/services/UpdateResults.java # src/main/java/com/autotune/analyzer/utils/AnalyzerErrorConstants.java
…ion method Signed-off-by: saakhan <[email protected]>
Signed-off-by: saakhan <[email protected]>
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.
LGTM
public static final String MEASUREMENT_DURATION_ERROR = "Interval duration cannot be less than or greater than measurement_duration by more than " + KruizeConstants.TimeConv.MEASUREMENT_DURATION_THRESHOLD_SECONDS + " seconds"; | ||
public static final String MISSING_METRICS = "Metric data is not present for container : %s for experiment: %s. "; | ||
public static final String BLANK_AGGREGATION_INFO_VALUE = " cannot be negative or blank for the metric variable: "; |
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 update the tests with the expected error messages validation
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.
LGTM
@khansaad - Please raise a separate PR with the test changes as this PR is closed |
This PR fixes #561 . It contains validation for the update results API's input params.