diff options
Diffstat (limited to 'plugin/hashicorp_key_management/mysql-test/vault/suite.pm')
-rw-r--r-- | plugin/hashicorp_key_management/mysql-test/vault/suite.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/plugin/hashicorp_key_management/mysql-test/vault/suite.pm b/plugin/hashicorp_key_management/mysql-test/vault/suite.pm new file mode 100644 index 00000000..fce17373 --- /dev/null +++ b/plugin/hashicorp_key_management/mysql-test/vault/suite.pm @@ -0,0 +1,16 @@ +package My::Suite::Vault; + +@ISA = qw(My::Suite); + +use strict; + +return "You need to set the value of the VAULT_ADDR variable" + unless $ENV{VAULT_ADDR}; + +return "You need to set the value of the VAULT_TOKEN variable" + unless $ENV{VAULT_TOKEN}; + +return "Hashicorp Vault key management utility not found" + unless `sh -c "command -v vault"`; + +bless {}; |