We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 12748c3 commit a52e729Copy full SHA for a52e729
spec/defines/component/action_spec.rb
@@ -84,4 +84,32 @@
84
)
85
end
86
87
+
88
+ context 'action with array in config' do
89
+ let(:params) do
90
+ {
91
+ type: 'omrelp',
92
+ priority: 40,
93
+ target: '50_rsyslog.conf',
94
+ confdir: '/etc/rsyslog.d',
95
+ config: {
96
+ 'tls.permittedpeer' => ['permittedpeer1', 'permittedpeer2'],
97
+ }
98
99
+ end
100
101
+ it do
102
+ is_expected.to contain_concat__fragment('rsyslog::component::action::myaction').with_content(<<-CONTENT
103
+# myaction
104
+action(type="omrelp"
105
+ name="myaction"
106
+ tls.permittedpeer=[ "permittedpeer1", "permittedpeer2" ]
107
+ )
108
+CONTENT
109
110
111
112
+ it { is_expected.to contain_concat('/etc/rsyslog.d/50_rsyslog.conf') }
113
+ it { is_expected.to contain_rsyslog__generate_concat('rsyslog::concat::action::myaction') }
114
115
0 commit comments