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 60d990c commit f5f2c61Copy full SHA for f5f2c61
spec/defines/instance_spec.rb
@@ -49,6 +49,23 @@ class { 'redis':
49
50
it { is_expected.to contain_service('redis-server-app2.service').with_ensure(true).with_enable(true) }
51
end
52
+
53
+ context 'with custom options' do
54
+ let(:title) { 'default' }
55
+ let(:params) do
56
+ {
57
+ config_file_orig: '/tmp/myorig.conf',
58
+ custom_options: { 'myoption' => 'avalue', 'anotheroption' => 'anothervalue' },
59
+ }
60
+ end
61
62
+ it do
63
+ is_expected.to contain_file('/tmp/myorig.conf').
64
+ with_content(%r{^bind 127.0.0.1}).
65
+ with_content(%r{^myoption avalue}).
66
+ with_content(%r{^anotheroption anothervalue})
67
68
69
70
71
0 commit comments