Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* add initial PatchOperation support with cas validation * update go.mod, go.sum * Add PatchOperation case to invalid patch fallthrough * initial PatchOperation handler for data endpoint * move old version cleanup logic into its own function * respond with 404 for PATCH to deleted or destroyed version * go fmt * add test for put with cas=0 * additional patch tests for no data provided and entry/metadata not found * add better error messaging for data path tests * add comments * make patch resp when deleted/destroyed consistent with success resp * fixes for PR feedback * check for data in patch handler prior to locking * pass storage view and key to cleanupOldVersions directly * remove replace directive for vault/sdk * get vault/sdk @kv-patch branch * add cas_required check to TestVersionedKV_Patch_CASValidation * cleanupOldVersions now returns string instead of error * remove direct dependency on json-patch * require the json-patch library * fix TestVersionedKV_Patch_NoData * upgrade to go 1.16 Co-authored-by: Josh Black <raskchanky@users.noreply.github.com>
- Loading branch information