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.
Files changed (107) hide show
  1. checksums.yaml +4 -4
  2. data/lib/serverspec.rb +1 -1
  3. data/lib/serverspec/type/default_gateway.rb +2 -2
  4. data/lib/serverspec/type/file.rb +1 -1
  5. data/lib/serverspec/type/interface.rb +1 -1
  6. data/lib/serverspec/type/package.rb +1 -1
  7. data/lib/serverspec/type/process.rb +1 -1
  8. data/lib/serverspec/version.rb +1 -1
  9. data/serverspec.gemspec +1 -1
  10. data/spec/type/aix/file_spec.rb +0 -4
  11. data/spec/type/aix/group_spec.rb +0 -4
  12. data/spec/type/aix/package_spec.rb +0 -4
  13. data/spec/type/aix/port_spec.rb +0 -4
  14. data/spec/type/aix/service_spec.rb +0 -4
  15. data/spec/type/aix/user_spec.rb +0 -4
  16. data/spec/type/arch/file_spec.rb +0 -4
  17. data/spec/type/arch/package_spec.rb +2 -4
  18. data/spec/type/arch/service_spec.rb +0 -4
  19. data/spec/type/base/cron_spec.rb +0 -4
  20. data/spec/type/base/default_gateway_spec.rb +0 -3
  21. data/spec/type/base/file_spec.rb +0 -4
  22. data/spec/type/base/group_spec.rb +0 -4
  23. data/spec/type/base/host_spec.rb +0 -4
  24. data/spec/type/base/mail_alias_spec.rb +0 -4
  25. data/spec/type/base/package_spec.rb +0 -4
  26. data/spec/type/base/port_spec.rb +0 -4
  27. data/spec/type/base/process_spec.rb +0 -4
  28. data/spec/type/base/routing_table_spec.rb +0 -4
  29. data/spec/type/base/service_spec.rb +0 -4
  30. data/spec/type/base/user_spec.rb +0 -4
  31. data/spec/type/darwin/file_spec.rb +0 -4
  32. data/spec/type/darwin/package_spec.rb +0 -4
  33. data/spec/type/darwin/port_spec.rb +0 -4
  34. data/spec/type/darwin/service_spec.rb +0 -4
  35. data/spec/type/debian/package_spec.rb +0 -4
  36. data/spec/type/debian/service_spec.rb +0 -4
  37. data/spec/type/fedora/service_spec.rb +0 -4
  38. data/spec/type/fedora15/service_spec.rb +0 -4
  39. data/spec/type/fedora20/service_spec.rb +0 -4
  40. data/spec/type/freebsd/file_spec.rb +0 -4
  41. data/spec/type/freebsd/package_spec.rb +0 -4
  42. data/spec/type/freebsd/port_spec.rb +0 -4
  43. data/spec/type/freebsd/service_spec.rb +0 -4
  44. data/spec/type/freebsd10/package_spec.rb +0 -4
  45. data/spec/type/gentoo/package_spec.rb +0 -4
  46. data/spec/type/gentoo/service_spec.rb +0 -4
  47. data/spec/type/linux/file_spec.rb +0 -4
  48. data/spec/type/linux/interface_spec.rb +0 -4
  49. data/spec/type/linux/iptables_spec.rb +0 -4
  50. data/spec/type/linux/kernel_module_spec.rb +0 -4
  51. data/spec/type/linux/lxc_container_spec.rb +0 -4
  52. data/spec/type/linux/selinux_spec.rb +0 -4
  53. data/spec/type/linux/zfs_spec.rb +0 -4
  54. data/spec/type/nixos/package_spec.rb +0 -4
  55. data/spec/type/nixos/service_spec.rb +0 -4
  56. data/spec/type/openbsd/file_spec.rb +0 -4
  57. data/spec/type/openbsd/interface_spec.rb +0 -4
  58. data/spec/type/openbsd/mail_alias_spec.rb +0 -4
  59. data/spec/type/openbsd/package_spec.rb +0 -4
  60. data/spec/type/openbsd/port_spec.rb +0 -4
  61. data/spec/type/openbsd/service_spec.rb +0 -4
  62. data/spec/type/openbsd/user_spec.rb +0 -4
  63. data/spec/type/opensuse/service_spec.rb +0 -4
  64. data/spec/type/plamo/package_spec.rb +0 -4
  65. data/spec/type/plamo/service_spec.rb +0 -4
  66. data/spec/type/redhat/file_spec.rb +0 -4
  67. data/spec/type/redhat/package_spec.rb +0 -4
  68. data/spec/type/redhat/service_spec.rb +0 -4
  69. data/spec/type/redhat/yumrepo_spec.rb +0 -4
  70. data/spec/type/redhat5/iptables_spec.rb +0 -4
  71. data/spec/type/redhat7/service_spec.rb +0 -4
  72. data/spec/type/smartos/package_spec.rb +0 -4
  73. data/spec/type/smartos/service_spec.rb +0 -4
  74. data/spec/type/solaris/cron_spec.rb +0 -4
  75. data/spec/type/solaris/file_spec.rb +0 -4
  76. data/spec/type/solaris/group_spec.rb +0 -4
  77. data/spec/type/solaris/host_spec.rb +0 -4
  78. data/spec/type/solaris/ipfilter_spec.rb +0 -4
  79. data/spec/type/solaris/ipnat_spec.rb +0 -4
  80. data/spec/type/solaris/package_spec.rb +0 -4
  81. data/spec/type/solaris/port_spec.rb +0 -4
  82. data/spec/type/solaris/service_spec.rb +0 -4
  83. data/spec/type/solaris/user_spec.rb +0 -4
  84. data/spec/type/solaris/zfs_spec.rb +0 -4
  85. data/spec/type/solaris10/file_spec.rb +0 -4
  86. data/spec/type/solaris10/group_spec.rb +0 -4
  87. data/spec/type/solaris10/host_spec.rb +0 -4
  88. data/spec/type/solaris10/package_spec.rb +0 -4
  89. data/spec/type/solaris10/user_spec.rb +0 -4
  90. data/spec/type/suse/package_spec.rb +0 -4
  91. data/spec/type/suse/service_spec.rb +0 -4
  92. data/spec/type/ubuntu/ppa_spec.rb +0 -4
  93. data/spec/type/ubuntu/service_spec.rb +0 -4
  94. data/spec/type/windows/feature_spec.rb +0 -4
  95. data/spec/type/windows/file_spec.rb +0 -4
  96. data/spec/type/windows/group_spec.rb +0 -4
  97. data/spec/type/windows/host_spec.rb +0 -4
  98. data/spec/type/windows/hot_fix_spec.rb +0 -4
  99. data/spec/type/windows/iis_app_pool_spec.rb +0 -4
  100. data/spec/type/windows/iis_webisite_spec.rb +0 -4
  101. data/spec/type/windows/package_spec.rb +0 -4
  102. data/spec/type/windows/port_spec.rb +0 -4
  103. data/spec/type/windows/registry_key_spec.rb +0 -4
  104. data/spec/type/windows/scheduled_task_spec.rb +0 -4
  105. data/spec/type/windows/service_spec.rb +0 -4
  106. data/spec/type/windows/user_spec.rb +0 -4
  107. 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('file').create do
