+
+ describe 'parameter :show_diff' do
+ it_behaves_like 'Puppet::Parameter::Boolean', :show_diff
+ end
+
+ describe 'parameter :selinux_ignore_defaults' do
+ it_behaves_like 'Puppet::Parameter::Boolean', :selinux_ignore_defaults
+ end
+
+ describe 'parameter :force' do
+ it_behaves_like 'Puppet::Parameter::Boolean', :force
+ end
+
+ describe 'parameter :format' do
+ it 'accepts "plain" as a value' do
+ resource[:format] = 'plain'
+ expect(resource[:format]).to eq(:plain)
+ end
+
+ it 'accepts "yaml" as a value' do
+ resource[:format] = 'yaml'
+ expect(resource[:format]).to eq(:yaml)
+ end
+
+ it 'accepts "json" as a value' do
+ resource[:format] = 'json'
+ expect(resource[:format]).to eq(:json)
+ end
+
+ it 'accepts "json-array" as a value' do
+ resource[:format] = 'json-array'
+ expect(resource[:format]).to eq(:'json-array')
+ end
+
+ it 'accepts "json-pretty" as a value' do
+ resource[:format] = 'json-pretty'
+ expect(resource[:format]).to eq(:'json-pretty')
+ end
+
+ it 'accepts "json-array-pretty" as a value' do
+ resource[:format] = 'json-array-pretty'
+ expect(resource[:format]).to eq(:'json-array-pretty')
+ end
+
+ it 'does not accept "bar" as a value' do
+ expect { resource[:format] = 'bar' }.to raise_error(%r{Invalid value "bar"})
+ end
+ end