-
Notifications
You must be signed in to change notification settings - Fork 344
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
Added api contract profile parameters test case #7604
Added api contract profile parameters test case #7604
Conversation
traffic_ops/testing/api_contract/v4/data/response_template.json
Outdated
Show resolved
Hide resolved
traffic_ops/testing/api_contract/v4/data/response_template.json
Outdated
Show resolved
Hide resolved
traffic_ops/testing/api_contract/v4/data/response_template.json
Outdated
Show resolved
Hide resolved
logger.info("Deleting Profile Parameters data... %s", msg) | ||
if msg is None: | ||
logger.error("Profile Parameter returned by Traffic Ops is missing a 'profile_id' property") | ||
pytest.fail("Response from delete request is empty, Failing test_case") |
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.
Indentation looks off after If loop in 1680 and 1681.
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.
How about now?
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.
Ok, I think it should be good now.
* added profile parameters test case * Refactored coordinates to match updated merge in conftest.py * Added get request for profile and parameters in conftest.py * Update request_template.json for profileId and parameterId * Added lastUpdated to response_template.json * Fixed assertion test_profile_parameters.py * Fixed indentation on line 1685 conftest.py * removed unnecessary profile_id var conftest.py * removed unnecessary declaration for parameter_Id conftest.py * fixed indentation conftest.py * Fixing inconsistent tabbing indentation conftest.py --------- Co-authored-by: yblanc545 <[email protected]>
Added Api contract test case for profile parameters endpoint
Which Traffic Control components are affected by this PR?
What is the best way to verify this PR?
Step 1 : Follow steps from README file(traffic_ops/testing/api_contract) to run api-contract-tests.
Step 2 : To execute servers API Contract Testcase , navigate to traffic_ops/testing/api_contract/v4
pytest --to-user Username --to-password Password --to-url URL --config Config Path --request-template Request template --response-template Response template
Note: Config, Request template and response template paths are optional.
PR submission checklist