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

Create Experiment validation for mandatory params #745

Closed
wants to merge 2 commits into from

Conversation

khansaad
Copy link
Contributor

@khansaad khansaad commented Apr 14, 2023

This PR fixes #559

@khansaad khansaad added bug Something isn't working remote_monitoring labels Apr 14, 2023
@khansaad khansaad added this to the Kruize 0.0.13_rm Release milestone Apr 14, 2023
@khansaad khansaad self-assigned this Apr 14, 2023
@khansaad khansaad changed the title Validation for mandatory params Create Experiment validation for mandatory params Apr 18, 2023
@khansaad khansaad marked this pull request as ready for review April 18, 2023 10:31
@khansaad khansaad requested review from dinogun and chandrams April 18, 2023 10:32
@chandrams
Copy link
Contributor

@khansaad - Please update the negative tests for createExperiment json keys with blank/NULL/invalid with the expected error messages and include assertions for the same in the existing functional tests.

@@ -75,10 +75,14 @@ def test_create_exp_invalid_tests(test_name, expected_status_code, version, expe
data = response.json()
print(data['message'])

keys = test_name.split('_', 1)
test_name_variable = keys[1]
INVALID_EXP_NAME_MSG = test_name_variable + NOT_EMPTY_OR_NULL
Copy link
Contributor

Choose a reason for hiding this comment

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

@khansaad - I think this will match with all invalid tests too for which the expected error message might be different. Can you please share the result log - report.html for this?

@khansaad khansaad force-pushed the validate-api-json-keys branch from 61ab2f3 to f5a6558 Compare December 19, 2023 12:42
@dinogun
Copy link
Contributor

dinogun commented Oct 3, 2024

Closing stale PRs

@dinogun dinogun closed this Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working remote_monitoring
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Validate blank/NULL/invalid values for the json keys in createExperiment API
5 participants