]> gitweb.fluxo.info Git - puppet-mailalias_core.git/commitdiff
Remove windows from metadata.json
authorMelissa Stone <melissa@puppet.com>
Thu, 26 Apr 2018 17:31:24 +0000 (10:31 -0700)
committerMelissa Stone <melissa@puppet.com>
Thu, 26 Apr 2018 17:31:24 +0000 (10:31 -0700)
metadata.json
spec/acceptance/tests/destroy_spec.rb
spec/acceptance/tests/query_spec.rb

index 6911a5af4b378c93d96d6b99498cd52027d8e064..782e7f6ad75d196d22529457cb6f650b9b821f5b 100644 (file)
         "16.04"
       ]
     },
-    {
-      "operatingsystem": "windows",
-      "operatingsystemrelease": [
-        "2008 R2",
-        "2012 R2",
-        "10"
-      ]
-    },
     {
       "operatingsystem": "Fedora",
       "operatingsystemrelease": [
index 4a740db9f8d1610d9406ddee01a2be0a0b1896a6..0f805a504d429170ce1c2630d84a6616ba3bdf7a 100644 (file)
@@ -4,7 +4,7 @@ RSpec.context 'should delete an email alias' do
   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])
 
@@ -19,13 +19,13 @@ RSpec.context 'should delete an email alias' do
   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"']
index 1a7ab42a6d180b847c300d592a3d20d60aad4e0f..17e0bbf97d7dcb2db2f9cd653d728951fcfd147b 100644 (file)
@@ -25,7 +25,7 @@ RSpec.context 'should be able to find an exisitng email alias' do
     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'