summaryrefslogtreecommitdiff
path: root/plugin/hashicorp_key_management/mysql-test/vault/suite.pm
blob: 1d78985f363e4adb79f25ce377b2a4744c2516a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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 {};