"16.04"
]
},
- {
- "operatingsystem": "windows",
- "operatingsystemrelease": [
- "2008 R2",
- "2012 R2",
- "10"
- ]
- },
{
"operatingsystem": "Fedora",
"operatingsystemrelease": [
name = "pl#{rand(999_999).to_i}"
before(:all) do
- agents.each do |agent|
+ non_windows_agents.each do |agent|
# (setup) backup alias file
on(agent, 'cp /etc/aliases /tmp/aliases', acceptable_exit_codes: [0, 1])
end
after(:all) do
- agents.each do |agent|
+ non_windows_agents.each do |agent|
# (teardown) restore the alias file
on(agent, 'mv /tmp/aliases /etc/aliases', acceptable_exit_codes: [0, 1])
end
end
- agents.each do |agent|
+ non_windows_agents.each do |agent|
it 'deletes the aliases database with puppet' do
args = ['ensure=absent',
'recipient="foo,bar,baz"']
end
end
- agents.each do |agent|
+ non_windows_agents.each do |agent|
it 'queries for the mail alias with puppet' do
on(agent, puppet_resource('mailalias', name)) do
fail_test "didn't find the scheduled_task #{name}" unless stdout.include? 'present'