open-vault/vendor/github.com/hashicorp/vault/api
Clint 6b4bdb1882
VLT091 plugin testing framework stepwise (#9270)
* Resolve merge conflicts and updates from running a test

* move testing/_test.go over to legacy

* updates

* Add core of plugin test framework Stepwise  (#9166)

* adding stepwise testing, but there are protocol buff error :/

* move file and update sdk/go.mo

* update/sync modules

* update from other branch

* update sdk/go.mod

* some cleanups after feedback

* remove enviornments from this PR

* update vendor

* change from running go mod tidy

* change from go mod tidy

* Update sdk/testing/stepwise/helpers.go

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* Update sdk/testing/stepwise/helpers.go

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* change panic to error

* Update sdk/testing/stepwise/helpers.go

return `nil` and not `err` at the end

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* Defer close() on successful Open of a file

* document the re-creation of steps

* Update sdk/testing/stepwise/stepwise.go

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* remove unused BarrierKeys()

* Update sdk/testing/stepwise/stepwise.go

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* updates from feedback

* fix return with bad arguments

* Rename things:

- StepOperation -> Operation
- StepwiseEnvironment -> Environment
- StepCheckFunc -> AssertionFunc
- step.Check -> step.Assert

* document the environment interface methods

* rename EnvironmentOptions to MountOptions

* rename Name to RegistryName

* remove ExpectError because it's redundant

* minor doc update

* Update sdk/testing/stepwise/stepwise.go

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* add checkShouldRun function

* remove redundant return

* remove vestigial PreCheck function

* add tt.Helper() to makeRequest

* minor code formatting and document 1-based index for log output of Steps

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>

* minor updates

* update sdk

* use local reference for api, vault dep

* Update sdk/testing/stepwise/stepwise.go

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>

* Update sdk/testing/stepwise/stepwise.go

Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>

* cleanup some defer functions

* call fatal if environment setup fails, and don't call teardown

* defer re-setting client token in makeRequest

* Move legacy logicaltest back to testhelpers

* update mods and test files with go mod tidy

* go mod vendor

* remove relative replace directives

* restore old logical test location

* move declaration to main stepwise file

* remove index var and use i+1

* add testing for write, delete paths of makeRequest

* update stepwise core testing to do request counting

* remove unused methods

* Update sdk/testing/stepwise/stepwise.go

remove dead line

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* Update sdk/testing/stepwise/stepwise.go

fix capitalization in code comment

Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>

* update code comments for SkipTeardown to clarify its use

* update stepwise

Co-authored-by: Michael Golowka <72365+pcman312@users.noreply.github.com>
Co-authored-by: Calvin Leung Huang <cleung2010@gmail.com>
Co-authored-by: Alexander Bezobchuk <alexanderbez@users.noreply.github.com>
2020-06-23 06:01:39 -05:00
..
auth.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
auth_token.go Update API/vendoring 2019-11-08 11:40:12 -05:00
client.go Upgrade raft library (#9170) 2020-06-08 16:34:20 -07:00
go.mod VLT091 plugin testing framework stepwise (#9270) 2020-06-23 06:01:39 -05:00
go.sum Add password_policy field to Azure docs (#9249) 2020-06-18 13:25:59 -06:00
help.go Bump api/sdk 2019-06-27 18:01:05 -04:00
lifetime_watcher.go go mod vendor 2019-10-28 22:27:00 -07:00
logical.go Upgrade raft library (#9170) 2020-06-08 16:34:20 -07:00
output_string.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
plugin_helpers.go Add identity templating helper to sdk/framework (#8088) 2020-01-06 10:16:52 -08:00
request.go Update MongoDB Atlas secrets plugin (#8669) 2020-04-03 15:47:17 -07:00
response.go Bump KV dep 2019-06-27 12:08:11 -04:00
secret.go Update vendoring 2019-06-06 13:51:34 -04:00
ssh.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
ssh_agent.go Upgrade raft library (#9170) 2020-06-08 16:34:20 -07:00
sys.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_audit.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
sys_auth.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_capabilities.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_config_cors.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_generate_root.go oss changes for entropy augmentation feature (#7670) 2019-10-17 10:33:00 -07:00
sys_health.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_init.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_leader.go storage/raft: Add committed and applied indexes to the status output (#9011) 2020-05-18 16:07:27 -07:00
sys_leases.go ci: switch to go1.12.12 on machine executors (#7703) 2019-11-06 13:15:06 +00:00
sys_monitor.go Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
sys_mounts.go oss changes for entropy augmentation feature (#7670) 2019-10-17 10:33:00 -07:00
sys_plugins.go Vendor update 2020-05-12 18:05:47 -04:00
sys_policy.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_raft.go Ensure that the .vault-token file writen by vault login always has the correct permissions and ownership. (#8867) 2020-04-27 19:55:13 -04:00
sys_rekey.go Update vendoring 2019-06-13 13:41:18 -04:00
sys_rotate.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
sys_seal.go Bump api/sdk and vendoring 2019-09-19 09:43:23 -04:00
sys_stepdown.go Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00