motd |
On a non-linux system |
does not fail |
is expected not to contain File[/etc/motd] |
is expected not to contain File[/etc/issue] |
is expected not to contain File[/etc/issue.net] |
On Linux |
when neither template or source are specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false", content supplied string, owner => "root", group => "root" and mode => "0644" |
when both template and source are specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when a source is specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when an external template is specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when a template is specified for /etc/issue |
is expected to contain File[/etc/issue] with ensure => "file", backup => "false", content supplied string, owner => "root", group => "root" and mode => "0644" |
when content is specified for /etc/issue |
is expected to contain File[/etc/issue] with ensure => "file", backup => "false" and content supplied string |
when both content and template is specified for /etc/issue |
is expected to contain File[/etc/issue] with ensure => "file", backup => "false" and content supplied string |
when a template is specified for /etc/issue.net |
is expected to contain File[/etc/issue.net] with ensure => "file", backup => "false", content supplied string, owner => "root", group => "root" and mode => "0644" |
when content is specified for /etc/issue.net |
is expected to contain File[/etc/issue.net] with ensure => "file", backup => "false" and content supplied string |
when both content and template is specified for /etc/issue.net |
is expected to contain File[/etc/issue.net] with ensure => "file", backup => "false" and content supplied string |
On Debian based Operating Systems |
when dynamic motd is false |
is expected to contain File_line[dynamic_motd] with line => "session optional pam_motd.so motd=/run/motd.dynamic noupdate" |
when dynamic motd is true |
is expected not to contain File_line[dynamic_motd] |
On Windows |
when neither template or source are specified |
is expected to contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticetext] with ensure => "present", type => "string" and data => "TestOS 5 x86_64\n\nFQDN: test.example.com (123.23.243.1)\nProcessor: intel awesome\nKernel: windows\nMemory Size: 16.00 GB\n" |
when content is specified |
is expected to contain Registry_value[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\policies\system\legalnoticecaption] with ensure => "present", type => "string" and data => "This is the title." |
On FreeBSD |
when neither template or source are specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when both template and source are specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when a source is specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
when an external template is specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false" and content supplied string |
On AIX |
when neither template or source are specified |
is expected to contain File[/etc/motd] with ensure => "file", backup => "false", content supplied string, owner => "bin", group => "bin" and mode => "0644" |
when a template is specified for /etc/issue |
is expected to contain File[/etc/issue] with ensure => "file", backup => "false", content supplied string, owner => "bin", group => "bin" and mode => "0644" |
when a template is specified for /etc/issue.net |
is expected to contain File[/etc/issue.net] with ensure => "file", backup => "false", content supplied string, owner => "bin", group => "bin" and mode => "0644" |
|
Code coverage |
must cover at least 0% of resources |
Total resources: 6 |
Touched resources: 6 |
Resource coverage: 100.00% |
|
Finished in 1.13 seconds (files took 1.37 seconds to load) |
26 examples, 0 failures
|