forked from basho-labs/puppet-riak
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vmargs_spec.rb
36 lines (29 loc) · 863 Bytes
/
vmargs_spec.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'spec_helper'
require 'shared_contexts'
describe 'riak::vmargs', :type => :class do
include_context 'hieradata'
let(:title) { "vm.args" }
describe 'at baseline defaults' do
let(:params) {{}}
it { should contain_file('/etc/riak/vm.args').with({
:ensure => 'present',
:source => nil
}) }
end
describe 'when decommissioning w/ hiera (absent):' do
let(:hiera_data) do
{ :absent => true }
end
it {
pending 'strange: hiera should look at :hiera_data, before looking at default'
should contain_file('/etc/riak/vm.args').with_ensure('absent') }
end
describe 'when decommissioning w/ params (absent):' do
let(:params) do
{ :absent => true }
end
it { should contain_file('/etc/riak/vm.args').with_ensure('absent') }
end
end