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

Comments

Servers fixes#4794

Merged
mattjackson220 merged 2 commits intoapache:masterfrom
ocket8888:servers-fixes
Jun 15, 2020
Merged

Servers fixes#4794
mattjackson220 merged 2 commits intoapache:masterfrom
ocket8888:servers-fixes

Conversation

@ocket8888
Copy link
Contributor

What does this PR (Pull Request) do?

  • This PR fixes is not related to any issue

Fixes changes to the v1/v2 API which modified the POST /servers response code from 200 OK to 201 Created, and also changes some alert messages in those versions back to their old content.

Also changes the TO Python client to no longer incorrectly reject successful responses as failures.

Which Traffic Control components are affected by this PR?

  • Traffic Control Client (Python)
  • Traffic Ops

What is the best way to verify this PR?

Create servers in v1/v2 - probably using the Python client to kill two birds with one stone - and ensure that the response code is 201. Also maybe verify the alert messages, if you care - nothing should depend on those exact words, but I changed them back just because.

If this is a bug fix, what versions of Traffic Control are affected?

  • master

The following criteria are ALL met by this PR

  • Tests are unnecessary
  • Documentation is unnecessary
  • An update to CHANGELOG.md is not necessary
  • This PR includes any and all required license headers
  • This PR does not include a database migration
  • This PR DOES NOT FIX A SERIOUS SECURITY VULNERABILITY

@ocket8888 ocket8888 added bug something isn't working as intended Traffic Ops related to Traffic Ops low impact affects only a small portion of a CDN, and cannot itself break one TC Client (python) related to the Python implementation of a TC client labels Jun 15, 2020
Copy link
Member

@shamrickus shamrickus left a comment

Choose a reason for hiding this comment

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

LGTM

  • All unit/api tests pass
  • No go fmt issues
  • Alerts have the proper case
  • 201 is returned on success
  • Non 200 success codes are not labeled failures (specifically tested with 201) in the python client.

@mattjackson220 mattjackson220 merged commit 02a1286 into apache:master Jun 15, 2020
@ocket8888 ocket8888 deleted the servers-fixes branch June 15, 2020 21:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug something isn't working as intended low impact affects only a small portion of a CDN, and cannot itself break one TC Client (python) related to the Python implementation of a TC client Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants