commit | 2964a3d2db6a060c9473dc86918a59a783c19833 | [log] [tgz] |
---|---|---|
author | Rawlin Peters <rawlin@apache.org> | Thu May 28 10:44:24 2020 -0600 |
committer | GitHub <noreply@github.com> | Thu May 28 10:44:24 2020 -0600 |
tree | 6273cd6734a1a019fe09b575875446cb363ff5ac | |
parent | cfafdd9c7d5ffc78a8cef66f835e54625b48aec1 [diff] |
Add and satisfy OptionsDelete API test for DELETE /regions?name={{name}} (#4707) (#4732) * 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 56d09e6d08912dbbb90a6fa26c3095b69750fb28) Co-authored-by: Zach Hoffman <zach@zrhoffman.net>
Apache Traffic Control is an Open Source implementation of a Content Delivery Network.