From 4ae11d7988269239cde71e9f015e612d034621bb Mon Sep 17 00:00:00 2001 From: Michael Moll Date: Sun, 3 Sep 2017 21:45:14 +0200 Subject: [PATCH] remove EOL OSes, add new ones --- metadata.json | 11 ++++------- spec/classes/puppet_agent_service_spec.rb | 8 ++++---- spec/classes/puppet_agent_service_systemd_spec.rb | 4 ++-- 3 files changed, 10 insertions(+), 13 deletions(-) diff --git a/metadata.json b/metadata.json index d9b54b2c..30c8c48a 100644 --- a/metadata.json +++ b/metadata.json @@ -71,20 +71,21 @@ { "operatingsystem": "Fedora", "operatingsystemrelease": [ - "24" + "25", + "26" ] }, { "operatingsystem": "Debian", "operatingsystemrelease": [ "7", - "8" + "8", + "9" ] }, { "operatingsystem": "Ubuntu", "operatingsystemrelease": [ - "12.04", "14.04", "16.04" ] @@ -99,8 +100,6 @@ { "operatingsystem": "DragonFly", "operatingsystemrelease": [ - "3.6", - "3.8", "4" ] }, @@ -117,10 +116,8 @@ { "operatingsystem": "windows", "operatingsystemrelease": [ - "Vista", "7", "8", - "2008", "2008 R2", "2012", "2012 R2" diff --git a/spec/classes/puppet_agent_service_spec.rb b/spec/classes/puppet_agent_service_spec.rb index 1100f249..26ed592d 100644 --- a/spec/classes/puppet_agent_service_spec.rb +++ b/spec/classes/puppet_agent_service_spec.rb @@ -29,7 +29,7 @@ should contain_class('puppet::agent::service::cron').with(:enabled => false) end case os - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ it do should contain_class('puppet::agent::service::systemd').with(:enabled => false) should contain_service('puppet-run.timer').with(:ensure => :stopped) @@ -51,7 +51,7 @@ it do should raise_error(Puppet::Error, /Runmode of cron not supported on #{facts[:kernel]} operating systems!/) end - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/ it do should contain_class('puppet::agent::service::cron').with(:enabled => true) should contain_class('puppet::agent::service::daemon').with(:enabled => false) @@ -73,7 +73,7 @@ "class {'puppet': agent => true, runmode => 'systemd.timer'}" end case os - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ it do should contain_class('puppet::agent::service::daemon').with(:enabled => false) should contain_class('puppet::agent::service::cron').with(:enabled => false) @@ -105,7 +105,7 @@ should contain_class('puppet::agent::service::cron').with(:enabled => false) end case os - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ it do should contain_class('puppet::agent::service::systemd').with(:enabled => false) should contain_service('puppet-run.timer').with(:ensure => :stopped) diff --git a/spec/classes/puppet_agent_service_systemd_spec.rb b/spec/classes/puppet_agent_service_systemd_spec.rb index 634a4df6..0fd0fb49 100644 --- a/spec/classes/puppet_agent_service_systemd_spec.rb +++ b/spec/classes/puppet_agent_service_systemd_spec.rb @@ -27,7 +27,7 @@ end case os - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ it 'should disable systemd timer' do should contain_class('puppet::agent::service::systemd').with({ 'enabled' => false, @@ -74,7 +74,7 @@ end case os - when /\Adebian-8/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ + when /\Adebian-(8|9)/, /\A(redhat|centos|scientific)-7/, /\Afedora-/, /\Aubuntu-16/, /\Aarchlinux-/ it 'should enable systemd timer' do should contain_class('puppet::agent::service::systemd').with({ 'enabled' => true,