serverspec 0.4.3 → 0.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ module Serverspec
3
3
  module Type
4
4
  types = %w(
5
5
  base service package port file cron command linux_kernel_parameter iptables host
6
- routing_table default_gateway
6
+ routing_table default_gateway selinux user group
7
7
  )
8
8
 
9
9
  types.each {|type| require "serverspec/type/#{type}" }
@@ -1,5 +1,9 @@
1
1
  RSpec::Matchers.define :be_disabled do
2
- match do |actual|
3
- backend.check_selinux(example, 'disabled')
2
+ match do |subject|
3
+ if subject.respond_to?(:disabled?)
4
+ subject.disabled?
5
+ else
6
+ backend.check_selinux(example, 'disabled')
7
+ end
4
8
  end
5
9
  end
@@ -1,5 +1,10 @@
1
1
  RSpec::Matchers.define :be_enforcing do
2
2
  match do |actual|
3
- backend.check_selinux(example, 'enforcing')
3
+ if subject.respond_to?(:enforcing?)
4
+ subject.enforcing?
5
+ else
6
+ backend.check_selinux(example, 'enforcing')
7
+ end
4
8
  end
5
9
  end
10
+
@@ -1,5 +1,9 @@
1
1
  RSpec::Matchers.define :be_permissive do
2
2
  match do |actual|
3
- backend.check_selinux(example, 'permissive')
3
+ if subject.respond_to?(:permissive?)
4
+ subject.permissive?
5
+ else
6
+ backend.check_selinux(example, 'permissive')
7
+ end
4
8
  end
5
9
  end
@@ -1,5 +1,10 @@
1
1
  RSpec::Matchers.define :belong_to_group do |group|
2
2
  match do |user|
3
- backend.check_belonging_group(example, user, group)
3
+ if user.respond_to?(:belongs_to_group?)
4
+ user.belongs_to_group?(group)
5
+ else
6
+ backend.check_belonging_group(example, user, group)
7
+ end
4
8
  end
5
9
  end
10
+
@@ -1,5 +1,9 @@
1
1
  RSpec::Matchers.define :have_authorized_key do |key|
2
2
  match do |user|
3
- backend.check_authorized_key(example, user, key)
3
+ if user.respond_to?(:has_authorized_key?)
4
+ user.has_authorized_key?(key)
5
+ else
6
+ backend.check_authorized_key(example, user, key)
7
+ end
4
8
  end
5
9
  end
@@ -1,6 +1,10 @@
1
1
  RSpec::Matchers.define :have_gid do |gid|
2
2
  match do |group|
3
- backend.check_gid(example, group, gid)
3
+ if group.respond_to?(:has_gid?)
4
+ group.has_gid?(gid)
5
+ else
6
+ backend.check_gid(example, group, gid)
7
+ end
4
8
  end
5
9
  end
6
10
 
@@ -1,6 +1,10 @@
1
1
  RSpec::Matchers.define :have_home_directory do |path_to_home|
2
2
  match do |user|
3
- backend.check_home_directory(example, user, path_to_home)
3
+ if user.respond_to?(:has_home_directory?)
4
+ user.has_home_directory?(path_to_home)
5
+ else
6
+ backend.check_home_directory(example, user, path_to_home)
7
+ end
4
8
  end
5
9
  end
6
10
 
@@ -1,6 +1,10 @@
1
1
  RSpec::Matchers.define :have_login_shell do |path_to_shell|
2
2
  match do |user|
3
- backend.check_login_shell(example, user, path_to_shell)
3
+ if user.respond_to?(:has_login_shell?)
4
+ user.has_login_shell?(path_to_shell)
5
+ else
6
+ backend.check_login_shell(example, user, path_to_shell)
7
+ end
4
8
  end
5
9
  end
6
10
 
@@ -1,6 +1,10 @@
1
1
  RSpec::Matchers.define :have_uid do |uid|
2
2
  match do |user|
3
- backend.check_uid(example, user, uid)
3
+ if user.respond_to?(:has_uid?)
4
+ user.has_uid?(uid)
5
+ else
6
+ backend.check_uid(example, user, uid)
7
+ end
4
8
  end
5
9
  end
6
10
 
@@ -0,0 +1,13 @@
1
+ module Serverspec
2
+ module Type
3
+ class Group < Base
4
+ def exists?
5
+ backend.check_group(nil, @name)
6
+ end
7
+
8
+ def has_gid?(gid)
9
+ backend.check_gid(nil, @name, gid)
10
+ end
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,21 @@
1
+ module Serverspec
2
+ module Type
3
+ class Selinux < Base
4
+ def disabled?
5
+ backend.check_selinux(nil, 'disabled')
6
+ end
7
+
8
+ def enforcing?
9
+ backend.check_selinux(nil, 'enforcing')
10
+ end
11
+
12
+ def permissive?
13
+ backend.check_selinux(nil, 'permissive')
14
+ end
15
+
16
+ def to_s
17
+ 'SELinux'
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,29 @@
1
+ module Serverspec
2
+ module Type
3
+ class User < Base
4
+ def exists?
5
+ backend.check_user(nil, @name)
6
+ end
7
+
8
+ def belongs_to_group?(group)
9
+ backend.check_belonging_group(nil, @name, group)
10
+ end
11
+
12
+ def has_uid?(uid)
13
+ backend.check_uid(nil, @name, uid)
14
+ end
15
+
16
+ def has_home_directory?(path)
17
+ backend.check_home_directory(nil, @name, path)
18
+ end
19
+
20
+ def has_login_shell?(shell)
21
+ backend.check_login_shell(nil, @name, shell)
22
+ end
23
+
24
+ def has_authorized_key?(key)
25
+ backend.check_authorized_key(nil, @name, key)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,3 +1,3 @@
1
1
  module Serverspec
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Darwin
4
+
5
+ describe 'Serverspec user matchers of Darwin family' do
6
+ it_behaves_like 'support group exist matcher', 'root'
7
+ it_behaves_like 'support group have_gid matcher', 'root', 0
8
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Darwin
4
+
5
+ describe 'Serverspec user matchers of Darwin family' do
6
+ it_behaves_like 'support user exist matcher', 'root'
7
+ it_behaves_like 'support user belong_to_group matcher', 'root', 'root'
8
+ it_behaves_like 'support user have_uid matcher', 'root', 0
9
+ it_behaves_like 'support user have_login_shell matcher', 'root', '/bin/bash'
10
+ it_behaves_like 'support user have_home_directory matcher', 'root', '/root'
11
+ it_behaves_like 'support user have_authorized_key matcher', 'root', 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local'
12
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Debian
4
+
5
+ describe 'Serverspec user matchers of Debian family' do
6
+ it_behaves_like 'support group exist matcher', 'root'
7
+ it_behaves_like 'support group have_gid matcher', 'root', 0
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Debian
4
+
5
+ describe 'Serverspec selinux matchers of Debian family' do
6
+ it_behaves_like 'support selinux be_enforcing matcher'
7
+ it_behaves_like 'support selinux be_permissive matcher'
8
+ it_behaves_like 'support selinux be_disabled matcher'
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Debian
4
+
5
+ describe 'Serverspec user matchers of Debian family' do
6
+ it_behaves_like 'support user exist matcher', 'root'
7
+ it_behaves_like 'support user belong_to_group matcher', 'root', 'root'
8
+ it_behaves_like 'support user have_uid matcher', 'root', 0
9
+ it_behaves_like 'support user have_login_shell matcher', 'root', '/bin/bash'
10
+ it_behaves_like 'support user have_home_directory matcher', 'root', '/root'
11
+ it_behaves_like 'support user have_authorized_key matcher', 'root', 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local'
12
+ end
@@ -1,5 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
+ include Serverspec::Helper::Gentoo
4
+
3
5
  describe 'check_enabled' do
4
6
  subject { commands.check_enabled('httpd') }
5
7
  it { should eq "/sbin/rc-update show | grep -- \\^\\\\s\\*httpd\\\\s\\*\\|\\\\s\\*\\\\\\(boot\\\\\\|default\\\\\\)" }
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Gentoo
4
+
5
+ describe 'Serverspec user matchers of Gentoo family' do
6
+ it_behaves_like 'support group exist matcher', 'root'
7
+ it_behaves_like 'support group have_gid matcher', 'root', 0
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Gentoo
4
+
5
+ describe 'Serverspec selinux matchers of Gentoo family' do
6
+ it_behaves_like 'support selinux be_enforcing matcher'
7
+ it_behaves_like 'support selinux be_permissive matcher'
8
+ it_behaves_like 'support selinux be_disabled matcher'
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Gentoo
4
+
5
+ describe 'Serverspec user matchers of Gentoo family' do
6
+ it_behaves_like 'support user exist matcher', 'root'
7
+ it_behaves_like 'support user belong_to_group matcher', 'root', 'root'
8
+ it_behaves_like 'support user have_uid matcher', 'root', 0
9
+ it_behaves_like 'support user have_login_shell matcher', 'root', '/bin/bash'
10
+ it_behaves_like 'support user have_home_directory matcher', 'root', '/root'
11
+ it_behaves_like 'support user have_authorized_key matcher', 'root', 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local'
12
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::RedHat
4
+
5
+ describe 'Serverspec user matchers of Red Hat family' do
6
+ it_behaves_like 'support group exist matcher', 'root'
7
+ it_behaves_like 'support group have_gid matcher', 'root', 0
8
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::RedHat
4
+
5
+ describe 'Serverspec selinux matchers of Red Hat family' do
6
+ it_behaves_like 'support selinux be_enforcing matcher'
7
+ it_behaves_like 'support selinux be_permissive matcher'
8
+ it_behaves_like 'support selinux be_disabled matcher'
9
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::RedHat
4
+
5
+ describe 'Serverspec user matchers of Red Hat family' do
6
+ it_behaves_like 'support user exist matcher', 'root'
7
+ it_behaves_like 'support user belong_to_group matcher', 'root', 'root'
8
+ it_behaves_like 'support user have_uid matcher', 'root', 0
9
+ it_behaves_like 'support user have_login_shell matcher', 'root', '/bin/bash'
10
+ it_behaves_like 'support user have_home_directory matcher', 'root', '/root'
11
+ it_behaves_like 'support user have_authorized_key matcher', 'root', 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local'
12
+ end
@@ -0,0 +1,8 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Solaris
4
+
5
+ describe 'Serverspec user matchers of Solaris family' do
6
+ it_behaves_like 'support group exist matcher', 'root'
7
+ it_behaves_like 'support group have_gid matcher', 'root', 0
8
+ end
@@ -0,0 +1,12 @@
1
+ require 'spec_helper'
2
+
3
+ include Serverspec::Helper::Solaris
4
+
5
+ describe 'Serverspec user matchers of Solaris family' do
6
+ it_behaves_like 'support user exist matcher', 'root'
7
+ it_behaves_like 'support user belong_to_group matcher', 'root', 'root'
8
+ it_behaves_like 'support user have_uid matcher', 'root', 0
9
+ it_behaves_like 'support user have_login_shell matcher', 'root', '/bin/bash'
10
+ it_behaves_like 'support user have_home_directory matcher', 'root', '/root'
11
+ it_behaves_like 'support user have_authorized_key matcher', 'root', 'ssh-rsa ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGH foo@bar.local'
12
+ end
@@ -0,0 +1,71 @@
1
+ shared_examples_for 'support user exist matcher' do |name|
2
+ describe 'user exist' do
3
+ describe user(name) do
4
+ it { should be_user }
5
+ end
6
+
7
+ describe user('invalid-user') do
8
+ it { should_not be_user }
9
+ end
10
+ end
11
+ end
12
+
13
+ shared_examples_for 'support user belong_to_group matcher' do |name, group|
14
+ describe 'belong_to_group' do
15
+ describe user(name) do
16
+ it { should belong_to_group group }
17
+ end
18
+
19
+ describe user(name) do
20
+ it { should_not belong_to_group 'invalid-group' }
21
+ end
22
+ end
23
+ end
24
+
25
+ shared_examples_for 'support user have_uid matcher' do |name, uid|
26
+ describe 'have_uid' do
27
+ describe user(name) do
28
+ it { should have_uid uid }
29
+ end
30
+
31
+ describe user(name) do
32
+ it { should_not have_uid 'invalid-uid' }
33
+ end
34
+ end
35
+ end
36
+
37
+ shared_examples_for 'support user have_login_shell matcher' do |name, path_to_shell|
38
+ describe 'have_login_shell' do
39
+ describe user(name) do
40
+ it { should have_login_shell path_to_shell }
41
+ end
42
+
43
+ describe user(name) do
44
+ it { should_not have_login_shell 'invalid-login-shell' }
45
+ end
46
+ end
47
+ end
48
+
49
+ shared_examples_for 'support user have_home_directory matcher' do |name, path_to_home|
50
+ describe 'have_home_directory' do
51
+ describe user(name) do
52
+ it { should have_home_directory path_to_home }
53
+ end
54
+
55
+ describe user(name) do
56
+ it { should_not have_home_directory 'invalid-home-directory' }
57
+ end
58
+ end
59
+ end
60
+
61
+ shared_examples_for 'support user have_authorized_key matcher' do |name, key|
62
+ describe 'have_authorized_key' do
63
+ describe user(name) do
64
+ it { should have_authorized_key key }
65
+ end
66
+
67
+ describe user(name) do
68
+ it { should_not have_authorized_key 'invalid-publickey' }
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,17 @@
1
+ shared_examples_for 'support selinux be_enforcing matcher' do
2
+ describe selinux do
3
+ it { should be_enforcing }
4
+ end
5
+ end
6
+
7
+ shared_examples_for 'support selinux be_permissive matcher' do
8
+ describe selinux do
9
+ it { should be_permissive }
10
+ end
11
+ end
12
+
13
+ shared_examples_for 'support selinux be_disabled matcher' do
14
+ describe selinux do
15
+ it { should be_disabled }
16
+ end
17
+ end
@@ -0,0 +1,23 @@
1
+ shared_examples_for 'support group exist matcher' do |name|
2
+ describe 'group exist' do
3
+ describe group(name) do
4
+ it { should be_group }
5
+ end
6
+
7
+ describe group('invalid-group') do
8
+ it { should_not be_group }
9
+ end
10
+ end
11
+ end
12
+
13
+ shared_examples_for 'support group have_gid matcher' do |name, gid|
14
+ describe 'have_gid' do
15
+ describe group(name) do
16
+ it { should have_gid gid }
17
+ end
18
+
19
+ describe group(name) do
20
+ it { should_not have_gid 'invalid-gid' }
21
+ end
22
+ end
23
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serverspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.3
4
+ version: 0.4.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -218,13 +218,16 @@ files:
218
218
  - lib/serverspec/type/cron.rb
219
219
  - lib/serverspec/type/default_gateway.rb
220
220
  - lib/serverspec/type/file.rb
221
+ - lib/serverspec/type/group.rb
221
222
  - lib/serverspec/type/host.rb
222
223
  - lib/serverspec/type/iptables.rb
223
224
  - lib/serverspec/type/linux_kernel_parameter.rb
224
225
  - lib/serverspec/type/package.rb
225
226
  - lib/serverspec/type/port.rb
226
227
  - lib/serverspec/type/routing_table.rb
228
+ - lib/serverspec/type/selinux.rb
227
229
  - lib/serverspec/type/service.rb
230
+ - lib/serverspec/type/user.rb
228
231
  - lib/serverspec/version.rb
229
232
  - serverspec.gemspec
230
233
  - spec/darwin/command_spec.rb
@@ -232,17 +235,20 @@ files:
232
235
  - spec/darwin/cron_spec.rb
233
236
  - spec/darwin/default_gateway_spec.rb
234
237
  - spec/darwin/file_spec.rb
238
+ - spec/darwin/group_spec.rb
235
239
  - spec/darwin/host_spec.rb
236
240
  - spec/darwin/matchers_spec.rb
237
241
  - spec/darwin/package_spec.rb
238
242
  - spec/darwin/port_spec.rb
239
243
  - spec/darwin/routing_table_spec.rb
240
244
  - spec/darwin/service_spec.rb
245
+ - spec/darwin/user_spec.rb
241
246
  - spec/debian/command_spec.rb
242
247
  - spec/debian/commands_spec.rb
243
248
  - spec/debian/cron_spec.rb
244
249
  - spec/debian/default_gateway_spec.rb
245
250
  - spec/debian/file_spec.rb
251
+ - spec/debian/group_spec.rb
246
252
  - spec/debian/host_spec.rb
247
253
  - spec/debian/iptables_spec.rb
248
254
  - spec/debian/linux_kernel_parameter_spec.rb
@@ -250,25 +256,31 @@ files:
250
256
  - spec/debian/package_spec.rb
251
257
  - spec/debian/port_spec.rb
252
258
  - spec/debian/routing_table_spec.rb
259
+ - spec/debian/selinux_spec.rb
253
260
  - spec/debian/service_spec.rb
261
+ - spec/debian/user_spec.rb
254
262
  - spec/gentoo/command_spec.rb
255
263
  - spec/gentoo/commands_spec.rb
256
264
  - spec/gentoo/cron_spec.rb
257
265
  - spec/gentoo/default_gateway_spec.rb
258
266
  - spec/gentoo/file_spec.rb
267
+ - spec/gentoo/group_spec.rb
259
268
  - spec/gentoo/host_spec.rb
260
269
  - spec/gentoo/iptables_spec.rb
261
270
  - spec/gentoo/linux_kernel_parameter_spec.rb
262
271
  - spec/gentoo/matchers_spec.rb
263
272
  - spec/gentoo/package_spec.rb
264
273
  - spec/gentoo/port_spec.rb
274
+ - spec/gentoo/selinux_spec.rb
265
275
  - spec/gentoo/service_spec.rb
276
+ - spec/gentoo/user_spec.rb
266
277
  - spec/helpers/attributes_spec.rb
267
278
  - spec/redhat/command_spec.rb
268
279
  - spec/redhat/commands_spec.rb
269
280
  - spec/redhat/cron_spec.rb
270
281
  - spec/redhat/default_gateway_spec.rb
271
282
  - spec/redhat/file_spec.rb
283
+ - spec/redhat/group_spec.rb
272
284
  - spec/redhat/host_spec.rb
273
285
  - spec/redhat/iptables_spec.rb
274
286
  - spec/redhat/linux_kernel_parameter_spec.rb
@@ -276,23 +288,28 @@ files:
276
288
  - spec/redhat/package_spec.rb
277
289
  - spec/redhat/port_spec.rb
278
290
  - spec/redhat/routing_table_spec.rb
291
+ - spec/redhat/selinux_spec.rb
279
292
  - spec/redhat/service_spec.rb
293
+ - spec/redhat/user_spec.rb
280
294
  - spec/solaris/command_spec.rb
281
295
  - spec/solaris/commands_spec.rb
282
296
  - spec/solaris/cron_spec.rb
283
297
  - spec/solaris/default_gateway_spec.rb
284
298
  - spec/solaris/file_spec.rb
299
+ - spec/solaris/group_spec.rb
285
300
  - spec/solaris/host_spec.rb
286
301
  - spec/solaris/matchers_spec.rb
287
302
  - spec/solaris/package_spec.rb
288
303
  - spec/solaris/port_spec.rb
289
304
  - spec/solaris/routing_table_spec.rb
290
305
  - spec/solaris/service_spec.rb
306
+ - spec/solaris/user_spec.rb
291
307
  - spec/spec_helper.rb
292
308
  - spec/support/shared_command_examples.rb
293
309
  - spec/support/shared_cron_examples.rb
294
310
  - spec/support/shared_default_gateway_examples.rb
295
311
  - spec/support/shared_file_examples.rb
312
+ - spec/support/shared_group_examples.rb
296
313
  - spec/support/shared_host_examples.rb
297
314
  - spec/support/shared_iptables_examples.rb
298
315
  - spec/support/shared_linux_kernel_parameter_examples.rb
@@ -300,7 +317,9 @@ files:
300
317
  - spec/support/shared_package_examples.rb
301
318
  - spec/support/shared_port_examples.rb
302
319
  - spec/support/shared_routing_table_examples.rb
320
+ - spec/support/shared_selinux_examples.rb
303
321
  - spec/support/shared_service_examples.rb
322
+ - spec/support/shared_user_examples.rb
304
323
  homepage: http://serverspec.org/
305
324
  licenses:
306
325
  - MIT
@@ -332,17 +351,20 @@ test_files:
332
351
  - spec/darwin/cron_spec.rb
333
352
  - spec/darwin/default_gateway_spec.rb
334
353
  - spec/darwin/file_spec.rb
354
+ - spec/darwin/group_spec.rb
335
355
  - spec/darwin/host_spec.rb
336
356
  - spec/darwin/matchers_spec.rb
337
357
  - spec/darwin/package_spec.rb
338
358
  - spec/darwin/port_spec.rb
339
359
  - spec/darwin/routing_table_spec.rb
340
360
  - spec/darwin/service_spec.rb
