open-vault/vault/external_tests/api
VAL 64448b62a4
KV helper methods for api package (#15305)
* Add Read methods for KVClient

* KV write helper

* Add changelog

* Add Delete method

* Use extractVersionMetadata inside extractDataAndVersionMetadata

* Return nil, nil for v1 writes

* Add test for extracting version metadata

* Split kv client into v1 and v2-specific clients

* Add ability to set options on Put

* Add test for KV helpers

* Add custom metadata to top level and allow for getting versions as sorted slice

* Update tests

* Separate KV v1 and v2 into different files

* Add test for GetVersionsAsList, rename Metadata key to VersionMetadata for clarity

* Move structs and godoc comments to more appropriate files

* Add more tests for extract methods

* Rework custom metadata helper to be more consistent with other helpers

* Remove KVSecret from custom metadata test now that we don't append to it as part of helper method

* Return early for readability and make test value name less confusing
2022-05-25 11:17:13 -07:00
..
api_integration_test.go Update deps for consul-template 0.29.0 (#15293) 2022-05-05 10:30:40 -07:00
feature_flag_ext_test.go Feature flags API (#10613) 2021-01-06 16:05:00 -06:00
kv_helpers_test.go KV helper methods for api package (#15305) 2022-05-25 11:17:13 -07:00
renewer_integration_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
secret_test.go Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
sudo_paths_test.go Add enterprise sudo paths to api.SudoPaths map (#15219) 2022-04-29 10:09:25 -04:00
sys_rekey_ext_test.go Migrate built in auto seal to go-kms-wrapping (#8118) 2020-01-10 20:39:52 -05:00