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

Added api contract profile parameters test case #7604

Merged

Conversation

Kashatlast2
Copy link
Contributor

Added Api contract test case for profile parameters endpoint


Which Traffic Control components are affected by this PR?

  • Traffic Ops

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

@ericholguin ericholguin added Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one tests related to tests and/or testing infrastructure new feature A new feature, capability or behavior python Pull requests that update Python or Python-related code labels Jul 3, 2023
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")
Copy link
Contributor

@gokulakrishnansvm gokulakrishnansvm Jul 25, 2023

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How about now?

Copy link
Contributor Author

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.

@ericholguin ericholguin merged commit 4f91711 into apache:master Jul 26, 2023
15 of 16 checks passed
jagan-parthiban pushed a commit to jagan-parthiban/trafficcontrol that referenced this pull request Jul 27, 2023
* 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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
low impact affects only a small portion of a CDN, and cannot itself break one new feature A new feature, capability or behavior python Pull requests that update Python or Python-related code tests related to tests and/or testing infrastructure Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants