summaryrefslogtreecommitdiff
path: root/plugin/hashicorp_key_management/mysql-test/vault/suite.pm
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/hashicorp_key_management/mysql-test/vault/suite.pm')
-rw-r--r--plugin/hashicorp_key_management/mysql-test/vault/suite.pm16
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 00000000000..1d78985f363
--- /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 "Hashicorp Vault key management utility not found"
+ unless `sh -c "command -v vault"`;
+
+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};
+
+bless {};