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

Remove wrapper around response object #6956

Merged
merged 2 commits into from
Jul 15, 2022

Conversation

tcfdev
Copy link
Collaborator

@tcfdev tcfdev commented Jul 12, 2022

Closes: #6795

The API response incorrectly adds an additional response and alert wrapper. The API will now return a response as documented at /federations/{{id}}/federation_resolvers


Which Traffic Control components are affected by this PR?

  • Traffic Ops

What is the best way to verify this PR?

Federations can only be accessed via the API (or the client libraries). Attempt to POST a body with contents similar to:

{
	"fedResolverIds": [1],
	"replace": true
}

to the federations/{{id}}/federation_resolvers endpoint where the resolverIds matches existing resolvers and the {{id}} matches an existing federation.

If this is a bugfix, which Traffic Control versions contained the bug?

PR submission checklist

@mitchell852 mitchell852 added Traffic Ops related to Traffic Ops regression bug a bug in existing functionality introduced by a new version labels Jul 12, 2022
@ocket8888 ocket8888 self-assigned this Jul 13, 2022
@ocket8888
Copy link
Contributor

Looks like the APIv4 tests are expecting the wrapped format.

@ocket8888 ocket8888 merged commit da4456a into apache:master Jul 15, 2022
@asf-ci asf-ci mentioned this pull request Aug 1, 2022
4 tasks
zrhoffman pushed a commit to zrhoffman/trafficcontrol that referenced this pull request Oct 2, 2022
* Remove wrapper around response object

* Add CHANGELOG entry

Co-authored-by: Taylor Frey <taylor_frey@comcast.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
regression bug a bug in existing functionality introduced by a new version Traffic Ops related to Traffic Ops
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect response from associating zero or more Federation Resolvers with a Federation
3 participants