Skip to content

Commit

Permalink
update spec to match on custom_metadata for vault >= 1.9.0
Browse files Browse the repository at this point in the history
  • Loading branch information
phallstrom committed Dec 23, 2021
1 parent 42c75ce commit 1a9cb9f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion spec/integration/api/kv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ module Vault
subject.write("b:@c%n-read", foo: "bar")
secret = subject.read("b:@c%n-read")
expect(secret).to be
expect(secret.metadata.keys).to match_array([:created_time, :deletion_time, :version, :destroyed])
if vault_meets_requirements?(">= 1.9.0")
expect(secret.metadata.keys).to match_array([:created_time, :deletion_time, :version, :destroyed, :custom_metadata])
else
expect(secret.metadata.keys).to match_array([:created_time, :deletion_time, :version, :destroyed])
end
end
end

Expand Down

0 comments on commit 1a9cb9f

Please sign in to comment.