inspec 0.9.10 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +22 -2
  3. data/Gemfile +1 -0
  4. data/README.md +2 -1
  5. data/bin/inspec +4 -1
  6. data/docs/dsl_resource.rst +2 -2
  7. data/docs/profiles.rst +5 -3
  8. data/examples/profile/README.md +1 -1
  9. data/inspec.gemspec +1 -1
  10. data/lib/inspec/version.rb +1 -1
  11. data/lib/resources/etc_group.rb +1 -1
  12. data/lib/resources/file.rb +5 -1
  13. data/lib/resources/package.rb +63 -9
  14. data/lib/resources/port.rb +47 -7
  15. data/lib/resources/service.rb +53 -15
  16. data/lib/resources/user.rb +42 -21
  17. data/lib/utils/parser.rb +85 -0
  18. data/test/helper.rb +8 -0
  19. data/test/integration/.kitchen.chef.yml +29 -0
  20. data/test/integration/.kitchen.ec2.yml +10 -4
  21. data/test/integration/.kitchen.shell.yml +19 -0
  22. data/test/integration/.kitchen/default-chef-solaris-1011.yml +6 -0
  23. data/test/integration/.kitchen/default-chef-windows-server-2008r2-standard.yml +7 -0
  24. data/test/integration/.kitchen/default-chef-windows-server-2012r2-standard.yml +7 -0
  25. data/test/integration/.kitchen/default-chris-rock-omnios-r151014.yml +6 -0
  26. data/test/integration/.kitchen/default-debian-81.yml +6 -0
  27. data/test/integration/.kitchen/default-omniti-omnios-r151014.yml +1 -0
  28. data/test/integration/.kitchen/default-windows-2008.yml +5 -0
  29. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  30. data/test/integration/.kitchen/kitchen-vagrant/{kitchen-integration-default-fedora-22 → kitchen-integration-default-chef-solaris-1011}/.vagrant/machines/default/virtualbox/creator_uid +0 -0
  31. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/id +1 -0
  32. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  33. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/private_key +27 -0
  34. data/test/integration/.kitchen/kitchen-vagrant/{kitchen-integration-default-fedora-22 → kitchen-integration-default-chef-solaris-1011}/.vagrant/machines/default/virtualbox/synced_folders +0 -0
  35. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/Vagrantfile +8 -0
  36. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  37. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  38. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/id +1 -0
  39. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  40. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  41. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/Vagrantfile +7 -0
  42. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  43. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  44. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/id +1 -0
  45. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  46. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  47. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/Vagrantfile +8 -0
  48. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  49. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  50. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/id +1 -0
  51. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  52. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/private_key +27 -0
  53. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  54. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/Vagrantfile +8 -0
  55. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  56. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  57. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id +1 -0
  58. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  59. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key +27 -0
  60. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  61. data/test/integration/.kitchen/kitchen-vagrant/{kitchen-integration-default-fedora-22 → kitchen-integration-default-debian-81}/Vagrantfile +3 -3
  62. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  63. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  64. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/id +1 -0
  65. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  66. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/private_key +27 -0
  67. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/Vagrantfile +8 -0
  68. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +1 -1
  69. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +1 -1
  70. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +1 -1
  71. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +25 -25
  72. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +1 -1
  73. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +1 -1
  74. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +1 -1
  75. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +25 -25
  76. data/test/integration/.kitchen/logs/default-aws-linux.log +3 -0
  77. data/test/integration/.kitchen/logs/default-centos-511-i386.log +0 -2
  78. data/test/integration/.kitchen/logs/default-centos-511.log +0 -2
  79. data/test/integration/.kitchen/logs/default-centos-67-i386.log +0 -2
  80. data/test/integration/.kitchen/logs/default-centos-67.log +0 -2
  81. data/test/integration/.kitchen/logs/default-centos-7.log +3 -0
  82. data/test/integration/.kitchen/logs/default-centos-71.log +0 -2
  83. data/test/integration/.kitchen/logs/default-chef-solaris-1011.log +0 -0
  84. data/test/integration/.kitchen/logs/default-chef-windows-server-2008r2-standard.log +0 -0
  85. data/test/integration/.kitchen/logs/default-chef-windows-server-2012r2-standard.log +0 -0
  86. data/test/integration/.kitchen/logs/default-chris-rock-omnios-r151014.log +23 -0
  87. data/test/integration/.kitchen/logs/default-debian-6010-i386.log +0 -2
  88. data/test/integration/.kitchen/logs/default-debian-6010.log +0 -2
  89. data/test/integration/.kitchen/logs/default-debian-78-i386.log +0 -2
  90. data/test/integration/.kitchen/logs/default-debian-78.log +0 -2
  91. data/test/integration/.kitchen/logs/default-debian-8.log +3 -0
  92. data/test/integration/.kitchen/logs/default-debian-81-i386.log +0 -2
  93. data/test/integration/.kitchen/logs/default-debian-81.log +240 -2
  94. data/test/integration/.kitchen/logs/default-dusank-oi-server.log +0 -0
  95. data/test/integration/.kitchen/logs/default-fedora-21-i386.log +0 -2
  96. data/test/integration/.kitchen/logs/default-fedora-21.log +0 -2
  97. data/test/integration/.kitchen/logs/default-fedora-22.log +3 -0
  98. data/test/integration/.kitchen/logs/default-freebsd-102.log +0 -2
  99. data/test/integration/.kitchen/logs/default-freebsd-93.log +0 -2
  100. data/test/integration/.kitchen/logs/default-livinginthepast-smartos-base64.log +0 -0
  101. data/test/integration/.kitchen/logs/default-mint-172-cinnamon.log +0 -2
  102. data/test/integration/.kitchen/logs/default-omniti-omnios-r151014.log +0 -0
  103. data/test/integration/.kitchen/logs/default-opensuse-132-i386.log +0 -2
  104. data/test/integration/.kitchen/logs/default-opensuse-132-x86-64.log +0 -2
  105. data/test/integration/.kitchen/logs/default-redhat-65.log +3 -0
  106. data/test/integration/.kitchen/logs/default-redhat-71.log +3 -0
  107. data/test/integration/.kitchen/logs/default-suse-11sp3.log +3 -0
  108. data/test/integration/.kitchen/logs/default-suse-12.log +3 -0
  109. data/test/integration/.kitchen/logs/default-ubuntu-1004-i386.log +0 -2
  110. data/test/integration/.kitchen/logs/default-ubuntu-1004.log +0 -2
  111. data/test/integration/.kitchen/logs/default-ubuntu-1204-i386.log +0 -2
  112. data/test/integration/.kitchen/logs/default-ubuntu-1204.log +3 -0
  113. data/test/integration/.kitchen/logs/default-ubuntu-1404-i386.log +0 -2
  114. data/test/integration/.kitchen/logs/default-ubuntu-1404.log +3 -0
  115. data/test/integration/.kitchen/logs/default-ubuntu-1510.log +3 -0
  116. data/test/integration/.kitchen/logs/default-windows-2012r2.log +2 -41
  117. data/test/integration/.kitchen/logs/default-winrm.log +0 -0
  118. data/test/integration/.kitchen/logs/kitchen.log +14 -0
  119. data/test/integration/bootstrap.sh +3 -0
  120. data/test/integration/cookbooks/os_prepare/recipes/file.rb +2 -0
  121. data/test/integration/cookbooks/os_prepare/recipes/json_yaml_csv_ini.rb +2 -0
  122. data/test/integration/cookbooks/os_prepare/recipes/mount.rb +24 -20
  123. data/test/integration/cookbooks/os_prepare/templates/default/sv-default-svlog-run.erb +1 -2
  124. data/test/integration/test/integration/default/_debug_spec.rb +1 -1
  125. data/test/integration/test/integration/default/compare_matcher_spec.rb +15 -13
  126. data/test/integration/test/integration/default/etc_group_spec.rb +9 -8
  127. data/test/integration/test/integration/default/file_spec.rb +14 -4
  128. data/test/integration/test/integration/default/group_spec.rb +17 -7
  129. data/test/integration/test/integration/default/mount_spec.rb +9 -7
  130. data/test/integration/test/integration/default/package_spec.rb +16 -0
  131. data/test/integration/test/integration/default/port_spec.rb +8 -2
  132. data/test/integration/test/integration/default/service_spec.rb +4 -1
  133. data/test/integration/test/integration/default/user_spec.rb +37 -14
  134. data/test/unit/mock/cmd/pkg-info-system-file-system-zfs +8 -0
  135. data/test/unit/mock/cmd/pkginfo-l-SUNWzfsr +7 -0
  136. data/test/unit/mock/cmd/s11-netstat-an-finet-finet6 +32 -0
  137. data/test/unit/resources/file_test.rb +1 -0
  138. data/test/unit/resources/package_test.rb +18 -0
  139. data/test/unit/resources/port_test.rb +10 -0
  140. data/test/unit/utils/passwd_parser_test.rb +2 -0
  141. data/test/unit/utils/solaris_netstat_parser.rb +124 -0
  142. metadata +127 -42
  143. data/lib/extras/compliance/README.md +0 -15
  144. data/lib/extras/compliance/compliance.rb +0 -245
  145. data/test/integration/.kitchen/default-aws-linux.yml +0 -4
  146. data/test/integration/.kitchen/default-centos-7.yml +0 -4
  147. data/test/integration/.kitchen/default-debian-8.yml +0 -4
  148. data/test/integration/.kitchen/default-fedora-22.yml +0 -4
  149. data/test/integration/.kitchen/default-redhat-65.yml +0 -4
  150. data/test/integration/.kitchen/default-redhat-71.yml +0 -4
  151. data/test/integration/.kitchen/default-suse-11sp3.yml +0 -4
  152. data/test/integration/.kitchen/default-suse-12.yml +0 -4
  153. data/test/integration/.kitchen/default-ubuntu-1204.yml +0 -3
  154. data/test/integration/.kitchen/default-ubuntu-1404.yml +0 -4
  155. data/test/integration/.kitchen/default-windows-2012r2.yml +0 -2
  156. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  157. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id +0 -1
  158. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  159. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key +0 -27
@@ -13,13 +13,16 @@ elsif ['ubuntu'].include?(os[:family])
13
13
  # Ubuntu
14
14
  unavailable_service = 'sshd'
15
15
  available_service = 'ssh'
16
- elsif ['windows'].include?(os[:family])
16
+ elsif os.windows?
17
17
  # Ubuntu
18
18
  unavailable_service = 'sshd'
19
19
  available_service = 'dhcp'
20
20
  elsif ['aix'].include?(os[:family])
21
21
  unavailable_service = 'clamav'
22
22
  available_service = 'xntpd'
23
+ elsif os.solaris?
24
+ unavailable_service = 'clamav'
25
+ available_service = 'ssh'
23
26
  end
24
27
 
25
28
  describe service(unavailable_service) do
@@ -1,7 +1,6 @@
1
1
  # encoding: utf-8
2
2
 
3
- case os[:family]
4
- when 'centos', 'redhat', 'fedora', 'opensuse', 'debian', 'ubuntu'
3
+ if ['centos', 'redhat', 'fedora', 'opensuse', 'debian', 'ubuntu'].include?(os[:family])
5
4
  userinfo = {
6
5
  name: 'root',
7
6
  group: 'root',
@@ -15,19 +14,17 @@ when 'centos', 'redhat', 'fedora', 'opensuse', 'debian', 'ubuntu'
15
14
  # different groupset for centos 5
16
15
  userinfo[:groups] = ["root", "bin", "daemon", "sys", "adm", "disk", "wheel"] \
17
16
  if os[:release].to_i == 5
18
-
19
- when 'freebsd'
17
+ elsif ['freebsd'].include?(os[:family])
20
18
  userinfo = {
21
19
  name: 'root',
22
20
  group: 'wheel',
23
21
  uid: 0,
24
22
  gid: 0,
25
- groups: ["wheel", "operator"],
23
+ groups: "wheel", # at least this group should be there
26
24
  home: '/root',
27
25
  shell: '/bin/csh',
28
26
  }
29
-
30
- when 'windows'
27
+ elsif os.windows?
31
28
  userinfo = {
32
29
  name: 'Administrator',
33
30
  group: nil,
@@ -37,27 +34,46 @@ when 'windows'
37
34
  home: nil,
38
35
  shell: nil,
39
36
  }
40
-
41
- when 'aix'
37
+ elsif os[:family] == 'aix'
42
38
  userinfo = {
43
39
  name: 'bin',
44
40
  group: 'bin',
45
41
  uid: 2,
46
42
  gid: 2,
47
- groups: %w{bin sys adm},
43
+ groups: "adm", # at least this group should be there
48
44
  home: '/bin',
49
45
  shell: nil,
50
46
  #mindays: 0,
51
47
  #maxdays: 0,
52
48
  warndays: 0,
53
49
  }
54
-
50
+ elsif os.solaris?
51
+ if os[:release].to_i > 10
52
+ userinfo = {
53
+ name: 'root',
54
+ group: 'root',
55
+ uid: 0,
56
+ gid: 0,
57
+ groups: "sys", # at least this group should be there
58
+ home: '/root',
59
+ shell: '/usr/bin/bash',
60
+ }
61
+ else
62
+ userinfo = {
63
+ name: 'root',
64
+ group: 'root',
65
+ uid: 0,
66
+ gid: 0,
67
+ groups: "sys", # at least this group should be there
68
+ home: '/',
69
+ shell: '/sbin/sh',
70
+ }
71
+ end
55
72
  else
56
73
  userinfo = {}
57
74
  end
58
75
 
59
- case os[:family]
60
- when 'windows'
76
+ if os.windows?
61
77
  describe user(userinfo[:name]) do
62
78
  it { should exist }
63
79
  end
@@ -66,7 +82,14 @@ else
66
82
  it { should exist }
67
83
  userinfo.each do |k, v|
68
84
  next if k.to_sym == :name
69
- its(k) { should eq v }
85
+
86
+ # check that the user is part of the groups
87
+ if k.to_s == 'groups'
88
+ its(k) { should include v }
89
+ # default eq comparison
90
+ else
91
+ its(k) { should eq v }
92
+ end
70
93
  end
71
94
  end
72
95
  end
@@ -0,0 +1,8 @@
1
+ Name: system/file-system/zfs
2
+ Summary: ZFS file system
3
+ Category: System/File System
4
+ State: Installed
5
+ Version: 0.5.11
6
+ Build Release: 5.11
7
+ Branch: 0.175.3.1.0.5.0
8
+ Packaging Date: October 6, 2015 02:23:22 PM
@@ -0,0 +1,7 @@
1
+ PKGINST: SUNWzfsr
2
+ NAME: ZFS (Root)
3
+ CATEGORY: system
4
+ ARCH: i386
5
+ VERSION: 11.10.0,REV=2006.05.18.01.46
6
+ DESC: ZFS root components
7
+ STATUS: completely installed
@@ -0,0 +1,32 @@
1
+
2
+ UDP: IPv4
3
+ Local Address Remote Address State
4
+ -------------------- -------------------- ----------
5
+ *.* Unbound
6
+ 10.0.2.15.68 Idle
7
+ 192.168.59.103.68 Idle
8
+
9
+ UDP: IPv6
10
+ Local Address Remote Address State If
11
+ --------------------------------- --------------------------------- ---------- -----
12
+ *.* Unbound
13
+ *.546 Idle
14
+
15
+ TCP: IPv4
16
+ Local Address Remote Address Swind Send-Q Rwind Recv-Q State
17
+ -------------------- -------------------- ------- ------ ------- ------ -----------
18
+ 127.0.0.1.5999 *.* 0 0 128000 0 LISTEN
19
+ *.111 *.* 0 0 128000 0 LISTEN
20
+ *.* *.* 0 0 128000 0 IDLE
21
+ *.111 *.* 0 0 128000 0 LISTEN
22
+ *.* *.* 0 0 128000 0 IDLE
23
+ 192.168.59.103.22 192.168.59.3.55016 131008 0 128872 0 ESTABLISHED
24
+ *.22 *.* 0 0 128000 0 LISTEN
25
+ *.22 *.* 0 0 128000 0 LISTEN
26
+
27
+ TCP: IPv6
28
+ Local Address Remote Address Swind Send-Q Rwind Recv-Q State If
29
+ --------------------------------- --------------------------------- ------- ------ ------- ------ ----------- -----
30
+ ::1.5999 *.* 0 0 128000 0 LISTEN
31
+ *.111 *.* 0 0 128000 0 LISTEN
32
+ *.* *.* 0 0 128000 0 IDLE
@@ -156,6 +156,7 @@ describe Inspec::Resources::File do
156
156
  describe 'when not on linux or freebsd' do
157
157
  before do
158
158
  resource.stubs(:linux?).returns(false)
159
+ resource.stubs(:solaris?).returns(false)
159
160
  resource.stubs(:family).returns('fakefamily')
160
161
  end
161
162
 
@@ -51,6 +51,24 @@ describe 'Inspec::Resources::Package' do
51
51
  _(resource.info).must_equal pkg
52
52
  end
53
53
 
54
+ # solaris 10
55
+ it 'verify windows package parsing' do
56
+ resource = MockLoader.new(:solaris10).load_resource('package', 'SUNWzfsr')
57
+ pkg = { name: 'SUNWzfsr', installed: true, version: '11.10.0-2006.05.18.01.46', type: 'pkg' }
58
+ _(resource.installed?).must_equal true
59
+ _(resource.version).must_equal '11.10.0-2006.05.18.01.46'
60
+ _(resource.info).must_equal pkg
61
+ end
62
+
63
+ # solaris 11
64
+ it 'verify windows package parsing' do
65
+ resource = MockLoader.new(:solaris11).load_resource('package', 'system/file-system/zfs')
66
+ pkg = { name: 'system/file-system/zfs', installed: true, version: '0.5.11-0.175.3.1.0.5.0', type: 'pkg' }
67
+ _(resource.installed?).must_equal true
68
+ _(resource.version).must_equal '0.5.11-0.175.3.1.0.5.0'
69
+ _(resource.info).must_equal pkg
70
+ end
71
+
54
72
  # undefined
55
73
  it 'verify package handling on unsupported os' do
56
74
  resource = MockLoader.new(:undefined).load_resource('package', 'curl')
@@ -71,4 +71,14 @@ describe 'Inspec::Resources::Port' do
71
71
  resource = MockLoader.new(:ubuntu1404).load_resource('port', '127.0.0.1', 22)
72
72
  _(resource.listening?).must_equal false
73
73
  end
74
+
75
+ it 'verify port on Solaris 10' do
76
+ resource = MockLoader.new(:solaris10).load_resource('port', 22)
77
+ _(resource.listening?).must_equal true
78
+ end
79
+
80
+ it 'verify port on Solaris 11' do
81
+ resource = MockLoader.new(:solaris11).load_resource('port', 22)
82
+ _(resource.listening?).must_equal true
83
+ end
74
84
  end
@@ -2,6 +2,8 @@
2
2
  # author: Dominik Richter
3
3
  # author: Christoph Hartmann
4
4
 
5
+ require 'helper'
6
+
5
7
  describe PasswdParser do
6
8
  let (:parser) { Class.new() { include PasswdParser }.new }
7
9
 
@@ -0,0 +1,124 @@
1
+ # encoding: utf-8
2
+ # author: Christoph Hartmann
3
+ # author: Dominik Richter
4
+
5
+ require 'helper'
6
+
7
+ describe SolarisNetstatParser do
8
+ let (:parser) { Class.new() { include SolarisNetstatParser }.new }
9
+
10
+ describe '#parse_solaris_netset' do
11
+ it 'parses nil content' do
12
+ parser.parse_netstat(nil).must_equal([])
13
+ end
14
+
15
+ it 'parses an empty line' do
16
+ parser.parse_netstat('').must_equal([])
17
+ end
18
+
19
+ it 'parses udpv4' do
20
+ content =
21
+ """
22
+ UDP: IPv4
23
+ Local Address Remote Address State
24
+ -------------------- -------------------- ----------
25
+ *.631 Idle
26
+ """
27
+
28
+ info = [{
29
+ "protocol"=>"udp",
30
+ "local-address"=>"*.631",
31
+ "remote-address"=>"",
32
+ "state"=>"Idle"
33
+ }]
34
+ parser.parse_netstat(content).must_equal(info)
35
+ end
36
+
37
+ it 'parses udpv6' do
38
+ content =
39
+ """
40
+ UDP: IPv6
41
+ Local Address Remote Address State If
42
+ --------------------------------- --------------------------------- ---------- -----
43
+ *.546 Idle
44
+ """
45
+
46
+ info = [{
47
+ "protocol"=>"udp6",
48
+ "local-address"=>"*.546",
49
+ "remote-address"=>"",
50
+ "state"=>"Idle",
51
+ "if"=>"",
52
+ }]
53
+ parser.parse_netstat(content).must_equal(info)
54
+ end
55
+
56
+ it 'parses tcpv4' do
57
+ content =
58
+ """
59
+ TCP: IPv4
60
+ Local Address Remote Address Swind Send-Q Rwind Recv-Q State
61
+ -------------------- -------------------- ------- ------ ------- ------ -----------
62
+ 127.0.0.1.5999 *.* 0 0 128000 0 LISTEN
63
+ """
64
+
65
+ info = [{
66
+ "protocol"=>"tcp",
67
+ "local-address"=>"127.0.0.1.5999",
68
+ "remote-address"=>"*.*",
69
+ "swind"=>"0",
70
+ "send-q"=>"0",
71
+ "rwind"=>"128000",
72
+ "recv-q"=>"0",
73
+ "state"=>"LISTEN",
74
+ }]
75
+ parser.parse_netstat(content).must_equal(info)
76
+ end
77
+
78
+ it 'parses tcpv6' do
79
+ content =
80
+ """
81
+ TCP: IPv6
82
+ Local Address Remote Address Swind Send-Q Rwind Recv-Q State If
83
+ --------------------------------- --------------------------------- ------- ------ ------- ------ ----------- -----
84
+ ::1.5999 *.* 0 0 128000 0 LISTEN
85
+ """
86
+
87
+ info = [{
88
+ "protocol"=>"tcp6",
89
+ "local-address"=>"::1.5999",
90
+ "remote-address"=>"*.*",
91
+ "swind"=>"0",
92
+ "send-q"=>"0",
93
+ "rwind"=>"128000",
94
+ "recv-q"=>"0",
95
+ "state"=>"LISTEN",
96
+ "if"=>"",
97
+ }]
98
+ parser.parse_netstat(content).must_equal(info)
99
+ end
100
+
101
+ it 'parses sctp' do
102
+ content =
103
+ """
104
+ SCTP:
105
+ Local Address Remote Address Swind Send-Q Rwind Recv-Q StrsI/O State
106
+ ------------------------------- ------------------------------- ------ ------ ------ ------ ------- -----------
107
+ 0.0.0.0 0.0.0.0 0 0 102400 0 32/32 CLOSED
108
+ """
109
+ info = [{
110
+ "protocol"=>"sctp",
111
+ "local-address"=>"0.0.0.0",
112
+ "remote-address"=>"0.0.0.0",
113
+ "swind"=>"0",
114
+ "send-q"=>"0",
115
+ "rwind"=>"102400",
116
+ "recv-q"=>"0",
117
+ "strsi_o"=>"32/32",
118
+ "state"=>"CLOSED",
119
+ }]
120
+ parser.parse_netstat(content).must_equal(info)
121
+ end
122
+
123
+ end
124
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.10
4
+ version: 0.9.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dominik Richter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-25 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: r-train
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.9'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.9.3
22
+ version: 0.9.6
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.9'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.9.3
32
+ version: 0.9.6
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: thor
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -289,8 +289,6 @@ files:
289
289
  - examples/test-kitchen/Gemfile.lock
290
290
  - inspec.gemspec
291
291
  - lib/.DS_Store
292
- - lib/extras/compliance/README.md
293
- - lib/extras/compliance/compliance.rb
294
292
  - lib/inspec.rb
295
293
  - lib/inspec/archive/tar.rb
296
294
  - lib/inspec/archive/zip.rb
@@ -396,33 +394,63 @@ files:
396
394
  - test/docker_run.rb
397
395
  - test/docker_test.rb
398
396
  - test/helper.rb
397
+ - test/integration/.kitchen.chef.yml
399
398
  - test/integration/.kitchen.ec2.yml
399
+ - test/integration/.kitchen.shell.yml
400
400
  - test/integration/.kitchen.yml
401
- - test/integration/.kitchen/default-aws-linux.yml
402
- - test/integration/.kitchen/default-centos-7.yml
403
- - test/integration/.kitchen/default-debian-8.yml
404
- - test/integration/.kitchen/default-fedora-22.yml
405
- - test/integration/.kitchen/default-redhat-65.yml
406
- - test/integration/.kitchen/default-redhat-71.yml
407
- - test/integration/.kitchen/default-suse-11sp3.yml
408
- - test/integration/.kitchen/default-suse-12.yml
409
- - test/integration/.kitchen/default-ubuntu-1204.yml
410
- - test/integration/.kitchen/default-ubuntu-1404.yml
401
+ - test/integration/.kitchen/default-chef-solaris-1011.yml
402
+ - test/integration/.kitchen/default-chef-windows-server-2008r2-standard.yml
403
+ - test/integration/.kitchen/default-chef-windows-server-2012r2-standard.yml
404
+ - test/integration/.kitchen/default-chris-rock-omnios-r151014.yml
405
+ - test/integration/.kitchen/default-debian-81.yml
406
+ - test/integration/.kitchen/default-omniti-omnios-r151014.yml
407
+ - test/integration/.kitchen/default-windows-2008.yml
411
408
  - test/integration/.kitchen/default-windows-2012.yml
412
- - test/integration/.kitchen/default-windows-2012r2.yml
413
409
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
414
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
415
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
416
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
417
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
418
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
419
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
420
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
410
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/action_set_name
411
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/creator_uid
412
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/id
413
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/index_uuid
414
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/private_key
415
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/synced_folders
416
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/Vagrantfile
417
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/action_set_name
418
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/creator_uid
419
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/id
420
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/index_uuid
421
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/synced_folders
422
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/Vagrantfile
423
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/action_set_name
424
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/creator_uid
425
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/id
426
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/index_uuid
427
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/synced_folders
428
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/Vagrantfile
429
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name
430
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid
431
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/id
432
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid
433
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/private_key
434
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/synced_folders
435
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/Vagrantfile
436
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name
437
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid
438
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id
439
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid
440
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key
441
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders
442
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/Vagrantfile
421
443
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/action_set_name
422
444
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/creator_uid
423
445
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/id
424
446
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/index_uuid
425
447
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/Vagrantfile
448
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name
449
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid
450
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/id
451
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid
452
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/private_key
453
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/Vagrantfile
426
454
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
427
455
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
428
456
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
@@ -450,6 +478,10 @@ files:
450
478
  - test/integration/.kitchen/logs/default-centos-67.log
451
479
  - test/integration/.kitchen/logs/default-centos-7.log
452
480
  - test/integration/.kitchen/logs/default-centos-71.log
481
+ - test/integration/.kitchen/logs/default-chef-solaris-1011.log
482
+ - test/integration/.kitchen/logs/default-chef-windows-server-2008r2-standard.log
483
+ - test/integration/.kitchen/logs/default-chef-windows-server-2012r2-standard.log
484
+ - test/integration/.kitchen/logs/default-chris-rock-omnios-r151014.log
453
485
  - test/integration/.kitchen/logs/default-debian-6010-i386.log
454
486
  - test/integration/.kitchen/logs/default-debian-6010.log
455
487
  - test/integration/.kitchen/logs/default-debian-78-i386.log
@@ -457,15 +489,18 @@ files:
457
489
  - test/integration/.kitchen/logs/default-debian-8.log
458
490
  - test/integration/.kitchen/logs/default-debian-81-i386.log
459
491
  - test/integration/.kitchen/logs/default-debian-81.log
492
+ - test/integration/.kitchen/logs/default-dusank-oi-server.log
460
493
  - test/integration/.kitchen/logs/default-fedora-21-i386.log
461
494
  - test/integration/.kitchen/logs/default-fedora-21.log
462
495
  - test/integration/.kitchen/logs/default-fedora-22.log
463
496
  - test/integration/.kitchen/logs/default-freebsd-102.log
464
497
  - test/integration/.kitchen/logs/default-freebsd-93.log
498
+ - test/integration/.kitchen/logs/default-livinginthepast-smartos-base64.log
465
499
  - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
466
500
  - test/integration/.kitchen/logs/default-modernIE-w10-edge.log
467
501
  - test/integration/.kitchen/logs/default-modernIE-w7-ie11.log
468
502
  - test/integration/.kitchen/logs/default-modernIE-w81-ie11.log
503
+ - test/integration/.kitchen/logs/default-omniti-omnios-r151014.log
469
504
  - test/integration/.kitchen/logs/default-opensuse-132-i386.log
470
505
  - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
471
506
  - test/integration/.kitchen/logs/default-opentable-win-2008r2-standard-amd64-nocm.log
@@ -487,6 +522,7 @@ files:
487
522
  - test/integration/.kitchen/logs/default-windows-2012R2-matt.log
488
523
  - test/integration/.kitchen/logs/default-windows-2012r2-opentable.log
489
524
  - test/integration/.kitchen/logs/default-windows-2012r2.log
525
+ - test/integration/.kitchen/logs/default-winrm.log
490
526
  - test/integration/.kitchen/logs/kitchen.log
491
527
  - test/integration/.kitchen/logs/new-centos-511-i386.log
492
528
  - test/integration/.kitchen/logs/new-centos-511.log
@@ -540,6 +576,7 @@ files:
540
576
  - test/integration/Berksfile
541
577
  - test/integration/Berksfile.lock
542
578
  - test/integration/TODO.md
579
+ - test/integration/bootstrap.sh
543
580
  - test/integration/cookbooks/os_prepare/files/empty.iso
544
581
  - test/integration/cookbooks/os_prepare/files/example.csv
545
582
  - test/integration/cookbooks/os_prepare/files/example.ini
@@ -654,10 +691,13 @@ files:
654
691
  - test/unit/mock/cmd/pacman-qi-curl
655
692
  - test/unit/mock/cmd/ping-example.com
656
693
  - test/unit/mock/cmd/pip-show-jinja2
694
+ - test/unit/mock/cmd/pkg-info-system-file-system-zfs
695
+ - test/unit/mock/cmd/pkginfo-l-SUNWzfsr
657
696
  - test/unit/mock/cmd/ps-aux
658
697
  - test/unit/mock/cmd/pw-usershow-root-7
659
698
  - test/unit/mock/cmd/reg_schedule
660
699
  - test/unit/mock/cmd/rpm-qia-curl
700
+ - test/unit/mock/cmd/s11-netstat-an-finet-finet6
661
701
  - test/unit/mock/cmd/sbin_sysctl
662
702
  - test/unit/mock/cmd/secedit-export
663
703
  - test/unit/mock/cmd/service-e
@@ -746,6 +786,7 @@ files:
746
786
  - test/unit/targets.rb
747
787
  - test/unit/utils/find_files_test.rb
748
788
  - test/unit/utils/passwd_parser_test.rb
789
+ - test/unit/utils/solaris_netstat_parser.rb
749
790
  homepage: https://github.com/chef/inspec
750
791
  licenses:
751
792
  - Apache 2.0
@@ -785,33 +826,63 @@ test_files:
785
826
  - test/docker_run.rb
786
827
  - test/docker_test.rb
787
828
  - test/helper.rb
829
+ - test/integration/.kitchen.chef.yml
788
830
  - test/integration/.kitchen.ec2.yml
831
+ - test/integration/.kitchen.shell.yml
789
832
  - test/integration/.kitchen.yml
790
- - test/integration/.kitchen/default-aws-linux.yml
791
- - test/integration/.kitchen/default-centos-7.yml
792
- - test/integration/.kitchen/default-debian-8.yml
793
- - test/integration/.kitchen/default-fedora-22.yml
794
- - test/integration/.kitchen/default-redhat-65.yml
795
- - test/integration/.kitchen/default-redhat-71.yml
796
- - test/integration/.kitchen/default-suse-11sp3.yml
797
- - test/integration/.kitchen/default-suse-12.yml
798
- - test/integration/.kitchen/default-ubuntu-1204.yml
799
- - test/integration/.kitchen/default-ubuntu-1404.yml
833
+ - test/integration/.kitchen/default-chef-solaris-1011.yml
834
+ - test/integration/.kitchen/default-chef-windows-server-2008r2-standard.yml
835
+ - test/integration/.kitchen/default-chef-windows-server-2012r2-standard.yml
836
+ - test/integration/.kitchen/default-chris-rock-omnios-r151014.yml
837
+ - test/integration/.kitchen/default-debian-81.yml
838
+ - test/integration/.kitchen/default-omniti-omnios-r151014.yml
839
+ - test/integration/.kitchen/default-windows-2008.yml
800
840
  - test/integration/.kitchen/default-windows-2012.yml
801
- - test/integration/.kitchen/default-windows-2012r2.yml
802
841
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
803
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
804
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
805
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
806
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
807
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
808
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
809
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
842
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/action_set_name
843
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/creator_uid
844
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/id
845
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/index_uuid
846
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/private_key
847
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/.vagrant/machines/default/virtualbox/synced_folders
848
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-solaris-1011/Vagrantfile
849
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/action_set_name
850
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/creator_uid
851
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/id
852
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/index_uuid
853
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/.vagrant/machines/default/virtualbox/synced_folders
854
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2008r2-standard/Vagrantfile
855
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/action_set_name
856
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/creator_uid
857
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/id
858
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/index_uuid
859
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/.vagrant/machines/default/virtualbox/synced_folders
860
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chef-windows-server-2012r2-standard/Vagrantfile
861
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name
862
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid
863
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/id
864
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid
865
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/private_key
866
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/.vagrant/machines/default/virtualbox/synced_folders
867
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-chris-rock-omnios-r151014/Vagrantfile
868
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name
869
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid
870
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id
871
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid
872
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key
873
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders
874
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/Vagrantfile
810
875
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/action_set_name
811
876
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/creator_uid
812
877
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/id
813
878
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/index_uuid
814
879
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/Vagrantfile
880
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/action_set_name
881
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/creator_uid
882
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/id
883
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/index_uuid
884
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/.vagrant/machines/default/virtualbox/private_key
885
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-omniti-omnios-r151014/Vagrantfile
815
886
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
816
887
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
817
888
  - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
@@ -839,6 +910,10 @@ test_files:
839
910
  - test/integration/.kitchen/logs/default-centos-67.log
840
911
  - test/integration/.kitchen/logs/default-centos-7.log
841
912
  - test/integration/.kitchen/logs/default-centos-71.log
913
+ - test/integration/.kitchen/logs/default-chef-solaris-1011.log
914
+ - test/integration/.kitchen/logs/default-chef-windows-server-2008r2-standard.log
915
+ - test/integration/.kitchen/logs/default-chef-windows-server-2012r2-standard.log
916
+ - test/integration/.kitchen/logs/default-chris-rock-omnios-r151014.log
842
917
  - test/integration/.kitchen/logs/default-debian-6010-i386.log
843
918
  - test/integration/.kitchen/logs/default-debian-6010.log
844
919
  - test/integration/.kitchen/logs/default-debian-78-i386.log
@@ -846,15 +921,18 @@ test_files:
846
921
  - test/integration/.kitchen/logs/default-debian-8.log
847
922
  - test/integration/.kitchen/logs/default-debian-81-i386.log
848
923
  - test/integration/.kitchen/logs/default-debian-81.log
924
+ - test/integration/.kitchen/logs/default-dusank-oi-server.log
849
925
  - test/integration/.kitchen/logs/default-fedora-21-i386.log
850
926
  - test/integration/.kitchen/logs/default-fedora-21.log
851
927
  - test/integration/.kitchen/logs/default-fedora-22.log
852
928
  - test/integration/.kitchen/logs/default-freebsd-102.log
853
929
  - test/integration/.kitchen/logs/default-freebsd-93.log
930
+ - test/integration/.kitchen/logs/default-livinginthepast-smartos-base64.log
854
931
  - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
855
932
  - test/integration/.kitchen/logs/default-modernIE-w10-edge.log
856
933
  - test/integration/.kitchen/logs/default-modernIE-w7-ie11.log
857
934
  - test/integration/.kitchen/logs/default-modernIE-w81-ie11.log
935
+ - test/integration/.kitchen/logs/default-omniti-omnios-r151014.log
858
936
  - test/integration/.kitchen/logs/default-opensuse-132-i386.log
859
937
  - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
860
938
  - test/integration/.kitchen/logs/default-opentable-win-2008r2-standard-amd64-nocm.log
@@ -876,6 +954,7 @@ test_files:
876
954
  - test/integration/.kitchen/logs/default-windows-2012R2-matt.log
877
955
  - test/integration/.kitchen/logs/default-windows-2012r2-opentable.log
878
956
  - test/integration/.kitchen/logs/default-windows-2012r2.log
957
+ - test/integration/.kitchen/logs/default-winrm.log
879
958
  - test/integration/.kitchen/logs/kitchen.log
880
959
  - test/integration/.kitchen/logs/new-centos-511-i386.log
881
960
  - test/integration/.kitchen/logs/new-centos-511.log
@@ -929,6 +1008,7 @@ test_files:
929
1008
  - test/integration/Berksfile
930
1009
  - test/integration/Berksfile.lock
931
1010
  - test/integration/TODO.md
1011
+ - test/integration/bootstrap.sh
932
1012
  - test/integration/cookbooks/os_prepare/files/empty.iso
933
1013
  - test/integration/cookbooks/os_prepare/files/example.csv
934
1014
  - test/integration/cookbooks/os_prepare/files/example.ini
@@ -1043,10 +1123,13 @@ test_files:
1043
1123
  - test/unit/mock/cmd/pacman-qi-curl
1044
1124
  - test/unit/mock/cmd/ping-example.com
1045
1125
  - test/unit/mock/cmd/pip-show-jinja2
1126
+ - test/unit/mock/cmd/pkg-info-system-file-system-zfs
1127
+ - test/unit/mock/cmd/pkginfo-l-SUNWzfsr
1046
1128
  - test/unit/mock/cmd/ps-aux
1047
1129
  - test/unit/mock/cmd/pw-usershow-root-7
1048
1130
  - test/unit/mock/cmd/reg_schedule
1049
1131
  - test/unit/mock/cmd/rpm-qia-curl
1132
+ - test/unit/mock/cmd/s11-netstat-an-finet-finet6
1050
1133
  - test/unit/mock/cmd/sbin_sysctl
1051
1134
  - test/unit/mock/cmd/secedit-export
1052
1135
  - test/unit/mock/cmd/service-e
@@ -1135,3 +1218,5 @@ test_files:
1135
1218
  - test/unit/targets.rb
1136
1219
  - test/unit/utils/find_files_test.rb
1137
1220
  - test/unit/utils/passwd_parser_test.rb
1221
+ - test/unit/utils/solaris_netstat_parser.rb
1222
+ has_rdoc: