serverspec 1.16.0 → 2.0.0.beta1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -2
- data/Rakefile +20 -25
- data/lib/serverspec.rb +0 -3
- data/lib/serverspec/helper/os.rb +0 -3
- data/lib/serverspec/helper/type.rb +3 -3
- data/lib/serverspec/matchers.rb +1 -7
- data/lib/serverspec/matchers/have_rule.rb +1 -1
- data/lib/serverspec/setup.rb +12 -11
- data/lib/serverspec/type/file.rb +0 -15
- data/lib/serverspec/type/iis_app_pool.rb +0 -28
- data/lib/serverspec/type/iis_website.rb +0 -12
- data/lib/serverspec/type/interface.rb +0 -3
- data/lib/serverspec/type/user.rb +0 -4
- data/lib/serverspec/version.rb +1 -1
- data/serverspec.gemspec +4 -3
- data/wercker.yml +9 -9
- metadata +36 -471
- data/lib/serverspec/matchers/belong_to_primary_group.rb +0 -5
- data/lib/serverspec/matchers/have_site_application.rb +0 -18
- data/lib/serverspec/matchers/have_site_bindings.rb +0 -22
- data/lib/serverspec/matchers/have_virtual_dir.rb +0 -14
- data/lib/serverspec/type/ip6tables.rb +0 -13
- data/lib/serverspec/type/ppa.rb +0 -13
- data/lib/serverspec/type/windows_scheduled_task.rb +0 -9
- data/spec/aix/command_spec.rb +0 -65
- data/spec/aix/cron_spec.rb +0 -21
- data/spec/aix/default_gateway_spec.rb +0 -16
- data/spec/aix/file_spec.rb +0 -404
- data/spec/aix/group_spec.rb +0 -21
- data/spec/aix/host_spec.rb +0 -58
- data/spec/aix/package_spec.rb +0 -100
- data/spec/aix/php_config_spec.rb +0 -36
- data/spec/aix/port_spec.rb +0 -30
- data/spec/aix/process_spec.rb +0 -29
- data/spec/aix/routing_table_spec.rb +0 -120
- data/spec/aix/service_spec.rb +0 -93
- data/spec/aix/user_spec.rb +0 -57
- data/spec/arch/file_spec.rb +0 -413
- data/spec/arch/package_spec.rb +0 -100
- data/spec/arch/service_spec.rb +0 -84
- data/spec/backend/cmd/configuration_spec.rb +0 -9
- data/spec/backend/exec/configuration_spec.rb +0 -61
- data/spec/backend/powershell/script_helper_spec.rb +0 -105
- data/spec/backend/ssh/configuration_spec.rb +0 -184
- data/spec/backend/winrm/configuration_spec.rb +0 -9
- data/spec/darwin/command_spec.rb +0 -65
- data/spec/darwin/cron_spec.rb +0 -21
- data/spec/darwin/default_gateway_spec.rb +0 -16
- data/spec/darwin/file_spec.rb +0 -413
- data/spec/darwin/group_spec.rb +0 -21
- data/spec/darwin/host_spec.rb +0 -58
- data/spec/darwin/mail_alias_spec.rb +0 -12
- data/spec/darwin/package_spec.rb +0 -82
- data/spec/darwin/php_config_spec.rb +0 -36
- data/spec/darwin/port_spec.rb +0 -30
- data/spec/darwin/process_spec.rb +0 -29
- data/spec/darwin/routing_table_spec.rb +0 -120
- data/spec/darwin/service_spec.rb +0 -91
- data/spec/darwin/user_spec.rb +0 -57
- data/spec/debian/cgroup_spec.rb +0 -14
- data/spec/debian/command_spec.rb +0 -65
- data/spec/debian/cron_spec.rb +0 -21
- data/spec/debian/default_gateway_spec.rb +0 -16
- data/spec/debian/file_spec.rb +0 -413
- data/spec/debian/group_spec.rb +0 -22
- data/spec/debian/host_spec.rb +0 -58
- data/spec/debian/interface_spec.rb +0 -24
- data/spec/debian/ip6tables_spec.rb +0 -21
- data/spec/debian/iptables_spec.rb +0 -21
- data/spec/debian/kernel_module_spec.rb +0 -12
- data/spec/debian/linux_kernel_parameter_spec.rb +0 -36
- data/spec/debian/lxc_spec.rb +0 -22
- data/spec/debian/mail_alias_spec.rb +0 -12
- data/spec/debian/package_spec.rb +0 -130
- data/spec/debian/php_config_spec.rb +0 -36
- data/spec/debian/port_spec.rb +0 -40
- data/spec/debian/process_spec.rb +0 -29
- data/spec/debian/routing_table_spec.rb +0 -120
- data/spec/debian/selinux_spec.rb +0 -18
- data/spec/debian/service_spec.rb +0 -93
- data/spec/debian/user_spec.rb +0 -57
- data/spec/debian/zfs_spec.rb +0 -18
- data/spec/fedora/cgroup_spec.rb +0 -14
- data/spec/fedora/command_spec.rb +0 -67
- data/spec/fedora/cron_spec.rb +0 -21
- data/spec/fedora/default_gateway_spec.rb +0 -16
- data/spec/fedora/file_spec.rb +0 -413
- data/spec/fedora/group_spec.rb +0 -21
- data/spec/fedora/host_spec.rb +0 -58
- data/spec/fedora/interface_spec.rb +0 -24
- data/spec/fedora/ip6tables_spec.rb +0 -21
- data/spec/fedora/iptables_spec.rb +0 -21
- data/spec/fedora/kernel_module_spec.rb +0 -12
- data/spec/fedora/linux_kernel_parameter_spec.rb +0 -36
- data/spec/fedora/lxc_spec.rb +0 -22
- data/spec/fedora/mail_alias_spec.rb +0 -12
- data/spec/fedora/package_spec.rb +0 -118
- data/spec/fedora/php_config_spec.rb +0 -36
- data/spec/fedora/port_spec.rb +0 -30
- data/spec/fedora/process_spec.rb +0 -41
- data/spec/fedora/routing_table_spec.rb +0 -120
- data/spec/fedora/selinux_spec.rb +0 -18
- data/spec/fedora/user_spec.rb +0 -57
- data/spec/fedora/yumrepo_spec.rb +0 -25
- data/spec/fedora/zfs_spec.rb +0 -18
- data/spec/freebsd/command_spec.rb +0 -65
- data/spec/freebsd/cron_spec.rb +0 -21
- data/spec/freebsd/default_gateway_spec.rb +0 -16
- data/spec/freebsd/file_spec.rb +0 -385
- data/spec/freebsd/group_spec.rb +0 -21
- data/spec/freebsd/host_spec.rb +0 -58
- data/spec/freebsd/package_spec.rb +0 -96
- data/spec/freebsd/php_config_spec.rb +0 -36
- data/spec/freebsd/port_spec.rb +0 -30
- data/spec/freebsd/process_spec.rb +0 -29
- data/spec/freebsd/routing_table_spec.rb +0 -120
- data/spec/freebsd/service_spec.rb +0 -93
- data/spec/freebsd/user_spec.rb +0 -57
- data/spec/freebsd10/package_spec.rb +0 -13
- data/spec/gentoo/cgroup_spec.rb +0 -14
- data/spec/gentoo/command_spec.rb +0 -65
- data/spec/gentoo/cron_spec.rb +0 -21
- data/spec/gentoo/default_gateway_spec.rb +0 -16
- data/spec/gentoo/file_spec.rb +0 -413
- data/spec/gentoo/group_spec.rb +0 -21
- data/spec/gentoo/host_spec.rb +0 -58
- data/spec/gentoo/interface_spec.rb +0 -24
- data/spec/gentoo/ip6tables_spec.rb +0 -21
- data/spec/gentoo/iptables_spec.rb +0 -21
- data/spec/gentoo/kernel_module_spec.rb +0 -12
- data/spec/gentoo/linux_kernel_parameter_spec.rb +0 -36
- data/spec/gentoo/lxc_spec.rb +0 -22
- data/spec/gentoo/mail_alias_spec.rb +0 -12
- data/spec/gentoo/package_spec.rb +0 -91
- data/spec/gentoo/php_config_spec.rb +0 -36
- data/spec/gentoo/port_spec.rb +0 -30
- data/spec/gentoo/process_spec.rb +0 -29
- data/spec/gentoo/routing_table_spec.rb +0 -120
- data/spec/gentoo/selinux_spec.rb +0 -18
- data/spec/gentoo/service_spec.rb +0 -93
- data/spec/gentoo/user_spec.rb +0 -57
- data/spec/gentoo/zfs_spec.rb +0 -18
- data/spec/nixos/file_spec.rb +0 -421
- data/spec/nixos/package_spec.rb +0 -109
- data/spec/nixos/service_spec.rb +0 -40
- data/spec/plamo/cgroup_spec.rb +0 -14
- data/spec/plamo/command_spec.rb +0 -65
- data/spec/plamo/cron_spec.rb +0 -21
- data/spec/plamo/default_gateway_spec.rb +0 -16
- data/spec/plamo/file_spec.rb +0 -413
- data/spec/plamo/group_spec.rb +0 -22
- data/spec/plamo/host_spec.rb +0 -58
- data/spec/plamo/interface_spec.rb +0 -24
- data/spec/plamo/ip6tables_spec.rb +0 -21
- data/spec/plamo/iptables_spec.rb +0 -21
- data/spec/plamo/kernel_module_spec.rb +0 -12
- data/spec/plamo/linux_kernel_parameter_spec.rb +0 -36
- data/spec/plamo/lxc_spec.rb +0 -22
- data/spec/plamo/mail_alias_spec.rb +0 -12
- data/spec/plamo/package_spec.rb +0 -100
- data/spec/plamo/php_config_spec.rb +0 -36
- data/spec/plamo/port_spec.rb +0 -30
- data/spec/plamo/routing_table_spec.rb +0 -120
- data/spec/plamo/selinux_spec.rb +0 -18
- data/spec/plamo/service_spec.rb +0 -84
- data/spec/plamo/user_spec.rb +0 -57
- data/spec/plamo/zfs_spec.rb +0 -18
- data/spec/redhat/cgroup_spec.rb +0 -14
- data/spec/redhat/command_spec.rb +0 -67
- data/spec/redhat/cron_spec.rb +0 -21
- data/spec/redhat/default_gateway_spec.rb +0 -16
- data/spec/redhat/file_spec.rb +0 -418
- data/spec/redhat/group_spec.rb +0 -21
- data/spec/redhat/host_spec.rb +0 -64
- data/spec/redhat/interface_spec.rb +0 -24
- data/spec/redhat/ip6tables_spec.rb +0 -21
- data/spec/redhat/iptables_spec.rb +0 -21
- data/spec/redhat/kernel_module_spec.rb +0 -12
- data/spec/redhat/linux_kernel_parameter_spec.rb +0 -36
- data/spec/redhat/lxc_spec.rb +0 -22
- data/spec/redhat/mail_alias_spec.rb +0 -12
- data/spec/redhat/package_spec.rb +0 -118
- data/spec/redhat/php_config_spec.rb +0 -36
- data/spec/redhat/port_spec.rb +0 -30
- data/spec/redhat/process_spec.rb +0 -41
- data/spec/redhat/routing_table_spec.rb +0 -120
- data/spec/redhat/selinux_spec.rb +0 -18
- data/spec/redhat/service_spec.rb +0 -93
- data/spec/redhat/user_spec.rb +0 -57
- data/spec/redhat/yumrepo_spec.rb +0 -25
- data/spec/redhat/zfs_spec.rb +0 -18
- data/spec/redhat7/service_spec.rb +0 -21
- data/spec/smartos/mail_alias_spec.rb +0 -12
- data/spec/smartos/process_spec.rb +0 -29
- data/spec/solaris/command_spec.rb +0 -65
- data/spec/solaris/cron_spec.rb +0 -21
- data/spec/solaris/default_gateway_spec.rb +0 -16
- data/spec/solaris/file_spec.rb +0 -413
- data/spec/solaris/group_spec.rb +0 -21
- data/spec/solaris/host_spec.rb +0 -58
- data/spec/solaris/ipfilter_spec.rb +0 -8
- data/spec/solaris/ipnat_spec.rb +0 -8
- data/spec/solaris/mail_alias_spec.rb +0 -12
- data/spec/solaris/package_spec.rb +0 -100
- data/spec/solaris/php_config_spec.rb +0 -36
- data/spec/solaris/port_spec.rb +0 -30
- data/spec/solaris/process_spec.rb +0 -29
- data/spec/solaris/routing_table_spec.rb +0 -120
- data/spec/solaris/service_spec.rb +0 -93
- data/spec/solaris/svcprop_spec.rb +0 -13
- data/spec/solaris/user_spec.rb +0 -57
- data/spec/solaris/zfs_spec.rb +0 -18
- data/spec/solaris10/file_spec.rb +0 -395
- data/spec/solaris10/group_spec.rb +0 -21
- data/spec/solaris10/mail_alias_spec.rb +0 -12
- data/spec/solaris10/package_spec.rb +0 -85
- data/spec/solaris10/php_config_spec.rb +0 -36
- data/spec/solaris10/user_spec.rb +0 -57
- data/spec/solaris11/command_spec.rb +0 -65
- data/spec/solaris11/cron_spec.rb +0 -21
- data/spec/solaris11/default_gateway_spec.rb +0 -16
- data/spec/solaris11/file_spec.rb +0 -413
- data/spec/solaris11/group_spec.rb +0 -21
- data/spec/solaris11/host_spec.rb +0 -58
- data/spec/solaris11/ipfilter_spec.rb +0 -8
- data/spec/solaris11/ipnat_spec.rb +0 -8
- data/spec/solaris11/mail_alias_spec.rb +0 -12
- data/spec/solaris11/package_spec.rb +0 -100
- data/spec/solaris11/php_config_spec.rb +0 -36
- data/spec/solaris11/port_spec.rb +0 -12
- data/spec/solaris11/routing_table_spec.rb +0 -120
- data/spec/solaris11/service_spec.rb +0 -93
- data/spec/solaris11/svcprop_spec.rb +0 -13
- data/spec/solaris11/user_spec.rb +0 -57
- data/spec/solaris11/zfs_spec.rb +0 -18
- data/spec/support/powershell_command_runner.rb +0 -52
- data/spec/ubuntu/ppa_spec.rb +0 -25
- data/spec/windows/command_spec.rb +0 -67
- data/spec/windows/file_spec.rb +0 -161
- data/spec/windows/group_spec.rb +0 -28
- data/spec/windows/port_spec.rb +0 -31
- data/spec/windows/service_spec.rb +0 -31
- data/spec/windows/user_spec.rb +0 -44
- data/spec/windows/windows_hot_fix_spec.rb +0 -25
- data/spec/windows/windows_registry_key_spec.rb +0 -66
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2356f6c598e02662075bdc995a2af011c386841
|
4
|
+
data.tar.gz: 3a2ec6faaf0cbb1eeb6ffc0e25b2f5a3293918f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20080481ba24081e6d50e4ca320211778eaab749dd2024b085106c5319ef9ae2987bbc66c46fe3fae7f7f532620e20b9551fafee06e0a8d8625b019c21223705
|
7
|
+
data.tar.gz: 5c3c36a693f4fa2db4acffc3622739daa4f4db6cdcf4bfc8734c502abada570038b1741c615c3d1f231e0ead924c1034dd86893f7f2955ca199c3551bac754e8
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Serverspec [![Gem Version](https://badge.fury.io/rb/serverspec.
|
1
|
+
# Serverspec [![Gem Version](https://badge.fury.io/rb/serverspec.png)](http://badge.fury.io/rb/serverspec) [![BuildStatus](https://secure.travis-ci.org/serverspec/serverspec.png)](http://travis-ci.org/serverspec/serverspec) [![Code Climate](https://codeclimate.com/github/serverspec/serverspec.png)](https://codeclimate.com/github/serverspec/serverspec) [![wercker status](https://app.wercker.com/status/526d1ff4df6eadaa793dca1affcaed35/s/ "wercker status")](https://app.wercker.com/project/bykey/526d1ff4df6eadaa793dca1affcaed35)
|
2
2
|
|
3
3
|
RSpec tests for your servers configured by Puppet, Chef or anything else
|
4
4
|
|
@@ -132,7 +132,6 @@ You can select from:
|
|
132
132
|
|
133
133
|
* SpecInfra::Helper::RedHat
|
134
134
|
* SpecInfra::Helper::Debian
|
135
|
-
* SpecInfra::Helper::Fedora
|
136
135
|
* SpecInfra::Helper::Gentoo
|
137
136
|
* SpecInfra::Helper::Solaris
|
138
137
|
* SpecInfra::Helper::Darwin
|
data/Rakefile
CHANGED
@@ -1,37 +1,32 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
-
|
3
|
-
|
4
|
-
require "octorelease"
|
5
|
-
rescue LoadError
|
6
|
-
end
|
2
|
+
require "rspec/core/rake_task"
|
3
|
+
require "octorelease"
|
7
4
|
|
8
|
-
|
9
|
-
task :spec => 'spec:all'
|
5
|
+
task :spec => 'spec:all'
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
|
7
|
+
namespace :spec do
|
8
|
+
oses = %w( darwin debian gentoo plamo redhat aix solaris solaris10 solaris11 smartos windows freebsd freebsd10 arch)
|
9
|
+
backends = %w( exec ssh cmd winrm powershell )
|
14
10
|
|
15
|
-
|
11
|
+
task :all => [ oses.map {|os| "spec:#{os}" }, backends, :helper, :unit ].flatten
|
16
12
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
end
|
13
|
+
oses.each do |os|
|
14
|
+
RSpec::Core::RakeTask.new(os.to_sym) do |t|
|
15
|
+
t.pattern = "spec/#{os}/*_spec.rb"
|
21
16
|
end
|
17
|
+
end
|
22
18
|
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
end
|
19
|
+
backends.each do |backend|
|
20
|
+
RSpec::Core::RakeTask.new(backend) do |t|
|
21
|
+
t.pattern = "spec/backend/#{backend.to_s}/*_spec.rb"
|
27
22
|
end
|
23
|
+
end
|
28
24
|
|
29
|
-
|
30
|
-
|
31
|
-
|
25
|
+
RSpec::Core::RakeTask.new(:helper) do |t|
|
26
|
+
t.pattern = "spec/helper/*_spec.rb"
|
27
|
+
end
|
32
28
|
|
33
|
-
|
34
|
-
|
35
|
-
end
|
29
|
+
RSpec::Core::RakeTask.new(:unit) do |t|
|
30
|
+
t.pattern = "spec/unit/*_spec.rb"
|
36
31
|
end
|
37
32
|
end
|
data/lib/serverspec.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rspec'
|
3
|
-
require 'rspec/its'
|
4
3
|
require 'specinfra'
|
5
4
|
require 'serverspec/version'
|
6
5
|
require 'serverspec/matchers'
|
@@ -17,7 +16,6 @@ module RSpec
|
|
17
16
|
def dump_failure_info(example)
|
18
17
|
exception = example.execution_result[:exception]
|
19
18
|
exception_class_name = exception_class_name_for(exception)
|
20
|
-
output.puts "#{long_padding}#{failure_color("On host `#{SpecInfra.configuration.host}`")}"
|
21
19
|
output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
|
22
20
|
output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
|
23
21
|
output.puts "#{long_padding} #{failure_color(example.metadata[:command])}" if example.metadata[:command]
|
@@ -33,7 +31,6 @@ module RSpec
|
|
33
31
|
def dump_failure_info(example)
|
34
32
|
exception = example.execution_result[:exception]
|
35
33
|
exception_class_name = exception_class_name_for(exception)
|
36
|
-
output.puts "#{long_padding}#{failure_color("On host `#{SpecInfra.configuration.host}`")}"
|
37
34
|
output.puts "#{long_padding}#{failure_color("Failure/Error:")} #{failure_color(read_failed_line(exception, example).strip)}"
|
38
35
|
output.puts "#{long_padding}#{failure_color(exception_class_name)}: #{failure_color(exception.message)}" unless exception_class_name =~ /RSpec/
|
39
36
|
output.puts "#{long_padding} #{failure_color(example.metadata[:command])}" if example.metadata[:command]
|
data/lib/serverspec/helper/os.rb
CHANGED
@@ -3,9 +3,9 @@ module Serverspec
|
|
3
3
|
module Type
|
4
4
|
types = %w(
|
5
5
|
base cgroup command cron default_gateway file group host iis_website iis_app_pool interface
|
6
|
-
ipfilter ipnat iptables
|
7
|
-
package php_config port
|
8
|
-
windows_feature windows_hot_fix windows_registry_key
|
6
|
+
ipfilter ipnat iptables kernel_module linux_kernel_parameter lxc mail_alias
|
7
|
+
package php_config port process routing_table selinux service user yumrepo
|
8
|
+
windows_feature windows_hot_fix windows_registry_key zfs
|
9
9
|
)
|
10
10
|
|
11
11
|
types.each {|type| require "serverspec/type/#{type}" }
|
data/lib/serverspec/matchers.rb
CHANGED
@@ -23,19 +23,13 @@ require 'serverspec/matchers/be_running'
|
|
23
23
|
|
24
24
|
# user
|
25
25
|
require 'serverspec/matchers/belong_to_group'
|
26
|
-
require 'serverspec/matchers/belong_to_primary_group'
|
27
26
|
|
28
27
|
require 'serverspec/matchers/return_exit_status'
|
29
28
|
require 'serverspec/matchers/return_stdout'
|
30
29
|
require 'serverspec/matchers/return_stderr'
|
31
30
|
|
32
|
-
# ipfiter, ipnat, iptables
|
31
|
+
# ipfiter, ipnat, iptables
|
33
32
|
require 'serverspec/matchers/have_rule'
|
34
33
|
|
35
34
|
# cron, routing_table
|
36
35
|
require 'serverspec/matchers/have_entry'
|
37
|
-
|
38
|
-
# iis_website
|
39
|
-
require 'serverspec/matchers/have_site_application'
|
40
|
-
require 'serverspec/matchers/have_site_bindings'
|
41
|
-
require 'serverspec/matchers/have_virtual_dir'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
RSpec::Matchers.define :have_rule do |rule|
|
2
2
|
match do |subject|
|
3
|
-
if subject.class.name == 'Serverspec::Type::Iptables'
|
3
|
+
if subject.class.name == 'Serverspec::Type::Iptables'
|
4
4
|
subject.has_rule?(rule, @table, @chain)
|
5
5
|
else
|
6
6
|
subject.has_rule?(rule)
|
data/lib/serverspec/setup.rb
CHANGED
@@ -14,11 +14,11 @@ module Serverspec
|
|
14
14
|
end
|
15
15
|
|
16
16
|
if @backend_type == 'Ssh'
|
17
|
-
print
|
17
|
+
print "Vagrant instance y/n: "
|
18
18
|
@vagrant = $stdin.gets.chomp
|
19
19
|
if @vagrant =~ (/(true|t|yes|y|1)$/i)
|
20
20
|
@vagrant = true
|
21
|
-
print
|
21
|
+
print "Auto-configure Vagrant from Vagrantfile? y/n: "
|
22
22
|
auto_config = $stdin.gets.chomp
|
23
23
|
if auto_config =~ (/(true|t|yes|y|1)$/i)
|
24
24
|
auto_vagrant_configuration
|
@@ -35,7 +35,7 @@ module Serverspec
|
|
35
35
|
@hostname = 'localhost'
|
36
36
|
end
|
37
37
|
|
38
|
-
['spec', "spec/#{@hostname}"].each { |dir| safe_mkdir(dir) }
|
38
|
+
[ 'spec', "spec/#{@hostname}" ].each { |dir| safe_mkdir(dir) }
|
39
39
|
safe_create_spec
|
40
40
|
safe_create_spec_helper
|
41
41
|
safe_create_rakefile
|
@@ -55,7 +55,7 @@ EOF
|
|
55
55
|
num = $stdin.gets.to_i - 1
|
56
56
|
puts
|
57
57
|
|
58
|
-
@os_type = ['UN*X', 'Windows'][num] || 'UN*X'
|
58
|
+
@os_type = [ 'UN*X', 'Windows' ][num] || 'UN*X'
|
59
59
|
end
|
60
60
|
|
61
61
|
def self.ask_unix_backend
|
@@ -71,7 +71,7 @@ EOF
|
|
71
71
|
num = $stdin.gets.to_i - 1
|
72
72
|
puts
|
73
73
|
|
74
|
-
@backend_type = ['Ssh', 'Exec'][num] || 'Exec'
|
74
|
+
@backend_type = [ 'Ssh', 'Exec' ][num] || 'Exec'
|
75
75
|
end
|
76
76
|
|
77
77
|
def self.ask_windows_backend
|
@@ -87,7 +87,7 @@ EOF
|
|
87
87
|
num = $stdin.gets.to_i - 1
|
88
88
|
puts
|
89
89
|
|
90
|
-
@backend_type = ['WinRM', 'Cmd'][num] || 'Exec'
|
90
|
+
@backend_type = [ 'WinRM', 'Cmd' ][num] || 'Exec'
|
91
91
|
end
|
92
92
|
|
93
93
|
def self.safe_create_spec
|
@@ -138,6 +138,7 @@ EOF
|
|
138
138
|
end
|
139
139
|
|
140
140
|
def self.safe_create_spec_helper
|
141
|
+
requirements = []
|
141
142
|
content = ERB.new(spec_helper_template, nil, '-').result(binding)
|
142
143
|
if File.exists? 'spec/spec_helper.rb'
|
143
144
|
old_content = File.read('spec/spec_helper.rb')
|
@@ -166,7 +167,7 @@ task :default => :spec
|
|
166
167
|
if File.exists? 'Rakefile'
|
167
168
|
old_content = File.read('Rakefile')
|
168
169
|
if old_content != content
|
169
|
-
$stderr.puts
|
170
|
+
$stderr.puts "!! Rakefile already exists and differs from template"
|
170
171
|
end
|
171
172
|
else
|
172
173
|
File.open('Rakefile', 'w') do |f|
|
@@ -178,7 +179,7 @@ task :default => :spec
|
|
178
179
|
|
179
180
|
def self.find_vagrantfile
|
180
181
|
Pathname.new(Dir.pwd).ascend do |dir|
|
181
|
-
path = File.expand_path(
|
182
|
+
path = File.expand_path("Vagrantfile", dir)
|
182
183
|
return path if File.exists?(path)
|
183
184
|
end
|
184
185
|
nil
|
@@ -198,16 +199,16 @@ task :default => :spec
|
|
198
199
|
@hostname = list_of_vms[0]
|
199
200
|
else
|
200
201
|
list_of_vms.each_with_index { |vm, index | puts "#{index}) #{vm}\n" }
|
201
|
-
print
|
202
|
+
print "Choose a VM from the Vagrantfile: "
|
202
203
|
chosen_vm = $stdin.gets.chomp
|
203
204
|
@hostname = list_of_vms[chosen_vm.to_i]
|
204
205
|
end
|
205
206
|
else
|
206
|
-
$stderr.puts
|
207
|
+
$stderr.puts "Vagrant status error - Check your Vagrantfile or .vagrant"
|
207
208
|
exit 1
|
208
209
|
end
|
209
210
|
else
|
210
|
-
$stderr.puts
|
211
|
+
$stderr.puts "Vagrantfile not found in directory!"
|
211
212
|
exit 1
|
212
213
|
end
|
213
214
|
end
|
data/lib/serverspec/type/file.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'date'
|
2
|
-
|
3
1
|
module Serverspec
|
4
2
|
module Type
|
5
3
|
class File < Base
|
@@ -73,10 +71,6 @@ module Serverspec
|
|
73
71
|
backend.check_mounted(@name, attr, only_with)
|
74
72
|
end
|
75
73
|
|
76
|
-
def immutable?
|
77
|
-
backend.check_immutable(@name)
|
78
|
-
end
|
79
|
-
|
80
74
|
def match_checksum(checksum)
|
81
75
|
backend.check_file_checksum(@name, checksum)
|
82
76
|
end
|
@@ -99,15 +93,6 @@ module Serverspec
|
|
99
93
|
def version?(version)
|
100
94
|
backend.check_file_version(@name, version)
|
101
95
|
end
|
102
|
-
|
103
|
-
def mtime
|
104
|
-
d = backend.get_file_mtime(@name).stdout.strip
|
105
|
-
DateTime.strptime(d, '%s').new_offset(DateTime.now.offset)
|
106
|
-
end
|
107
|
-
|
108
|
-
def size
|
109
|
-
backend.get_file_size(@name).stdout.strip.to_i
|
110
|
-
end
|
111
96
|
end
|
112
97
|
end
|
113
98
|
end
|
@@ -9,34 +9,6 @@ module Serverspec
|
|
9
9
|
backend.check_iis_app_pool_dotnet(@name, dotnet)
|
10
10
|
end
|
11
11
|
|
12
|
-
def has_32bit_enabled?()
|
13
|
-
backend.check_32bit_enabled(@name)
|
14
|
-
end
|
15
|
-
|
16
|
-
def has_managed_pipeline_mode?(mode)
|
17
|
-
backend.check_managed_pipeline_mode(@name, mode)
|
18
|
-
end
|
19
|
-
|
20
|
-
def has_idle_timeout?(minutes)
|
21
|
-
backend.check_idle_timeout(@name, minutes)
|
22
|
-
end
|
23
|
-
|
24
|
-
def has_identity_type?(identity_type)
|
25
|
-
backend.check_identity_type(@name, identity_type)
|
26
|
-
end
|
27
|
-
|
28
|
-
def has_periodic_restart?(minutes)
|
29
|
-
backend.check_periodic_restart(@name, minutes)
|
30
|
-
end
|
31
|
-
|
32
|
-
def has_user_profile_enabled?()
|
33
|
-
backend.check_user_profile(@name)
|
34
|
-
end
|
35
|
-
|
36
|
-
def has_username?(username)
|
37
|
-
backend.check_username(@name, username)
|
38
|
-
end
|
39
|
-
|
40
12
|
def to_s
|
41
13
|
%Q[IIS Application Pool "#{@name}"]
|
42
14
|
end
|
@@ -21,18 +21,6 @@ module Serverspec
|
|
21
21
|
def has_physical_path?(path)
|
22
22
|
backend.check_iis_website_path(@name, path)
|
23
23
|
end
|
24
|
-
|
25
|
-
def has_site_bindings?(port, protocol, ipaddress, host_header)
|
26
|
-
backend.check_iis_website_binding(@name, port, protocol, ipaddress, host_header)
|
27
|
-
end
|
28
|
-
|
29
|
-
def has_virtual_dir?(vdir, path)
|
30
|
-
backend.check_iis_website_virtual_dir(@name, vdir, path)
|
31
|
-
end
|
32
|
-
|
33
|
-
def has_site_application?(app, pool, physical_path)
|
34
|
-
backend.check_iis_website_application(@name, app, pool, physical_path)
|
35
|
-
end
|
36
24
|
|
37
25
|
def to_s
|
38
26
|
%Q[IIS Website "#{@name}"]
|
data/lib/serverspec/type/user.rb
CHANGED
data/lib/serverspec/version.rb
CHANGED
data/serverspec.gemspec
CHANGED
@@ -19,10 +19,11 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
21
|
spec.add_runtime_dependency "net-ssh"
|
22
|
-
spec.add_runtime_dependency "rspec", "~> 2.
|
23
|
-
spec.add_runtime_dependency "rspec-its"
|
22
|
+
spec.add_runtime_dependency "rspec", "~> 2.13"
|
24
23
|
spec.add_runtime_dependency "highline"
|
25
|
-
spec.add_runtime_dependency "specinfra", "~>
|
24
|
+
spec.add_runtime_dependency "specinfra", "~> 2.0.0.beta"
|
26
25
|
spec.add_development_dependency "bundler", "~> 1.3"
|
27
26
|
spec.add_development_dependency "rake", "~> 10.1.1"
|
27
|
+
spec.add_development_dependency "octokit", "~> 2.7.2"
|
28
|
+
spec.add_development_dependency "octorelease"
|
28
29
|
end
|
data/wercker.yml
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
box: mizzy/serverspec-base
|
1
|
+
box: mizzy/serverspec-base
|
2
2
|
build:
|
3
3
|
steps:
|
4
4
|
- script:
|
@@ -35,16 +35,16 @@ build:
|
|
35
35
|
code: rake spec:centos65
|
36
36
|
cwd: $WORKING_DIR
|
37
37
|
- script:
|
38
|
-
name: Run vagrant up
|
39
|
-
code: vagrant up
|
38
|
+
name: Run vagrant up ubuntu1310
|
39
|
+
code: vagrant up ubuntu1310 --provider=digital_ocean
|
40
40
|
cwd: $WORKING_DIR
|
41
41
|
- script:
|
42
|
-
name: Run vagrant reload
|
43
|
-
code: vagrant reload
|
42
|
+
name: Run vagrant reload ubuntu1310
|
43
|
+
code: vagrant reload ubuntu1310
|
44
44
|
cwd: $WORKING_DIR
|
45
45
|
- script:
|
46
|
-
name: Run rake spec:
|
47
|
-
code: rake spec:
|
46
|
+
name: Run rake spec:ubuntu1310
|
47
|
+
code: rake spec:ubuntu1310
|
48
48
|
cwd: $WORKING_DIR
|
49
49
|
|
50
50
|
after-steps:
|
@@ -53,8 +53,8 @@ build:
|
|
53
53
|
code: vagrant destroy centos65 --force
|
54
54
|
cwd: $WORKING_DIR
|
55
55
|
- script:
|
56
|
-
name: Run vagrant destroy
|
57
|
-
code: vagrant destroy
|
56
|
+
name: Run vagrant destroy ubuntu1310
|
57
|
+
code: vagrant destroy ubuntu1310 --force
|
58
58
|
cwd: $WORKING_DIR
|
59
59
|
- 1syo/idobata-notify@0.1.1:
|
60
60
|
token: $IDOBATA_TOKEN
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: serverspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0.beta1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gosuke Miyashita
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: net-ssh
|
@@ -30,28 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.13'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: rspec-its
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - ">="
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - ">="
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
40
|
+
version: '2.13'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: highline
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +58,14 @@ dependencies:
|
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version:
|
61
|
+
version: 2.0.0.beta
|
76
62
|
type: :runtime
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version:
|
68
|
+
version: 2.0.0.beta
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: bundler
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +94,34 @@ dependencies:
|
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
96
|
version: 10.1.1
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: octokit
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.7.2
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.7.2
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: octorelease
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
description: RSpec tests for your servers configured by Puppet, Chef or anything else
|
112
126
|
email:
|
113
127
|
- gosukenator@gmail.com
|
@@ -145,13 +159,9 @@ files:
|
|
145
159
|
- lib/serverspec/matchers/be_running.rb
|
146
160
|
- lib/serverspec/matchers/be_writable.rb
|
147
161
|
- lib/serverspec/matchers/belong_to_group.rb
|
148
|
-
- lib/serverspec/matchers/belong_to_primary_group.rb
|
149
162
|
- lib/serverspec/matchers/contain.rb
|
150
163
|
- lib/serverspec/matchers/have_entry.rb
|
151
164
|
- lib/serverspec/matchers/have_rule.rb
|
152
|
-
- lib/serverspec/matchers/have_site_application.rb
|
153
|
-
- lib/serverspec/matchers/have_site_bindings.rb
|
154
|
-
- lib/serverspec/matchers/have_virtual_dir.rb
|
155
165
|
- lib/serverspec/matchers/match_md5checksum.rb
|
156
166
|
- lib/serverspec/matchers/match_sha256checksum.rb
|
157
167
|
- lib/serverspec/matchers/return_exit_status.rb
|
@@ -170,7 +180,6 @@ files:
|
|
170
180
|
- lib/serverspec/type/iis_app_pool.rb
|
171
181
|
- lib/serverspec/type/iis_website.rb
|
172
182
|
- lib/serverspec/type/interface.rb
|
173
|
-
- lib/serverspec/type/ip6tables.rb
|
174
183
|
- lib/serverspec/type/ipfilter.rb
|
175
184
|
- lib/serverspec/type/ipnat.rb
|
176
185
|
- lib/serverspec/type/iptables.rb
|
@@ -181,7 +190,6 @@ files:
|
|
181
190
|
- lib/serverspec/type/package.rb
|
182
191
|
- lib/serverspec/type/php_config.rb
|
183
192
|
- lib/serverspec/type/port.rb
|
184
|
-
- lib/serverspec/type/ppa.rb
|
185
193
|
- lib/serverspec/type/process.rb
|
186
194
|
- lib/serverspec/type/routing_table.rb
|
187
195
|
- lib/serverspec/type/selinux.rb
|
@@ -190,236 +198,14 @@ files:
|
|
190
198
|
- lib/serverspec/type/windows_feature.rb
|
191
199
|
- lib/serverspec/type/windows_hot_fix.rb
|
192
200
|
- lib/serverspec/type/windows_registry_key.rb
|
193
|
-
- lib/serverspec/type/windows_scheduled_task.rb
|
194
201
|
- lib/serverspec/type/yumrepo.rb
|
195
202
|
- lib/serverspec/type/zfs.rb
|
196
203
|
- lib/serverspec/version.rb
|
197
204
|
- serverspec.gemspec
|
198
|
-
- spec/aix/command_spec.rb
|
199
|
-
- spec/aix/cron_spec.rb
|
200
|
-
- spec/aix/default_gateway_spec.rb
|
201
|
-
- spec/aix/file_spec.rb
|
202
|
-
- spec/aix/group_spec.rb
|
203
|
-
- spec/aix/host_spec.rb
|
204
|
-
- spec/aix/package_spec.rb
|
205
|
-
- spec/aix/php_config_spec.rb
|
206
|
-
- spec/aix/port_spec.rb
|
207
|
-
- spec/aix/process_spec.rb
|
208
|
-
- spec/aix/routing_table_spec.rb
|
209
|
-
- spec/aix/service_spec.rb
|
210
|
-
- spec/aix/user_spec.rb
|
211
|
-
- spec/arch/file_spec.rb
|
212
|
-
- spec/arch/package_spec.rb
|
213
|
-
- spec/arch/service_spec.rb
|
214
|
-
- spec/backend/cmd/configuration_spec.rb
|
215
|
-
- spec/backend/exec/configuration_spec.rb
|
216
|
-
- spec/backend/powershell/script_helper_spec.rb
|
217
|
-
- spec/backend/ssh/configuration_spec.rb
|
218
|
-
- spec/backend/winrm/configuration_spec.rb
|
219
|
-
- spec/darwin/command_spec.rb
|
220
|
-
- spec/darwin/cron_spec.rb
|
221
|
-
- spec/darwin/default_gateway_spec.rb
|
222
|
-
- spec/darwin/file_spec.rb
|
223
|
-
- spec/darwin/group_spec.rb
|
224
|
-
- spec/darwin/host_spec.rb
|
225
|
-
- spec/darwin/mail_alias_spec.rb
|
226
|
-
- spec/darwin/package_spec.rb
|
227
|
-
- spec/darwin/php_config_spec.rb
|
228
|
-
- spec/darwin/port_spec.rb
|
229
|
-
- spec/darwin/process_spec.rb
|
230
|
-
- spec/darwin/routing_table_spec.rb
|
231
|
-
- spec/darwin/service_spec.rb
|
232
|
-
- spec/darwin/user_spec.rb
|
233
|
-
- spec/debian/cgroup_spec.rb
|
234
|
-
- spec/debian/command_spec.rb
|
235
|
-
- spec/debian/cron_spec.rb
|
236
|
-
- spec/debian/default_gateway_spec.rb
|
237
|
-
- spec/debian/file_spec.rb
|
238
|
-
- spec/debian/group_spec.rb
|
239
|
-
- spec/debian/host_spec.rb
|
240
|
-
- spec/debian/interface_spec.rb
|
241
|
-
- spec/debian/ip6tables_spec.rb
|
242
|
-
- spec/debian/iptables_spec.rb
|
243
|
-
- spec/debian/kernel_module_spec.rb
|
244
|
-
- spec/debian/linux_kernel_parameter_spec.rb
|
245
|
-
- spec/debian/lxc_spec.rb
|
246
|
-
- spec/debian/mail_alias_spec.rb
|
247
|
-
- spec/debian/package_spec.rb
|
248
|
-
- spec/debian/php_config_spec.rb
|
249
|
-
- spec/debian/port_spec.rb
|
250
|
-
- spec/debian/process_spec.rb
|
251
|
-
- spec/debian/routing_table_spec.rb
|
252
|
-
- spec/debian/selinux_spec.rb
|
253
|
-
- spec/debian/service_spec.rb
|
254
|
-
- spec/debian/user_spec.rb
|
255
|
-
- spec/debian/zfs_spec.rb
|
256
|
-
- spec/fedora/cgroup_spec.rb
|
257
|
-
- spec/fedora/command_spec.rb
|
258
|
-
- spec/fedora/cron_spec.rb
|
259
|
-
- spec/fedora/default_gateway_spec.rb
|
260
|
-
- spec/fedora/file_spec.rb
|
261
|
-
- spec/fedora/group_spec.rb
|
262
|
-
- spec/fedora/host_spec.rb
|
263
|
-
- spec/fedora/interface_spec.rb
|
264
|
-
- spec/fedora/ip6tables_spec.rb
|
265
|
-
- spec/fedora/iptables_spec.rb
|
266
|
-
- spec/fedora/kernel_module_spec.rb
|
267
|
-
- spec/fedora/linux_kernel_parameter_spec.rb
|
268
|
-
- spec/fedora/lxc_spec.rb
|
269
|
-
- spec/fedora/mail_alias_spec.rb
|
270
|
-
- spec/fedora/package_spec.rb
|
271
|
-
- spec/fedora/php_config_spec.rb
|
272
|
-
- spec/fedora/port_spec.rb
|
273
|
-
- spec/fedora/process_spec.rb
|
274
|
-
- spec/fedora/routing_table_spec.rb
|
275
|
-
- spec/fedora/selinux_spec.rb
|
276
|
-
- spec/fedora/user_spec.rb
|
277
|
-
- spec/fedora/yumrepo_spec.rb
|
278
|
-
- spec/fedora/zfs_spec.rb
|
279
|
-
- spec/freebsd/command_spec.rb
|
280
|
-
- spec/freebsd/cron_spec.rb
|
281
|
-
- spec/freebsd/default_gateway_spec.rb
|
282
|
-
- spec/freebsd/file_spec.rb
|
283
|
-
- spec/freebsd/group_spec.rb
|
284
|
-
- spec/freebsd/host_spec.rb
|
285
|
-
- spec/freebsd/package_spec.rb
|
286
|
-
- spec/freebsd/php_config_spec.rb
|
287
|
-
- spec/freebsd/port_spec.rb
|
288
|
-
- spec/freebsd/process_spec.rb
|
289
|
-
- spec/freebsd/routing_table_spec.rb
|
290
|
-
- spec/freebsd/service_spec.rb
|
291
|
-
- spec/freebsd/user_spec.rb
|
292
|
-
- spec/freebsd10/package_spec.rb
|
293
|
-
- spec/gentoo/cgroup_spec.rb
|
294
|
-
- spec/gentoo/command_spec.rb
|
295
|
-
- spec/gentoo/cron_spec.rb
|
296
|
-
- spec/gentoo/default_gateway_spec.rb
|
297
|
-
- spec/gentoo/file_spec.rb
|
298
|
-
- spec/gentoo/group_spec.rb
|
299
|
-
- spec/gentoo/host_spec.rb
|
300
|
-
- spec/gentoo/interface_spec.rb
|
301
|
-
- spec/gentoo/ip6tables_spec.rb
|
302
|
-
- spec/gentoo/iptables_spec.rb
|
303
|
-
- spec/gentoo/kernel_module_spec.rb
|
304
|
-
- spec/gentoo/linux_kernel_parameter_spec.rb
|
305
|
-
- spec/gentoo/lxc_spec.rb
|
306
|
-
- spec/gentoo/mail_alias_spec.rb
|
307
|
-
- spec/gentoo/package_spec.rb
|
308
|
-
- spec/gentoo/php_config_spec.rb
|
309
|
-
- spec/gentoo/port_spec.rb
|
310
|
-
- spec/gentoo/process_spec.rb
|
311
|
-
- spec/gentoo/routing_table_spec.rb
|
312
|
-
- spec/gentoo/selinux_spec.rb
|
313
|
-
- spec/gentoo/service_spec.rb
|
314
|
-
- spec/gentoo/user_spec.rb
|
315
|
-
- spec/gentoo/zfs_spec.rb
|
316
205
|
- spec/helper/properties_spec.rb
|
317
206
|
- spec/helper/type_spec.rb
|
318
|
-
- spec/nixos/file_spec.rb
|
319
|
-
- spec/nixos/package_spec.rb
|
320
|
-
- spec/nixos/service_spec.rb
|
321
|
-
- spec/plamo/cgroup_spec.rb
|
322
|
-
- spec/plamo/command_spec.rb
|
323
|
-
- spec/plamo/cron_spec.rb
|
324
|
-
- spec/plamo/default_gateway_spec.rb
|
325
|
-
- spec/plamo/file_spec.rb
|
326
|
-
- spec/plamo/group_spec.rb
|
327
|
-
- spec/plamo/host_spec.rb
|
328
|
-
- spec/plamo/interface_spec.rb
|
329
|
-
- spec/plamo/ip6tables_spec.rb
|
330
|
-
- spec/plamo/iptables_spec.rb
|
331
|
-
- spec/plamo/kernel_module_spec.rb
|
332
|
-
- spec/plamo/linux_kernel_parameter_spec.rb
|
333
|
-
- spec/plamo/lxc_spec.rb
|
334
|
-
- spec/plamo/mail_alias_spec.rb
|
335
|
-
- spec/plamo/package_spec.rb
|
336
|
-
- spec/plamo/php_config_spec.rb
|
337
|
-
- spec/plamo/port_spec.rb
|
338
|
-
- spec/plamo/routing_table_spec.rb
|
339
|
-
- spec/plamo/selinux_spec.rb
|
340
|
-
- spec/plamo/service_spec.rb
|
341
|
-
- spec/plamo/user_spec.rb
|
342
|
-
- spec/plamo/zfs_spec.rb
|
343
|
-
- spec/redhat/cgroup_spec.rb
|
344
|
-
- spec/redhat/command_spec.rb
|
345
|
-
- spec/redhat/cron_spec.rb
|
346
|
-
- spec/redhat/default_gateway_spec.rb
|
347
|
-
- spec/redhat/file_spec.rb
|
348
|
-
- spec/redhat/group_spec.rb
|
349
|
-
- spec/redhat/host_spec.rb
|
350
|
-
- spec/redhat/interface_spec.rb
|
351
|
-
- spec/redhat/ip6tables_spec.rb
|
352
|
-
- spec/redhat/iptables_spec.rb
|
353
|
-
- spec/redhat/kernel_module_spec.rb
|
354
|
-
- spec/redhat/linux_kernel_parameter_spec.rb
|
355
|
-
- spec/redhat/lxc_spec.rb
|
356
|
-
- spec/redhat/mail_alias_spec.rb
|
357
|
-
- spec/redhat/package_spec.rb
|
358
|
-
- spec/redhat/php_config_spec.rb
|
359
|
-
- spec/redhat/port_spec.rb
|
360
|
-
- spec/redhat/process_spec.rb
|
361
|
-
- spec/redhat/routing_table_spec.rb
|
362
|
-
- spec/redhat/selinux_spec.rb
|
363
|
-
- spec/redhat/service_spec.rb
|
364
|
-
- spec/redhat/user_spec.rb
|
365
|
-
- spec/redhat/yumrepo_spec.rb
|
366
|
-
- spec/redhat/zfs_spec.rb
|
367
|
-
- spec/redhat7/service_spec.rb
|
368
|
-
- spec/smartos/mail_alias_spec.rb
|
369
|
-
- spec/smartos/process_spec.rb
|
370
|
-
- spec/solaris/command_spec.rb
|
371
|
-
- spec/solaris/cron_spec.rb
|
372
|
-
- spec/solaris/default_gateway_spec.rb
|
373
|
-
- spec/solaris/file_spec.rb
|
374
|
-
- spec/solaris/group_spec.rb
|
375
|
-
- spec/solaris/host_spec.rb
|
376
|
-
- spec/solaris/ipfilter_spec.rb
|
377
|
-
- spec/solaris/ipnat_spec.rb
|
378
|
-
- spec/solaris/mail_alias_spec.rb
|
379
|
-
- spec/solaris/package_spec.rb
|
380
|
-
- spec/solaris/php_config_spec.rb
|
381
|
-
- spec/solaris/port_spec.rb
|
382
|
-
- spec/solaris/process_spec.rb
|
383
|
-
- spec/solaris/routing_table_spec.rb
|
384
|
-
- spec/solaris/service_spec.rb
|
385
|
-
- spec/solaris/svcprop_spec.rb
|
386
|
-
- spec/solaris/user_spec.rb
|
387
|
-
- spec/solaris/zfs_spec.rb
|
388
|
-
- spec/solaris10/file_spec.rb
|
389
|
-
- spec/solaris10/group_spec.rb
|
390
|
-
- spec/solaris10/mail_alias_spec.rb
|
391
|
-
- spec/solaris10/package_spec.rb
|
392
|
-
- spec/solaris10/php_config_spec.rb
|
393
|
-
- spec/solaris10/user_spec.rb
|
394
|
-
- spec/solaris11/command_spec.rb
|
395
|
-
- spec/solaris11/cron_spec.rb
|
396
|
-
- spec/solaris11/default_gateway_spec.rb
|
397
|
-
- spec/solaris11/file_spec.rb
|
398
|
-
- spec/solaris11/group_spec.rb
|
399
|
-
- spec/solaris11/host_spec.rb
|
400
|
-
- spec/solaris11/ipfilter_spec.rb
|
401
|
-
- spec/solaris11/ipnat_spec.rb
|
402
|
-
- spec/solaris11/mail_alias_spec.rb
|
403
|
-
- spec/solaris11/package_spec.rb
|
404
|
-
- spec/solaris11/php_config_spec.rb
|
405
|
-
- spec/solaris11/port_spec.rb
|
406
|
-
- spec/solaris11/routing_table_spec.rb
|
407
|
-
- spec/solaris11/service_spec.rb
|
408
|
-
- spec/solaris11/svcprop_spec.rb
|
409
|
-
- spec/solaris11/user_spec.rb
|
410
|
-
- spec/solaris11/zfs_spec.rb
|
411
207
|
- spec/spec_helper.rb
|
412
|
-
- spec/support/powershell_command_runner.rb
|
413
|
-
- spec/ubuntu/ppa_spec.rb
|
414
208
|
- spec/unit/command_spec.rb
|
415
|
-
- spec/windows/command_spec.rb
|
416
|
-
- spec/windows/file_spec.rb
|
417
|
-
- spec/windows/group_spec.rb
|
418
|
-
- spec/windows/port_spec.rb
|
419
|
-
- spec/windows/service_spec.rb
|
420
|
-
- spec/windows/user_spec.rb
|
421
|
-
- spec/windows/windows_hot_fix_spec.rb
|
422
|
-
- spec/windows/windows_registry_key_spec.rb
|
423
209
|
- wercker.yml
|
424
210
|
homepage: http://serverspec.org/
|
425
211
|
licenses:
|
@@ -436,9 +222,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
436
222
|
version: '0'
|
437
223
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
438
224
|
requirements:
|
439
|
-
- - "
|
225
|
+
- - ">"
|
440
226
|
- !ruby/object:Gem::Version
|
441
|
-
version:
|
227
|
+
version: 1.3.1
|
442
228
|
requirements: []
|
443
229
|
rubyforge_project:
|
444
230
|
rubygems_version: 2.2.2
|
@@ -446,228 +232,7 @@ signing_key:
|
|
446
232
|
specification_version: 4
|
447
233
|
summary: RSpec tests for your servers configured by Puppet, Chef or anything else
|
448
234
|
test_files:
|
449
|
-
- spec/aix/command_spec.rb
|
450
|
-
- spec/aix/cron_spec.rb
|
451
|
-
- spec/aix/default_gateway_spec.rb
|
452
|
-
- spec/aix/file_spec.rb
|
453
|
-
- spec/aix/group_spec.rb
|
454
|
-
- spec/aix/host_spec.rb
|
455
|
-
- spec/aix/package_spec.rb
|
456
|
-
- spec/aix/php_config_spec.rb
|
457
|
-
- spec/aix/port_spec.rb
|
458
|
-
- spec/aix/process_spec.rb
|
459
|
-
- spec/aix/routing_table_spec.rb
|
460
|
-
- spec/aix/service_spec.rb
|
461
|
-
- spec/aix/user_spec.rb
|
462
|
-
- spec/arch/file_spec.rb
|
463
|
-
- spec/arch/package_spec.rb
|
464
|
-
- spec/arch/service_spec.rb
|
465
|
-
- spec/backend/cmd/configuration_spec.rb
|
466
|
-
- spec/backend/exec/configuration_spec.rb
|
467
|
-
- spec/backend/powershell/script_helper_spec.rb
|
468
|
-
- spec/backend/ssh/configuration_spec.rb
|
469
|
-
- spec/backend/winrm/configuration_spec.rb
|
470
|
-
- spec/darwin/command_spec.rb
|
471
|
-
- spec/darwin/cron_spec.rb
|
472
|
-
- spec/darwin/default_gateway_spec.rb
|
473
|
-
- spec/darwin/file_spec.rb
|
474
|
-
- spec/darwin/group_spec.rb
|
475
|
-
- spec/darwin/host_spec.rb
|
476
|
-
- spec/darwin/mail_alias_spec.rb
|
477
|
-
- spec/darwin/package_spec.rb
|
478
|
-
- spec/darwin/php_config_spec.rb
|
479
|
-
- spec/darwin/port_spec.rb
|
480
|
-
- spec/darwin/process_spec.rb
|
481
|
-
- spec/darwin/routing_table_spec.rb
|
482
|
-
- spec/darwin/service_spec.rb
|
483
|
-
- spec/darwin/user_spec.rb
|
484
|
-
- spec/debian/cgroup_spec.rb
|
485
|
-
- spec/debian/command_spec.rb
|
486
|
-
- spec/debian/cron_spec.rb
|
487
|
-
- spec/debian/default_gateway_spec.rb
|
488
|
-
- spec/debian/file_spec.rb
|
489
|
-
- spec/debian/group_spec.rb
|
490
|
-
- spec/debian/host_spec.rb
|
491
|
-
- spec/debian/interface_spec.rb
|
492
|
-
- spec/debian/ip6tables_spec.rb
|
493
|
-
- spec/debian/iptables_spec.rb
|
494
|
-
- spec/debian/kernel_module_spec.rb
|
495
|
-
- spec/debian/linux_kernel_parameter_spec.rb
|
496
|
-
- spec/debian/lxc_spec.rb
|
497
|
-
- spec/debian/mail_alias_spec.rb
|
498
|
-
- spec/debian/package_spec.rb
|
499
|
-
- spec/debian/php_config_spec.rb
|
500
|
-
- spec/debian/port_spec.rb
|
501
|
-
- spec/debian/process_spec.rb
|
502
|
-
- spec/debian/routing_table_spec.rb
|
503
|
-
- spec/debian/selinux_spec.rb
|
504
|
-
- spec/debian/service_spec.rb
|
505
|
-
- spec/debian/user_spec.rb
|
506
|
-
- spec/debian/zfs_spec.rb
|
507
|
-
- spec/fedora/cgroup_spec.rb
|
508
|
-
- spec/fedora/command_spec.rb
|
509
|
-
- spec/fedora/cron_spec.rb
|
510
|
-
- spec/fedora/default_gateway_spec.rb
|
511
|
-
- spec/fedora/file_spec.rb
|
512
|
-
- spec/fedora/group_spec.rb
|
513
|
-
- spec/fedora/host_spec.rb
|
514
|
-
- spec/fedora/interface_spec.rb
|
515
|
-
- spec/fedora/ip6tables_spec.rb
|
516
|
-
- spec/fedora/iptables_spec.rb
|
517
|
-
- spec/fedora/kernel_module_spec.rb
|
518
|
-
- spec/fedora/linux_kernel_parameter_spec.rb
|
519
|
-
- spec/fedora/lxc_spec.rb
|
520
|
-
- spec/fedora/mail_alias_spec.rb
|
521
|
-
- spec/fedora/package_spec.rb
|
522
|
-
- spec/fedora/php_config_spec.rb
|
523
|
-
- spec/fedora/port_spec.rb
|
524
|
-
- spec/fedora/process_spec.rb
|
525
|
-
- spec/fedora/routing_table_spec.rb
|
526
|
-
- spec/fedora/selinux_spec.rb
|
527
|
-
- spec/fedora/user_spec.rb
|
528
|
-
- spec/fedora/yumrepo_spec.rb
|
529
|
-
- spec/fedora/zfs_spec.rb
|
530
|
-
- spec/freebsd/command_spec.rb
|
531
|
-
- spec/freebsd/cron_spec.rb
|
532
|
-
- spec/freebsd/default_gateway_spec.rb
|
533
|
-
- spec/freebsd/file_spec.rb
|
534
|
-
- spec/freebsd/group_spec.rb
|
535
|
-
- spec/freebsd/host_spec.rb
|
536
|
-
- spec/freebsd/package_spec.rb
|
537
|
-
- spec/freebsd/php_config_spec.rb
|
538
|
-
- spec/freebsd/port_spec.rb
|
539
|
-
- spec/freebsd/process_spec.rb
|
540
|
-
- spec/freebsd/routing_table_spec.rb
|
541
|
-
- spec/freebsd/service_spec.rb
|
542
|
-
- spec/freebsd/user_spec.rb
|
543
|
-
- spec/freebsd10/package_spec.rb
|
544
|
-
- spec/gentoo/cgroup_spec.rb
|
545
|
-
- spec/gentoo/command_spec.rb
|
546
|
-
- spec/gentoo/cron_spec.rb
|
547
|
-
- spec/gentoo/default_gateway_spec.rb
|
548
|
-
- spec/gentoo/file_spec.rb
|
549
|
-
- spec/gentoo/group_spec.rb
|
550
|
-
- spec/gentoo/host_spec.rb
|
551
|
-
- spec/gentoo/interface_spec.rb
|
552
|
-
- spec/gentoo/ip6tables_spec.rb
|
553
|
-
- spec/gentoo/iptables_spec.rb
|
554
|
-
- spec/gentoo/kernel_module_spec.rb
|
555
|
-
- spec/gentoo/linux_kernel_parameter_spec.rb
|
556
|
-
- spec/gentoo/lxc_spec.rb
|
557
|
-
- spec/gentoo/mail_alias_spec.rb
|
558
|
-
- spec/gentoo/package_spec.rb
|
559
|
-
- spec/gentoo/php_config_spec.rb
|
560
|
-
- spec/gentoo/port_spec.rb
|
561
|
-
- spec/gentoo/process_spec.rb
|
562
|
-
- spec/gentoo/routing_table_spec.rb
|
563
|
-
- spec/gentoo/selinux_spec.rb
|
564
|
-
- spec/gentoo/service_spec.rb
|
565
|
-
- spec/gentoo/user_spec.rb
|
566
|
-
- spec/gentoo/zfs_spec.rb
|
567
235
|
- spec/helper/properties_spec.rb
|
568
236
|
- spec/helper/type_spec.rb
|
569
|
-
- spec/nixos/file_spec.rb
|
570
|
-
- spec/nixos/package_spec.rb
|
571
|
-
- spec/nixos/service_spec.rb
|
572
|
-
- spec/plamo/cgroup_spec.rb
|
573
|
-
- spec/plamo/command_spec.rb
|
574
|
-
- spec/plamo/cron_spec.rb
|
575
|
-
- spec/plamo/default_gateway_spec.rb
|
576
|
-
- spec/plamo/file_spec.rb
|
577
|
-
- spec/plamo/group_spec.rb
|
578
|
-
- spec/plamo/host_spec.rb
|
579
|
-
- spec/plamo/interface_spec.rb
|
580
|
-
- spec/plamo/ip6tables_spec.rb
|
581
|
-
- spec/plamo/iptables_spec.rb
|
582
|
-
- spec/plamo/kernel_module_spec.rb
|
583
|
-
- spec/plamo/linux_kernel_parameter_spec.rb
|
584
|
-
- spec/plamo/lxc_spec.rb
|
585
|
-
- spec/plamo/mail_alias_spec.rb
|
586
|
-
- spec/plamo/package_spec.rb
|
587
|
-
- spec/plamo/php_config_spec.rb
|
588
|
-
- spec/plamo/port_spec.rb
|
589
|
-
- spec/plamo/routing_table_spec.rb
|
590
|
-
- spec/plamo/selinux_spec.rb
|
591
|
-
- spec/plamo/service_spec.rb
|
592
|
-
- spec/plamo/user_spec.rb
|
593
|
-
- spec/plamo/zfs_spec.rb
|
594
|
-
- spec/redhat/cgroup_spec.rb
|
595
|
-
- spec/redhat/command_spec.rb
|
596
|
-
- spec/redhat/cron_spec.rb
|
597
|
-
- spec/redhat/default_gateway_spec.rb
|
598
|
-
- spec/redhat/file_spec.rb
|
599
|
-
- spec/redhat/group_spec.rb
|
600
|
-
- spec/redhat/host_spec.rb
|
601
|
-
- spec/redhat/interface_spec.rb
|
602
|
-
- spec/redhat/ip6tables_spec.rb
|
603
|
-
- spec/redhat/iptables_spec.rb
|
604
|
-
- spec/redhat/kernel_module_spec.rb
|
605
|
-
- spec/redhat/linux_kernel_parameter_spec.rb
|
606
|
-
- spec/redhat/lxc_spec.rb
|
607
|
-
- spec/redhat/mail_alias_spec.rb
|
608
|
-
- spec/redhat/package_spec.rb
|
609
|
-
- spec/redhat/php_config_spec.rb
|
610
|
-
- spec/redhat/port_spec.rb
|
611
|
-
- spec/redhat/process_spec.rb
|
612
|
-
- spec/redhat/routing_table_spec.rb
|
613
|
-
- spec/redhat/selinux_spec.rb
|
614
|
-
- spec/redhat/service_spec.rb
|
615
|
-
- spec/redhat/user_spec.rb
|
616
|
-
- spec/redhat/yumrepo_spec.rb
|
617
|
-
- spec/redhat/zfs_spec.rb
|
618
|
-
- spec/redhat7/service_spec.rb
|
619
|
-
- spec/smartos/mail_alias_spec.rb
|
620
|
-
- spec/smartos/process_spec.rb
|
621
|
-
- spec/solaris/command_spec.rb
|
622
|
-
- spec/solaris/cron_spec.rb
|
623
|
-
- spec/solaris/default_gateway_spec.rb
|
624
|
-
- spec/solaris/file_spec.rb
|
625
|
-
- spec/solaris/group_spec.rb
|
626
|
-
- spec/solaris/host_spec.rb
|
627
|
-
- spec/solaris/ipfilter_spec.rb
|
628
|
-
- spec/solaris/ipnat_spec.rb
|
629
|
-
- spec/solaris/mail_alias_spec.rb
|
630
|
-
- spec/solaris/package_spec.rb
|
631
|
-
- spec/solaris/php_config_spec.rb
|
632
|
-
- spec/solaris/port_spec.rb
|
633
|
-
- spec/solaris/process_spec.rb
|
634
|
-
- spec/solaris/routing_table_spec.rb
|
635
|
-
- spec/solaris/service_spec.rb
|
636
|
-
- spec/solaris/svcprop_spec.rb
|
637
|
-
- spec/solaris/user_spec.rb
|
638
|
-
- spec/solaris/zfs_spec.rb
|
639
|
-
- spec/solaris10/file_spec.rb
|
640
|
-
- spec/solaris10/group_spec.rb
|
641
|
-
- spec/solaris10/mail_alias_spec.rb
|
642
|
-
- spec/solaris10/package_spec.rb
|
643
|
-
- spec/solaris10/php_config_spec.rb
|
644
|
-
- spec/solaris10/user_spec.rb
|
645
|
-
- spec/solaris11/command_spec.rb
|
646
|
-
- spec/solaris11/cron_spec.rb
|
647
|
-
- spec/solaris11/default_gateway_spec.rb
|
648
|
-
- spec/solaris11/file_spec.rb
|
649
|
-
- spec/solaris11/group_spec.rb
|
650
|
-
- spec/solaris11/host_spec.rb
|
651
|
-
- spec/solaris11/ipfilter_spec.rb
|
652
|
-
- spec/solaris11/ipnat_spec.rb
|
653
|
-
- spec/solaris11/mail_alias_spec.rb
|
654
|
-
- spec/solaris11/package_spec.rb
|
655
|
-
- spec/solaris11/php_config_spec.rb
|
656
|
-
- spec/solaris11/port_spec.rb
|
657
|
-
- spec/solaris11/routing_table_spec.rb
|
658
|
-
- spec/solaris11/service_spec.rb
|
659
|
-
- spec/solaris11/svcprop_spec.rb
|
660
|
-
- spec/solaris11/user_spec.rb
|
661
|
-
- spec/solaris11/zfs_spec.rb
|
662
237
|
- spec/spec_helper.rb
|
663
|
-
- spec/support/powershell_command_runner.rb
|
664
|
-
- spec/ubuntu/ppa_spec.rb
|
665
238
|
- spec/unit/command_spec.rb
|
666
|
-
- spec/windows/command_spec.rb
|
667
|
-
- spec/windows/file_spec.rb
|
668
|
-
- spec/windows/group_spec.rb
|
669
|
-
- spec/windows/port_spec.rb
|
670
|
-
- spec/windows/service_spec.rb
|
671
|
-
- spec/windows/user_spec.rb
|
672
|
-
- spec/windows/windows_hot_fix_spec.rb
|
673
|
-
- spec/windows/windows_registry_key_spec.rb
|