Add validate_cmd
for keepalived.conf
#275
Annotations
2 errors
spec/acceptance/keepalived_spec.rb#L143
keepalived class with broken config fails validate command
Failure/Error: expect(apply_result.output).to match %r{.*emailfrom missing.*}
expected "\e[0;32mInfo: Loading facts\e[0m\n\e[0;32mInfo: Loading facts\e[0m\n\e[1;33mWarning: Facter: Contain...palived]: Triggered 'refresh' from 1 event\e[0m\n\e[mNotice: Applied catalog in 1.56 seconds\e[0m\n" to match /.*emailfrom missing.*/
Diff:
@@ -1,13 +1,25 @@
-/.*emailfrom missing.*/
+Info: Loading facts
+Info: Loading facts
+Warning: Facter: Container runtime, 'docker', is unsupported, setting to, 'container_other'
+�[mNotice: Compiled catalog for debian11-64-puppet8.example.com in environment production in 0.09 seconds
+Info: Using environment 'production'
+Info: Applying configuration version '1722598060'
+�[mNotice: /Stage[main]/Keepalived::Config/File[/etc/default/keepalived]/content: content changed '{sha256}2c030e4480d6258af0a1bbd75b96291924ac3c34c63672a8d3c538adabe23a8c' to '{sha256}f44920c421078457a799f0476d5a7e83ec660e2c0fe87cc8d24038d3640c142a'
+Info: Computing checksum on file /etc/keepalived/keepalived.conf
+Info: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]: Filebucketed /etc/keepalived/keepalived.conf to puppet with sum 47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330
+�[mNotice: /Stage[main]/Keepalived::Config/Concat[/etc/keepalived/keepalived.conf]/File[/etc/keepalived/keepalived.conf]/content: content changed '{sha256}47d4e40550fa54f216993b7311db6ec62cf5364ee6a8d5ba4a4306c001307330' to '{sha256}ea4f728bc07dc3bf394d27fa38bdf338a15abb236aaed698344bd74b32b87a6d'
+Info: Concat[/etc/keepalived/keepalived.conf]: Scheduling refresh of Service[keepalived]
+�[mNotice: /Stage[main]/Keepalived::Service/Service[keepalived]: Triggered 'refresh' from 1 event
+�[mNotice: Applied catalog in 1.56 seconds
|
|
This job failed
Loading