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

[BACKPORT #4707] Add and satisfy OptionsDelete API test for DELETE /regions?name={{name}}#4732

Merged
rawlinp merged 1 commit into
apache:4.1.xfrom
rawlinp:backport-options-deleter-fix-2
May 28, 2020
Merged

[BACKPORT #4707] Add and satisfy OptionsDelete API test for DELETE /regions?name={{name}}#4732
rawlinp merged 1 commit into
apache:4.1.xfrom
rawlinp:backport-options-deleter-fix-2

Conversation

@rawlinp
Copy link
Copy Markdown
Contributor

@rawlinp rawlinp commented May 28, 2020

Backport #4707 to 4.1.x.

…e}} (apache#4707)

* Add an API test for DELETE /regions?name={{name}}

* No changelog entry

* Combine OptionsDeleter and HasDeleteKeyOptions interfaces
Rename variables:
  - hasDeleteKeyOption() -> checkIfOptionsDeleter()
  - deleteKeyOptionsExists isOptionsDeleter

* Do not bail if the type is an options deleter

* Add new DeleteHandler() logic to DeprecatedDeleteHandler()

* Remove unnecessary "else" clause

* Add "name" param to GetKeys() and SetKeys()

* Set object keys from DeleteKeyOptions() or GetKeyFieldsInfo() depending
on whether the object is an options deleter

* Add audit log assertions to the API test for deleting a region by name

* No need to return "name" param from GetKeys()

* DeprecatedDeleteHandler: Set object keys from DeleteKeyOptions() or
GetKeyFieldsInfo() depending on whether the object is an options deleter

* kf.Field -> key

(cherry picked from commit 56d09e6)
@rawlinp rawlinp added bug something isn't working as intended backport an upstream change merged into an older release Traffic Ops related to Traffic Ops labels May 28, 2020
@rawlinp rawlinp merged commit 2964a3d into apache:4.1.x May 28, 2020
@rawlinp rawlinp deleted the backport-options-deleter-fix-2 branch May 28, 2020 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

backport an upstream change merged into an older release bug something isn't working as intended Traffic Ops related to Traffic Ops

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants