We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4aadbbd commit e2e7627Copy full SHA for e2e7627
spec/acceptance/class_spec.rb
@@ -108,4 +108,29 @@ class { '::vault':
108
it { is_expected.to be_listening.on('127.0.0.1').with('tcp') }
109
end
110
111
+
112
+ # we will test if we can update vault to another version
113
+ context 'updated vault version' do
114
+ it 'works idempotently with no errors' do
115
+ pp = <<-MANIFEST
116
+ class { 'vault':
117
+ version => '0.10.1'
118
+ storage => {
119
+ file => {
120
+ path => '/tmp',
121
+ }
122
+ },
123
+ listener => [{
124
+ tcp => {
125
+ address => '127.0.0.1:8200',
126
+ tls_disable => 1,
127
128
+ }]
129
130
+ MANIFEST
131
+ # Run it twice and test for idempotency
132
+ apply_manifest(pp, catch_failures: true)
133
+ apply_manifest(pp, catch_changes: true)
134
+ end
135
136
0 commit comments