6
- it { should be_an_instance_of(Specinfra::Command::Freebsd::Base::File) }
7
- end
8
-
9
5
  describe file('/tmp') do
10
6
  it { should be_mode 777 }
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
@@ -2,10 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  set :os, :family => 'gentoo'
4
4
 
5
- describe commands.command_class('service').create do
6
- it { should be_an_instance_of(Specinfra::Command::Gentoo::Base::Service) }
7
- end
8
-
9
5
  describe service('sshd') do
10
6
  it { should be_enabled }
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
@@ -2,10 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  set :os, :family => 'linux'
4
4
 
5
- describe commands.command_class('lxc_container').create do
6
- it { should be_an_instance_of(Specinfra::Command::Linux::Base::LxcContainer) }
7
- end
8
-
9
5
  describe lxc('ct01') do
10
6
  it { should exist }
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('selinux').create do
6
- it { should be_an_instance_of(Specinfra::Command::Linux::Base::Selinux)}
7
- end
8
-
9
5
  describe selinux do
10
6
  it { should be_enforcing }
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('zfs').create do
6
- it { should be_an_instance_of(Specinfra::Command::Linux::Base::Zfs) }
7
- end
8
-
9
5
  describe zfs('rpool') do
10
6
  it { should exist }
11
7
  end
@@ -2,10 +2,6 @@ require 'spec_helper'
2
2
 
3
3
  set :os, :family => 'nixos'
4
4
 
5
- describe commands.command_class('package').create do
6
- it { should be_an_instance_of(Specinfra::Command::Nixos::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 => '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('port').create do
6
- it { should be_an_instance_of(Specinfra::Command::Openbsd::Base::Port) }
7
- end
8
-
9
5
  describe port(80) do
10
6
  it { should be_listening }
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 => 'plamo'
4
4
 
5
- describe commands.command_class('package').create do
6
- it { should be_an_instance_of(Specinfra::Command::Plamo::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 => 'plamo'
4
4
 
5
- describe commands.command_class('service').create do
6
- it { should be_an_instance_of(Specinfra::Command::Plamo::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('service').create do
6
- it { should be_an_instance_of(Specinfra::Command::Redhat::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('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