Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Updated profiles and parameters test to clean up parameters better#3100

Merged
dneuman64 merged 2 commits into
apache:masterfrom
moltzaum:to-param-test-cleanup
Dec 13, 2018
Merged

Updated profiles and parameters test to clean up parameters better#3100
dneuman64 merged 2 commits into
apache:masterfrom
moltzaum:to-param-test-cleanup

Conversation

@moltzaum
Copy link
Copy Markdown
Contributor

@moltzaum moltzaum commented Dec 6, 2018

What this PR does

Updated profile test to delete parameters it generates. Updated parameters delete test so that it checks whether or not a parameter was deleted by id instead of name and config (If there happens to be a parameter created by a profile there is a conflict).

How to verify this PR

Checkout the first commit, build traffic ops, run go test -run TestP and check the database to make sure no parameters exist. Repeat for the second commit. The first commit should show the problem, and the second should fix it.

Which TC components are affected by this PR?

This PR adds data to tc-fixtures.json, then modifies the tests so that they still pass. The data in tc-fixtures.json I will need to use.

Check all that apply

  • This PR includes tests (not new ones)
  • This PR includes documentation updates
  • This PR includes an update to CHANGELOG.md
  • This PR includes all required license headers (no new files)
  • This PR includes a database migration (ensure that migration sequence is correct)
  • This PR fixes a serious security flaw. Read more: www.apache.org/security

@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Dec 6, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2913/
Test PASSed.

…eters delete test so that it checks whether or not a parameter was deleted by id instead of name and config.
@asfgit
Copy link
Copy Markdown
Contributor

asfgit commented Dec 7, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/trafficcontrol-PR/2917/
Test PASSed.

@dneuman64 dneuman64 merged commit cbbb99d into apache:master Dec 13, 2018
@moltzaum moltzaum deleted the to-param-test-cleanup branch December 21, 2018 17:10
@mitchell852 mitchell852 added tests related to tests and/or testing infrastructure Traffic Ops related to Traffic Ops labels Feb 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

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