serverspec 2.0.0.beta13 → 2.0.0.beta14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/serverspec.rb +1 -1
- data/lib/serverspec/type/default_gateway.rb +2 -2
- data/lib/serverspec/type/file.rb +1 -1
- data/lib/serverspec/type/interface.rb +1 -1
- data/lib/serverspec/type/package.rb +1 -1
- data/lib/serverspec/type/process.rb +1 -1
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +1 -1
- data/spec/type/aix/file_spec.rb +0 -4
- data/spec/type/aix/group_spec.rb +0 -4
- data/spec/type/aix/package_spec.rb +0 -4
- data/spec/type/aix/port_spec.rb +0 -4
- data/spec/type/aix/service_spec.rb +0 -4
- data/spec/type/aix/user_spec.rb +0 -4
- data/spec/type/arch/file_spec.rb +0 -4
- data/spec/type/arch/package_spec.rb +2 -4
- data/spec/type/arch/service_spec.rb +0 -4
- data/spec/type/base/cron_spec.rb +0 -4
- data/spec/type/base/default_gateway_spec.rb +0 -3
- data/spec/type/base/file_spec.rb +0 -4
- data/spec/type/base/group_spec.rb +0 -4
- data/spec/type/base/host_spec.rb +0 -4
- data/spec/type/base/mail_alias_spec.rb +0 -4
- data/spec/type/base/package_spec.rb +0 -4
- data/spec/type/base/port_spec.rb +0 -4
- data/spec/type/base/process_spec.rb +0 -4
- data/spec/type/base/routing_table_spec.rb +0 -4
- data/spec/type/base/service_spec.rb +0 -4
- data/spec/type/base/user_spec.rb +0 -4
- data/spec/type/darwin/file_spec.rb +0 -4
- data/spec/type/darwin/package_spec.rb +0 -4
- data/spec/type/darwin/port_spec.rb +0 -4
- data/spec/type/darwin/service_spec.rb +0 -4
- data/spec/type/debian/package_spec.rb +0 -4
- data/spec/type/debian/service_spec.rb +0 -4
- data/spec/type/fedora/service_spec.rb +0 -4
- data/spec/type/fedora15/service_spec.rb +0 -4
- data/spec/type/fedora20/service_spec.rb +0 -4
- data/spec/type/freebsd/file_spec.rb +0 -4
- data/spec/type/freebsd/package_spec.rb +0 -4
- data/spec/type/freebsd/port_spec.rb +0 -4
- data/spec/type/freebsd/service_spec.rb +0 -4
- data/spec/type/freebsd10/package_spec.rb +0 -4
- data/spec/type/gentoo/package_spec.rb +0 -4
- data/spec/type/gentoo/service_spec.rb +0 -4
- data/spec/type/linux/file_spec.rb +0 -4
- data/spec/type/linux/interface_spec.rb +0 -4
- data/spec/type/linux/iptables_spec.rb +0 -4
- data/spec/type/linux/kernel_module_spec.rb +0 -4
- data/spec/type/linux/lxc_container_spec.rb +0 -4
- data/spec/type/linux/selinux_spec.rb +0 -4
- data/spec/type/linux/zfs_spec.rb +0 -4
- data/spec/type/nixos/package_spec.rb +0 -4
- data/spec/type/nixos/service_spec.rb +0 -4
- data/spec/type/openbsd/file_spec.rb +0 -4
- data/spec/type/openbsd/interface_spec.rb +0 -4
- data/spec/type/openbsd/mail_alias_spec.rb +0 -4
- data/spec/type/openbsd/package_spec.rb +0 -4
- data/spec/type/openbsd/port_spec.rb +0 -4
- data/spec/type/openbsd/service_spec.rb +0 -4
- data/spec/type/openbsd/user_spec.rb +0 -4
- data/spec/type/opensuse/service_spec.rb +0 -4
- data/spec/type/plamo/package_spec.rb +0 -4
- data/spec/type/plamo/service_spec.rb +0 -4
- data/spec/type/redhat/file_spec.rb +0 -4
- data/spec/type/redhat/package_spec.rb +0 -4
- data/spec/type/redhat/service_spec.rb +0 -4
- data/spec/type/redhat/yumrepo_spec.rb +0 -4
- data/spec/type/redhat5/iptables_spec.rb +0 -4
- data/spec/type/redhat7/service_spec.rb +0 -4
- data/spec/type/smartos/package_spec.rb +0 -4
- data/spec/type/smartos/service_spec.rb +0 -4
- data/spec/type/solaris/cron_spec.rb +0 -4
- data/spec/type/solaris/file_spec.rb +0 -4
- data/spec/type/solaris/group_spec.rb +0 -4
- data/spec/type/solaris/host_spec.rb +0 -4
- data/spec/type/solaris/ipfilter_spec.rb +0 -4
- data/spec/type/solaris/ipnat_spec.rb +0 -4
- data/spec/type/solaris/package_spec.rb +0 -4
- data/spec/type/solaris/port_spec.rb +0 -4
- data/spec/type/solaris/service_spec.rb +0 -4
- data/spec/type/solaris/user_spec.rb +0 -4
- data/spec/type/solaris/zfs_spec.rb +0 -4
- data/spec/type/solaris10/file_spec.rb +0 -4
- data/spec/type/solaris10/group_spec.rb +0 -4
- data/spec/type/solaris10/host_spec.rb +0 -4
- data/spec/type/solaris10/package_spec.rb +0 -4
- data/spec/type/solaris10/user_spec.rb +0 -4
- data/spec/type/suse/package_spec.rb +0 -4
- data/spec/type/suse/service_spec.rb +0 -4
- data/spec/type/ubuntu/ppa_spec.rb +0 -4
- data/spec/type/ubuntu/service_spec.rb +0 -4
- data/spec/type/windows/feature_spec.rb +0 -4
- data/spec/type/windows/file_spec.rb +0 -4
- data/spec/type/windows/group_spec.rb +0 -4
- data/spec/type/windows/host_spec.rb +0 -4
- data/spec/type/windows/hot_fix_spec.rb +0 -4
- data/spec/type/windows/iis_app_pool_spec.rb +0 -4
- data/spec/type/windows/iis_webisite_spec.rb +0 -4
- data/spec/type/windows/package_spec.rb +0 -4
- data/spec/type/windows/port_spec.rb +0 -4
- data/spec/type/windows/registry_key_spec.rb +0 -4
- data/spec/type/windows/scheduled_task_spec.rb +0 -4
- data/spec/type/windows/service_spec.rb +0 -4
- data/spec/type/windows/user_spec.rb +0 -4
- metadata +4 -4
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'fedora', :release => 15
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Fedora::V15::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'fedora', :release => 20
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Fedora::V15::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'freebsd'
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Freebsd::Base::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'freebsd'
|
4
4
|
|
5
|
-
describe commands.command_class('port').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Freebsd::Base::Port) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe Serverspec::Type::Port do
|
10
6
|
describe port(80) do
|
11
7
|
it { should be_listening }
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'freebsd'
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Freebsd::Base::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'freebsd', :release => 10
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Freebsd::V10::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'gentoo'
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Gentoo::Base::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -4,10 +4,6 @@ set :os, {:family => 'linux'}
|
|
4
4
|
|
5
5
|
property[:os_by_host] = nil
|
6
6
|
|
7
|
-
describe commands.command_class('file').create do
|
8
|
-
it { should be_an_instance_of(Specinfra::Command::Linux::Base::File) }
|
9
|
-
end
|
10
|
-
|
11
7
|
describe file('/tmp') do
|
12
8
|
it { should be_readable.by_user('mail') }
|
13
9
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'linux'
|
4
4
|
|
5
|
-
describe commands.command_class('interface').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Linux::Base::Interface) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe interface('eth0') do
|
10
6
|
let(:stdout) { '1000' }
|
11
7
|
its(:speed) { should eq 1000 }
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'linux'
|
4
4
|
|
5
|
-
describe commands.command_class('iptables').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Linux::Base::Iptables) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe iptables do
|
10
6
|
it { should have_rule '-P INPUT ACCEPT' }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'linux'
|
4
4
|
|
5
|
-
describe commands.command_class('kernel_module').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Linux::Base::KernelModule) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe kernel_module('lp') do
|
10
6
|
it { should be_loaded }
|
11
7
|
end
|
data/spec/type/linux/zfs_spec.rb
CHANGED
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'nixos'
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Nixos::Base::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
it { should be_running }
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, {:family => 'openbsd'}
|
4
4
|
|
5
|
-
describe commands.command_class('file').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::File) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe file('/etc/passwd') do
|
10
6
|
it { should be_mode 644 }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'openbsd'
|
4
4
|
|
5
|
-
describe commands.command_class('interface').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::Interface) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe interface('eth0') do
|
10
6
|
let(:stdout) { '1000' }
|
11
7
|
its(:speed) { should eq 1000 }
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'openbsd'
|
4
4
|
|
5
|
-
describe commands.command_class('mail_alias').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::MailAlias) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe mail_alias('daemon') do
|
10
6
|
it { should be_aliased_to "root" }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'openbsd'
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'openbsd'
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'openbsd'
|
4
4
|
|
5
|
-
describe commands.command_class('user').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::User) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe user('root') do
|
10
6
|
it { should have_login_shell '/bin/bash' }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'opensuse'
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Opensuse::Base::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'redhat'
|
4
4
|
|
5
|
-
describe commands.command_class('file').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Redhat::Base::File) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe file('/tmp') do
|
10
6
|
it { should be_readable.by_user('mail') }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'redhat'
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Redhat::Base::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'redhat'
|
4
4
|
|
5
|
-
describe commands.command_class('yumrepo').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Redhat::Base::Yumrepo) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe 'Serverspec yumrepo matchers of Red Hat family' do
|
10
6
|
describe 'exist' do
|
11
7
|
describe yumrepo('epel') do
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'redhat', :release => 5
|
4
4
|
|
5
|
-
describe commands.command_class('iptables').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Redhat::V5::Iptables) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe iptables do
|
10
6
|
it { should have_rule '-P INPUT ACCEPT' }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'redhat', :release => 7
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Redhat::V7::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
it { should be_running }
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'smartos'
|
4
4
|
|
5
|
-
describe commands.command_class('package').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Smartos::Base::Package) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe package('httpd') do
|
10
6
|
it { should be_installed }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'smartos'
|
4
4
|
|
5
|
-
describe commands.command_class('service').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Smartos::Base::Service) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe service('sshd') do
|
10
6
|
it { should be_enabled }
|
11
7
|
end
|
@@ -2,10 +2,6 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
set :os, :family => 'solaris'
|
4
4
|
|
5
|
-
describe commands.command_class('cron').create do
|
6
|
-
it { should be_an_instance_of(Specinfra::Command::Solaris::Base::Cron) }
|
7
|
-
end
|
8
|
-
|
9
5
|
describe cron do
|
10
6
|
it { should have_entry '* * * * * /usr/local/bin/batch.sh' }
|
11
7
|
end
|