open-vault/vendor/github.com/hashicorp
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
..
consul/api Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
consul-template Add a new "vault monitor" command (#8477) 2020-05-21 13:07:50 -07:00
errwrap
go-bindata Update to latest go-kms-wrapping and fix protos/etcd (#8996) 2020-05-14 18:45:10 -04:00
go-cleanhttp Update deps (#6580) 2019-04-12 11:51:37 -04:00
go-gcp-common Update plugin dependencies (#8371) 2020-02-18 09:55:04 -08:00
go-hclog Add password_policy field to Azure docs (#9249) 2020-06-18 13:25:59 -06:00
go-immutable-radix Bundle OCI Auth method (#7422) 2019-09-04 16:46:00 -07:00
go-kms-wrapping Bump go-kms-wrapping to remove proto warning, and vendor (#9066) 2020-05-22 10:48:50 -04:00
go-memdb Vendor and prep for beta 2019-06-20 23:43:02 -04:00
go-msgpack Raft Storage Backend (#6888) 2019-06-20 12:14:58 -07:00
go-multierror Add password_policy field to Azure docs (#9249) 2020-06-18 13:25:59 -06:00
go-plugin Bump api/sdk dep 2019-06-18 11:19:15 -04:00
go-raftchunking Improve raft write performance by utilizing FSM Batching (#7527) 2019-10-14 09:25:07 -06:00
go-retryablehttp Add password_policy field to Azure docs (#9249) 2020-06-18 13:25:59 -06:00
go-rootcerts Add TLS options per Nomad backend (#8083) 2020-01-15 11:03:38 +01:00
go-sockaddr run go mod vendor (#7736) 2019-10-25 13:35:22 +01:00
go-syslog Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
go-uuid oss changes for entropy augmentation feature (#7670) 2019-10-17 10:33:00 -07:00
go-version Vendor and prep for beta 2019-06-20 23:43:02 -04:00
golang-lru Bundle OCI Auth method (#7422) 2019-09-04 16:46:00 -07:00
hcl Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
logutils Update how Vault Agent configures Consul Templates internal logger (#7822) 2019-11-12 11:29:29 -08:00
nomad/api Add TLS options per Nomad backend (#8083) 2020-01-15 11:03:38 +01:00
raft Add password policies to Active Directory secret engine (#9144) 2020-06-15 10:36:17 -06:00
raft-snapshot Bump sdk and vendoring 2019-09-17 11:38:03 -04:00
serf Switch to go modules (#6585) 2019-04-13 03:44:06 -04:00
vault VLT091 plugin testing framework stepwise (#9270) 2020-06-23 06:01:39 -05:00
vault-plugin-auth-alicloud Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-azure Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-centrify Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-cf Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-gcp Update plugin dependencies (#8371) 2020-02-18 09:55:04 -08:00
vault-plugin-auth-jwt Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-kerberos Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-auth-kubernetes Update kubernetes auth plugin (#9195) 2020-06-19 15:47:13 -07:00
vault-plugin-auth-oci Update oracle cloud infrastructure auth plugin to v0.5.5 (#9210) 2020-06-15 10:11:20 -07:00
vault-plugin-database-elasticsearch Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-database-mongodbatlas Add mongodbatlas static roles support (#8987) 2020-05-29 14:21:23 -04:00
vault-plugin-secrets-ad Add password policies to Active Directory secret engine (#9144) 2020-06-15 10:36:17 -06:00
vault-plugin-secrets-alicloud Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-secrets-azure Add password_policy field to Azure docs (#9249) 2020-06-18 13:25:59 -06:00
vault-plugin-secrets-gcp Update GCP secrets plugin (#9231) 2020-06-15 18:24:12 -07:00
vault-plugin-secrets-gcpkms Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-secrets-kv Update go.mod and vendoring (#8752) 2020-04-16 12:07:07 -07:00
vault-plugin-secrets-mongodbatlas Update MongoDB Atlas secrets plugin (#8669) 2020-04-03 15:47:17 -07:00
vault-plugin-secrets-openldap Update OpenLDAP secret engine to v0.1.3 (#9123) 2020-06-03 10:37:00 -06:00
yamux Update plugin dependencies (#8371) 2020-02-18 09:55:04 -08:00