-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -104,10 +104,10 @@ | |
let(:params) { { httpd: true } } | ||
|
||
content = <<~END | ||
|set httpd port 2812 and | ||
| use address localhost | ||
| allow 0.0.0.0/0.0.0.0 | ||
| allow admin:monit | ||
set httpd port 2812 and | ||
use address localhost | ||
allow 0.0.0.0/0.0.0.0 | ||
allow admin:monit | ||
END | ||
it { is_expected.to contain_file('monit_config').with_content(%r{#{content}}) } | ||
end | ||
|
@@ -125,10 +125,10 @@ | |
end | ||
|
||
content = <<~END | ||
|set httpd port 2420 and | ||
| use address otherhost | ||
| allow 0.0.0.0/0.0.0.0 | ||
| allow tester:Passw0rd | ||
set httpd port 2420 and | ||
use address otherhost | ||
allow 0.0.0.0/0.0.0.0 | ||
allow tester:Passw0rd | ||
END | ||
it { is_expected.to contain_file('monit_config').with_content(%r{#{content}}) } | ||
end | ||
|
@@ -232,11 +232,11 @@ | |
end | ||
|
||
content = <<~END | ||
|set mail-format { | ||
| from: [email protected] | ||
| message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION | ||
| subject: spectesting | ||
|} | ||
set mail-format { | ||
from: [email protected] | ||
message: Monit $ACTION $SERVICE at $DATE on $HOST: $DESCRIPTION | ||
subject: spectesting | ||
} | ||
END | ||
it { is_expected.to contain_file('monit_config').with_content(%r{#{content}}) } | ||
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
Check failure on line 241 in spec/classes/init_spec.rb GitHub Actions / Puppet / 7 (Ruby 2.7)
|
||
end | ||
|
@@ -252,8 +252,8 @@ | |
end | ||
|
||
content = <<~END | ||
|set alert [email protected] | ||
|set alert [email protected] | ||
set alert [email protected] | ||
set alert [email protected] | ||
END | ||
it { is_expected.to contain_file('monit_config').with_content(%r{#{content}}) } | ||
end | ||
|