361
+ - spec/darwin/user_spec.rb
341
362
  - spec/debian/command_spec.rb
342
363
  - spec/debian/commands_spec.rb
343
364
  - spec/debian/cron_spec.rb
344
365
  - spec/debian/default_gateway_spec.rb
345
366
  - spec/debian/file_spec.rb
367
+ - spec/debian/group_spec.rb
346
368
  - spec/debian/host_spec.rb
347
369
  - spec/debian/iptables_spec.rb
348
370
  - spec/debian/linux_kernel_parameter_spec.rb
@@ -350,25 +372,31 @@ test_files:
350
372
  - spec/debian/package_spec.rb
351
373
  - spec/debian/port_spec.rb
352
374
  - spec/debian/routing_table_spec.rb
375
+ - spec/debian/selinux_spec.rb
353
376
  - spec/debian/service_spec.rb
377
+ - spec/debian/user_spec.rb
354
378
  - spec/gentoo/command_spec.rb
355
379
  - spec/gentoo/commands_spec.rb
356
380
  - spec/gentoo/cron_spec.rb
357
381
  - spec/gentoo/default_gateway_spec.rb
358
382
  - spec/gentoo/file_spec.rb
383
+ - spec/gentoo/group_spec.rb
359
384
  - spec/gentoo/host_spec.rb
360
385
  - spec/gentoo/iptables_spec.rb
361
386
  - spec/gentoo/linux_kernel_parameter_spec.rb
362
387
  - spec/gentoo/matchers_spec.rb
363
388
  - spec/gentoo/package_spec.rb
364
389
  - spec/gentoo/port_spec.rb
390
+ - spec/gentoo/selinux_spec.rb
365
391
  - spec/gentoo/service_spec.rb
392
+ - spec/gentoo/user_spec.rb
366
393
  - spec/helpers/attributes_spec.rb
367
394
  - spec/redhat/command_spec.rb
368
395
  - spec/redhat/commands_spec.rb
369
396
  - spec/redhat/cron_spec.rb
370
397
  - spec/redhat/default_gateway_spec.rb
371
398
  - spec/redhat/file_spec.rb
399
+ - spec/redhat/group_spec.rb
372
400
  - spec/redhat/host_spec.rb
373
401
  - spec/redhat/iptables_spec.rb
374
402
  - spec/redhat/linux_kernel_parameter_spec.rb
@@ -376,23 +404,28 @@ test_files:
376
404
  - spec/redhat/package_spec.rb
377
405
  - spec/redhat/port_spec.rb
378
406
  - spec/redhat/routing_table_spec.rb
407
+ - spec/redhat/selinux_spec.rb
379
408
  - spec/redhat/service_spec.rb
409
+ - spec/redhat/user_spec.rb
380
410
  - spec/solaris/command_spec.rb
381
411
  - spec/solaris/commands_spec.rb
382
412
  - spec/solaris/cron_spec.rb
383
413
  - spec/solaris/default_gateway_spec.rb
384
414
  - spec/solaris/file_spec.rb
415
+ - spec/solaris/group_spec.rb
385
416
  - spec/solaris/host_spec.rb
386
417
  - spec/solaris/matchers_spec.rb
387
418
  - spec/solaris/package_spec.rb
388
419
  - spec/solaris/port_spec.rb
389
420
  - spec/solaris/routing_table_spec.rb
390
421
  - spec/solaris/service_spec.rb
422
+ - spec/solaris/user_spec.rb
391
423
  - spec/spec_helper.rb
392
424
  - spec/support/shared_command_examples.rb
393
425
  - spec/support/shared_cron_examples.rb
394
426
  - spec/support/shared_default_gateway_examples.rb
395
427
  - spec/support/shared_file_examples.rb
428
+ - spec/support/shared_group_examples.rb
396
429
  - spec/support/shared_host_examples.rb
397
430
  - spec/support/shared_iptables_examples.rb
398
431
  - spec/support/shared_linux_kernel_parameter_examples.rb
@@ -400,4 +433,6 @@ test_files:
400
433
  - spec/support/shared_package_examples.rb
401
434
  - spec/support/shared_port_examples.rb
402
435
  - spec/support/shared_routing_table_examples.rb
436
+ - spec/support/shared_selinux_examples.rb
403
437
  - spec/support/shared_service_examples.rb
438
+ - spec/support/shared_user_examples.rb