Skip to content

Commit

Permalink
spec: Use vault server in integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jsok committed Jun 20, 2016
1 parent 5411d7b commit e0033d6
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions spec/integration/vault_backend_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,14 @@ module Backend
Hiera.stubs(:debug)
Hiera.stubs(:warn)
Hiera::Backend.stubs(:empty_answer).returns(nil)
RSpec::VaultServer.token
end

describe '#initialize' do
it "should work with empty config" do
Config.load({:vault => {}})
it "should work with valid config" do
Config.load({:vault => {
:addr => RSpec::VaultServer.address
}})
Vault_backend.new
end

Expand Down

0 comments on commit e0033d6

Please sign in to comment.