inspec 0.9.8 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (368) hide show
  1. checksums.yaml +4 -4
  2. data/.rubocop.yml +5 -1
  3. data/CHANGELOG.md +23 -2
  4. data/Gemfile +1 -1
  5. data/Rakefile +15 -1
  6. data/docs/resources.rst +1 -1
  7. data/examples/profile/controls/gordon.rb +1 -1
  8. data/examples/resource/controls/tiny.rb +3 -0
  9. data/examples/resource/inspec.yml +10 -0
  10. data/examples/resource/libraries/tiny.rb +3 -0
  11. data/lib/inspec/dsl.rb +17 -17
  12. data/lib/inspec/metadata.rb +3 -8
  13. data/lib/inspec/plugins/resource.rb +1 -1
  14. data/lib/inspec/profile.rb +3 -2
  15. data/lib/inspec/profile_context.rb +2 -2
  16. data/lib/inspec/rule.rb +7 -7
  17. data/lib/inspec/shell.rb +5 -8
  18. data/lib/inspec/targets/dir.rb +1 -1
  19. data/lib/inspec/targets/tar.rb +3 -6
  20. data/lib/inspec/targets/url.rb +15 -9
  21. data/lib/inspec/targets/url.rb.orig +87 -0
  22. data/lib/inspec/version.rb +1 -1
  23. data/lib/matchers/matchers.rb +1 -1
  24. data/lib/resources/audit_policy.rb +1 -1
  25. data/lib/resources/command.rb +3 -3
  26. data/lib/resources/etc_group.rb +1 -1
  27. data/lib/resources/file.rb +4 -3
  28. data/lib/resources/group.rb +14 -18
  29. data/lib/resources/iptables.rb +1 -1
  30. data/lib/resources/json.rb +4 -6
  31. data/lib/resources/kernel_parameter.rb +1 -1
  32. data/lib/resources/os.rb +1 -1
  33. data/lib/resources/package.rb +20 -2
  34. data/lib/resources/passwd.rb +1 -1
  35. data/lib/resources/port.rb +112 -42
  36. data/lib/resources/postgres_conf.rb +1 -1
  37. data/lib/resources/postgres_session.rb +2 -2
  38. data/lib/resources/registry_key.rb +2 -1
  39. data/lib/resources/security_policy.rb +2 -2
  40. data/lib/resources/service.rb +50 -1
  41. data/lib/resources/user.rb +45 -0
  42. data/lib/resources/yum.rb +2 -2
  43. data/lib/utils/convert.rb +1 -1
  44. data/lib/utils/find_files.rb +3 -3
  45. data/lib/utils/parser.rb +2 -2
  46. data/tasks/maintainers.rb +6 -6
  47. data/test/helper.rb +4 -2
  48. data/test/integration/cookbooks/os_prepare/recipes/file.rb +9 -2
  49. data/test/integration/cookbooks/os_prepare/recipes/json_yaml_csv_ini.rb +8 -2
  50. data/test/integration/test/integration/default/etc_group_spec.rb +22 -0
  51. data/test/integration/test/integration/default/file_spec.rb +10 -1
  52. data/test/integration/test/integration/default/group_spec.rb +17 -0
  53. data/test/integration/test/integration/default/package_spec.rb +10 -4
  54. data/test/integration/test/integration/default/port_spec.rb +6 -0
  55. data/test/integration/test/integration/default/service_spec.rb +3 -0
  56. data/test/integration/test/integration/default/user_spec.rb +26 -16
  57. data/test/unit/metadata_test.rb +24 -0
  58. data/test/unit/mock/cmd/lsof-nP-i-FpctPn +63 -0
  59. data/test/unit/mock/cmd/netstat-tulpen +1 -0
  60. data/test/unit/mock/cmd/systemctl-show-all-sshd +1 -1
  61. data/test/unit/mock/profiles/complete-meta/metadata.rb +1 -1
  62. data/test/unit/mock/profiles/custom-resource/libraries/resource.rb +3 -0
  63. data/test/unit/mock/profiles/custom-resource/metadata.rb +7 -0
  64. data/{examples/kitchen-ansible/.kitchen/logs/default-centos-71.log → test/unit/mock/profiles/custom-resource/test/.gitkeep} +0 -0
  65. data/test/unit/profile_test.rb +6 -2
  66. data/test/unit/resources/port_test.rb +8 -0
  67. data/test/unit/targets.rb +132 -0
  68. metadata +19 -551
  69. data/bin/os +0 -23
  70. data/examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1204.log +0 -0
  71. data/examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1404.log +0 -432
  72. data/examples/kitchen-ansible/.kitchen/logs/kitchen.log +0 -10
  73. data/examples/kitchen-ansible/Gemfile.lock +0 -154
  74. data/examples/kitchen-chef/.kitchen/default-centos-71.yml +0 -6
  75. data/examples/kitchen-chef/.kitchen/default-ubuntu-1204.yml +0 -6
  76. data/examples/kitchen-chef/.kitchen/default-ubuntu-1404.yml +0 -6
  77. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  78. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  79. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/id +0 -1
  80. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  81. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/private_key +0 -27
  82. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  83. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/Vagrantfile +0 -9
  84. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  85. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  86. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +0 -1
  87. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  88. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +0 -27
  89. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  90. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/Vagrantfile +0 -9
  91. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  92. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  93. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +0 -1
  94. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  95. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +0 -27
  96. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  97. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/Vagrantfile +0 -9
  98. data/examples/kitchen-chef/.kitchen/logs/default-centos-71.log +0 -4
  99. data/examples/kitchen-chef/.kitchen/logs/default-ubuntu-1204.log +0 -4
  100. data/examples/kitchen-chef/.kitchen/logs/default-ubuntu-1404.log +0 -4
  101. data/examples/kitchen-chef/.kitchen/logs/kitchen.log +0 -8
  102. data/examples/kitchen-chef/Berksfile.lock +0 -11
  103. data/examples/kitchen-chef/Gemfile.lock +0 -223
  104. data/examples/kitchen-puppet/.bundle/config +0 -2
  105. data/examples/kitchen-puppet/.kitchen/logs/default-centos-71.log +0 -0
  106. data/examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1204.log +0 -0
  107. data/examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1404.log +0 -306
  108. data/examples/kitchen-puppet/.kitchen/logs/kitchen.log +0 -10
  109. data/examples/kitchen-puppet/.librarian/puppet/config +0 -2
  110. data/examples/kitchen-puppet/Gemfile.lock +0 -174
  111. data/examples/kitchen-puppet/Puppetfile.lock +0 -2
  112. data/examples/profile/libraries/.DS_Store +0 -0
  113. data/examples/test-kitchen/.kitchen/logs/default-centos-71.log +0 -5
  114. data/examples/test-kitchen/.kitchen/logs/default-ubuntu-1204.log +0 -5
  115. data/examples/test-kitchen/.kitchen/logs/default-ubuntu-1404.log +0 -5
  116. data/examples/test-kitchen/.kitchen/logs/kitchen.log +0 -5
  117. data/examples/test-kitchen/Berksfile.lock +0 -11
  118. data/examples/test-kitchen/Gemfile.lock +0 -233
  119. data/lib/.DS_Store +0 -0
  120. data/lib/resources/certificate.rb +0 -0
  121. data/lib/resources/private_key.rb +0 -0
  122. data/test/chefdk/.gitignore +0 -16
  123. data/test/chefdk/.kitchen.yml +0 -27
  124. data/test/chefdk/Policyfile.rb +0 -16
  125. data/test/chefdk/README.md +0 -4
  126. data/test/chefdk/chefignore +0 -100
  127. data/test/chefdk/metadata.rb +0 -7
  128. data/test/chefdk/recipes/default.rb +0 -5
  129. data/test/chefdk/spec/spec_helper.rb +0 -2
  130. data/test/chefdk/spec/unit/recipes/default_spec.rb +0 -20
  131. data/test/chefdk/test/integration/default/serverspec/default_spec.rb +0 -9
  132. data/test/chefdk/test/integration/helpers/serverspec/spec_helper.rb +0 -8
  133. data/test/integration/.DS_Store +0 -0
  134. data/test/integration/.kitchen.local.yml +0 -68
  135. data/test/integration/.kitchen/default-aws-linux.yml +0 -4
  136. data/test/integration/.kitchen/default-centos-511.yml +0 -6
  137. data/test/integration/.kitchen/default-centos-67.yml +0 -6
  138. data/test/integration/.kitchen/default-centos-7.yml +0 -4
  139. data/test/integration/.kitchen/default-centos-71.yml +0 -6
  140. data/test/integration/.kitchen/default-debian-6010.yml +0 -6
  141. data/test/integration/.kitchen/default-debian-78.yml +0 -6
  142. data/test/integration/.kitchen/default-debian-8.yml +0 -4
  143. data/test/integration/.kitchen/default-debian-81.yml +0 -6
  144. data/test/integration/.kitchen/default-fedora-21.yml +0 -6
  145. data/test/integration/.kitchen/default-fedora-22.yml +0 -4
  146. data/test/integration/.kitchen/default-freebsd-102.yml +0 -6
  147. data/test/integration/.kitchen/default-freebsd-93.yml +0 -6
  148. data/test/integration/.kitchen/default-opensuse-132-x86-64.yml +0 -6
  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-1004.yml +0 -6
  154. data/test/integration/.kitchen/default-ubuntu-1204.yml +0 -4
  155. data/test/integration/.kitchen/default-ubuntu-1404.yml +0 -4
  156. data/test/integration/.kitchen/default-ubuntu-1510.yml +0 -4
  157. data/test/integration/.kitchen/default-windows-2012.yml +0 -5
  158. data/test/integration/.kitchen/default-windows-2012r2.yml +0 -6
  159. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  160. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  161. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/id +0 -1
  162. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  163. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/private_key +0 -27
  164. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  165. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/Vagrantfile +0 -9
  166. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile +0 -9
  167. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  168. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  169. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/id +0 -1
  170. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  171. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/private_key +0 -27
  172. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  173. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/Vagrantfile +0 -9
  174. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  175. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  176. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/id +0 -1
  177. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  178. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/private_key +0 -27
  179. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  180. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/Vagrantfile +0 -9
  181. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  182. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  183. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/id +0 -1
  184. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  185. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/private_key +0 -27
  186. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  187. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/Vagrantfile +0 -9
  188. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  189. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  190. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/id +0 -1
  191. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  192. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/private_key +0 -27
  193. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  194. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/Vagrantfile +0 -9
  195. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  196. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  197. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id +0 -1
  198. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  199. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key +0 -27
  200. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  201. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/Vagrantfile +0 -9
  202. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  203. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  204. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/id +0 -1
  205. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  206. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/private_key +0 -27
  207. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  208. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/Vagrantfile +0 -9
  209. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  210. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  211. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id +0 -1
  212. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  213. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key +0 -27
  214. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  215. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile +0 -9
  216. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  217. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  218. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/id +0 -1
  219. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  220. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/private_key +0 -27
  221. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  222. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/Vagrantfile +0 -9
  223. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  224. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  225. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/id +0 -1
  226. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  227. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/private_key +0 -27
  228. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  229. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/Vagrantfile +0 -9
  230. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  231. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  232. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/id +0 -1
  233. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  234. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/private_key +0 -27
  235. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  236. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/Vagrantfile +0 -9
  237. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  238. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  239. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/id +0 -1
  240. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  241. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/private_key +0 -27
  242. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  243. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/Vagrantfile +0 -9
  244. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  245. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  246. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +0 -1
  247. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  248. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +0 -27
  249. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  250. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile +0 -9
  251. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  252. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  253. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +0 -1
  254. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  255. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +0 -27
  256. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  257. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile +0 -9
  258. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile +0 -9
  259. data/test/integration/.kitchen/logs/default-aws-linux.log +0 -0
  260. data/test/integration/.kitchen/logs/default-centos-511-i386.log +0 -0
  261. data/test/integration/.kitchen/logs/default-centos-511.log +0 -0
  262. data/test/integration/.kitchen/logs/default-centos-67-i386.log +0 -0
  263. data/test/integration/.kitchen/logs/default-centos-67.log +0 -0
  264. data/test/integration/.kitchen/logs/default-centos-7.log +0 -0
  265. data/test/integration/.kitchen/logs/default-centos-71.log +0 -0
  266. data/test/integration/.kitchen/logs/default-debian-6010-i386.log +0 -0
  267. data/test/integration/.kitchen/logs/default-debian-6010.log +0 -0
  268. data/test/integration/.kitchen/logs/default-debian-78-i386.log +0 -0
  269. data/test/integration/.kitchen/logs/default-debian-78.log +0 -0
  270. data/test/integration/.kitchen/logs/default-debian-8.log +0 -0
  271. data/test/integration/.kitchen/logs/default-debian-81-i386.log +0 -0
  272. data/test/integration/.kitchen/logs/default-debian-81.log +0 -0
  273. data/test/integration/.kitchen/logs/default-fedora-21-i386.log +0 -0
  274. data/test/integration/.kitchen/logs/default-fedora-21.log +0 -0
  275. data/test/integration/.kitchen/logs/default-fedora-22.log +0 -0
  276. data/test/integration/.kitchen/logs/default-freebsd-102.log +0 -0
  277. data/test/integration/.kitchen/logs/default-freebsd-93.log +0 -0
  278. data/test/integration/.kitchen/logs/default-mint-172-cinnamon.log +0 -0
  279. data/test/integration/.kitchen/logs/default-opensuse-132-i386.log +0 -0
  280. data/test/integration/.kitchen/logs/default-opensuse-132-x86-64.log +0 -0
  281. data/test/integration/.kitchen/logs/default-redhat-65.log +0 -0
  282. data/test/integration/.kitchen/logs/default-redhat-71.log +0 -0
  283. data/test/integration/.kitchen/logs/default-suse-11sp3.log +0 -0
  284. data/test/integration/.kitchen/logs/default-suse-12.log +0 -0
  285. data/test/integration/.kitchen/logs/default-ubuntu-1004-i386.log +0 -0
  286. data/test/integration/.kitchen/logs/default-ubuntu-1004.log +0 -0
  287. data/test/integration/.kitchen/logs/default-ubuntu-1204-i386.log +0 -0
  288. data/test/integration/.kitchen/logs/default-ubuntu-1204.log +0 -23
  289. data/test/integration/.kitchen/logs/default-ubuntu-1404-i386.log +0 -0
  290. data/test/integration/.kitchen/logs/default-ubuntu-1404.log +0 -0
  291. data/test/integration/.kitchen/logs/default-ubuntu-1510.log +0 -0
  292. data/test/integration/.kitchen/logs/default-windows-2012.log +0 -0
  293. data/test/integration/.kitchen/logs/default-windows-2012r2.log +0 -0
  294. data/test/integration/.kitchen/logs/kitchen.log +0 -3
  295. data/test/integration/.kitchen/logs/new-centos-511-i386.log +0 -0
  296. data/test/integration/.kitchen/logs/new-centos-511.log +0 -0
  297. data/test/integration/.kitchen/logs/new-centos-67-i386.log +0 -0
  298. data/test/integration/.kitchen/logs/new-centos-67.log +0 -0
  299. data/test/integration/.kitchen/logs/new-centos-71.log +0 -0
  300. data/test/integration/.kitchen/logs/new-debian-6010-i386.log +0 -0
  301. data/test/integration/.kitchen/logs/new-debian-6010.log +0 -0
  302. data/test/integration/.kitchen/logs/new-debian-78-i386.log +0 -0
  303. data/test/integration/.kitchen/logs/new-debian-78.log +0 -0
  304. data/test/integration/.kitchen/logs/new-debian-81-i386.log +0 -0
  305. data/test/integration/.kitchen/logs/new-debian-81.log +0 -0
  306. data/test/integration/.kitchen/logs/new-fedora-21-i386.log +0 -0
  307. data/test/integration/.kitchen/logs/new-fedora-21.log +0 -0
  308. data/test/integration/.kitchen/logs/new-fedora-22.log +0 -0
  309. data/test/integration/.kitchen/logs/new-freebsd-102.log +0 -0
  310. data/test/integration/.kitchen/logs/new-freebsd-93.log +0 -0
  311. data/test/integration/.kitchen/logs/new-opensuse-132-i386.log +0 -0
  312. data/test/integration/.kitchen/logs/new-opensuse-132-x86-64.log +0 -0
  313. data/test/integration/.kitchen/logs/new-ubuntu-1004-i386.log +0 -0
  314. data/test/integration/.kitchen/logs/new-ubuntu-1004.log +0 -0
  315. data/test/integration/.kitchen/logs/new-ubuntu-1204-i386.log +0 -0
  316. data/test/integration/.kitchen/logs/new-ubuntu-1204.log +0 -0
  317. data/test/integration/.kitchen/logs/new-ubuntu-1404-i386.log +0 -0
  318. data/test/integration/.kitchen/logs/new-ubuntu-1404.log +0 -3
  319. data/test/integration/.kitchen/logs/test-centos-511-i386.log +0 -0
  320. data/test/integration/.kitchen/logs/test-centos-511.log +0 -0
  321. data/test/integration/.kitchen/logs/test-centos-67-i386.log +0 -0
  322. data/test/integration/.kitchen/logs/test-centos-67.log +0 -0
  323. data/test/integration/.kitchen/logs/test-centos-71.log +0 -0
  324. data/test/integration/.kitchen/logs/test-debian-6010-i386.log +0 -0
  325. data/test/integration/.kitchen/logs/test-debian-6010.log +0 -0
  326. data/test/integration/.kitchen/logs/test-debian-78-i386.log +0 -0
  327. data/test/integration/.kitchen/logs/test-debian-78.log +0 -0
  328. data/test/integration/.kitchen/logs/test-debian-81-i386.log +0 -0
  329. data/test/integration/.kitchen/logs/test-debian-81.log +0 -0
  330. data/test/integration/.kitchen/logs/test-fedora-21-i386.log +0 -0
  331. data/test/integration/.kitchen/logs/test-fedora-21.log +0 -0
  332. data/test/integration/.kitchen/logs/test-fedora-22.log +0 -0
  333. data/test/integration/.kitchen/logs/test-freebsd-102.log +0 -0
  334. data/test/integration/.kitchen/logs/test-freebsd-93.log +0 -0
  335. data/test/integration/.kitchen/logs/test-opensuse-132-i386.log +0 -0
  336. data/test/integration/.kitchen/logs/test-opensuse-132-x86-64.log +0 -0
  337. data/test/integration/.kitchen/logs/test-ubuntu-1004-i386.log +0 -0
  338. data/test/integration/.kitchen/logs/test-ubuntu-1004.log +0 -0
  339. data/test/integration/.kitchen/logs/test-ubuntu-1204-i386.log +0 -0
  340. data/test/integration/.kitchen/logs/test-ubuntu-1204.log +0 -0
  341. data/test/integration/.kitchen/logs/test-ubuntu-1404-i386.log +0 -0
  342. data/test/integration/.kitchen/logs/test-ubuntu-1404.log +0 -0
  343. data/test/integration/.kitchen/new-ubuntu-1404.yml +0 -1
  344. data/test/integration/Berksfile.lock +0 -11
  345. data/test/integration/TODO.md +0 -15
  346. data/test/integration/test/.DS_Store +0 -0
  347. data/test/integration/test/integration/.DS_Store +0 -0
  348. data/test/integration/test/integration/default/.DS_Store +0 -0
  349. data/test/integration/test/integration/default/certificate_spec.rb +0 -7
  350. data/test/integration/test/integration/default/etc_group.rb +0 -13
  351. data/test/serverspec/.kitchen.yml +0 -18
  352. data/test/serverspec/.kitchen/default-ubuntu-1404.yml +0 -6
  353. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +0 -1
  354. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +0 -1
  355. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +0 -1
  356. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +0 -1
  357. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +0 -27
  358. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +0 -1
  359. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile +0 -9
  360. data/test/serverspec/.kitchen/logs/default-ubuntu-1404.log +0 -2
  361. data/test/serverspec/.kitchen/logs/kitchen.log +0 -3
  362. data/test/serverspec/Berksfile +0 -3
  363. data/test/serverspec/Berksfile.lock +0 -5
  364. data/test/serverspec/TODO.md +0 -2
  365. data/test/serverspec/test/integration/default/serverspec/os_spec.rb +0 -25
  366. data/test/serverspec/test/integration/default/serverspec/spec_helper.rb +0 -48
  367. data/test/serverspec/test/integration/default/serverspec/sysctl_spec.rb +0 -37
  368. data/test/unit/mock/cmd/lsof-np-itcp +0 -4
@@ -9,6 +9,30 @@ describe 'metadata with supported operating systems' do
9
9
  describe 'running on ubuntu 14.04' do
10
10
  let (:backend) { MockLoader.new(:ubuntu1404).backend }
11
11
 
12
+ it 'finalizes a loaded metadata via Profile ID' do
13
+ res = Inspec::Metadata.from_yaml('mock', '---', nil)
14
+ Inspec::Metadata.finalize(res, 'mock')
15
+ res.params[:name].must_equal('mock')
16
+ end
17
+
18
+ it 'finalizes a loaded metadata via Profile ID and overwrites the ID' do
19
+ res = Inspec::Metadata.from_yaml('mock', "---\nname: hello", nil)
20
+ Inspec::Metadata.finalize(res, 'mock')
21
+ res.params[:name].must_equal('mock')
22
+ end
23
+
24
+ it 'finalizes a loaded metadata by turning strings into symbols' do
25
+ res = Inspec::Metadata.from_yaml('mock', "---\nauthor: world", nil)
26
+ Inspec::Metadata.finalize(res, 'mock')
27
+ res.params[:author].must_equal('world')
28
+ end
29
+
30
+ it 'loads the support field from metadata' do
31
+ res = Inspec::Metadata.from_yaml('mock',
32
+ "---\nsupports:\n - os: ubuntu", nil)
33
+ res.params[:supports].must_equal([{ 'os' => 'ubuntu' }])
34
+ end
35
+
12
36
  # Description of method
13
37
  #
14
38
  # @param [Type] params describe params
@@ -0,0 +1,63 @@
1
+ p697
2
+ cUserEvent
3
+ tIPv4
4
+ PUDP
5
+ n*:*
6
+ p6835
7
+ cVBoxHeadl
8
+ tIPv4
9
+ PTCP
10
+ n127.0.0.1:2022
11
+ tIPv4
12
+ PUDP
13
+ n*:61197
14
+ p2022
15
+ cjava
16
+ tIPv6
17
+ PTCP
18
+ n192.168.1.66:51098->172.18.1.63:22
19
+ p8708
20
+ csshd
21
+ tIPv4
22
+ PTCP
23
+ n*:22
24
+ tIPv6
25
+ PTCP
26
+ n*:22
27
+ p13451
28
+ cssh
29
+ tIPv4
30
+ PTCP
31
+ n192.168.1.66:46951->192.168.1.80:22
32
+ p24137
33
+ cntpd
34
+ tIPv4
35
+ PUDP
36
+ n*:123
37
+ tIPv6
38
+ PUDP
39
+ n*:123
40
+ tIPv4
41
+ PUDP
42
+ n127.0.0.1:123
43
+ tIPv4
44
+ PUDP
45
+ n192.168.1.66:123
46
+ tIPv4
47
+ PUDP
48
+ n172.17.42.1:123
49
+ tIPv6
50
+ PUDP
51
+ n[2602:30a:c0d0:e070:8e70:5aff:fe66:6ebc]:123
52
+ tIPv6
53
+ PUDP
54
+ n[::1]:123
55
+ tIPv6
56
+ PUDP
57
+ n[fe80::8e70:5aff:fe66:6ebc]:123
58
+ tIPv6
59
+ PUDP
60
+ n[2602:30a:c0d0:e070:b1e3:fa7c:c1cd:e1dd]:123
61
+ tIPv4
62
+ PUDP
63
+ n9.48.126.170:123
@@ -3,3 +3,4 @@ Proto Recv-Q Send-Q Local Address Foreign Address State
3
3
  tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 0 21699 1/sshd
4
4
  tcp6 0 48 2601:1:ad80:1445::54776 2620:0:861:52:208::6667 LISTEN 0 21702 2043/pidgin
5
5
  tcp6 0 0 :::22 :::* LISTEN 0 21701 1/sshd
6
+ udp 0 0 0.0.0.0:111 0.0.0.0:* 0 8689 545/rpcbind
@@ -2,5 +2,5 @@ Id=sshd.service
2
2
  Names=sshd.service
3
3
  Description=OpenSSH server daemon
4
4
  LoadState=loaded
5
- ActiveState=active
5
+ UnitFileState=enabled
6
6
  SubState=running
@@ -4,4 +4,4 @@ maintainer 'bob'
4
4
  title 'title'
5
5
  copyright 'left'
6
6
  summary 'nothing'
7
- supports nil
7
+ supports 'linux'
@@ -0,0 +1,3 @@
1
+ class Tiny < Inspec.resource(1)
2
+ name 'tiny'
3
+ end
@@ -0,0 +1,7 @@
1
+ name 'name'
2
+ version '1.2.3'
3
+ maintainer 'bob'
4
+ title 'title'
5
+ copyright 'left'
6
+ summary 'nothing'
7
+ supports nil
@@ -69,19 +69,23 @@ describe Inspec::Profile do
69
69
  end
70
70
  end
71
71
 
72
- describe 'a complete metadata profile' do
72
+ describe 'a complete metadata profile (legacy mode)' do
73
73
  let(:profile) { load_profile('complete-meta', {logger: logger}) }
74
74
 
75
75
  it 'prints ok messages' do
76
76
  logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/complete-meta"]
77
77
  logger.expect :warn, nil, ['The use of `metadata.rb` is deprecated. Use `inspec.yml`.']
78
78
  logger.expect :info, nil, ['Metadata OK.']
79
- logger.expect :warn, nil, ["Profile uses deprecated `test` directory, rename it to `controls`"]
79
+ logger.expect :warn, nil, ["Profile uses deprecated `test` directory, rename it to `controls`."]
80
80
  logger.expect :warn, nil, ['No controls or tests were defined.']
81
81
 
82
82
  profile.check
83
83
  logger.verify
84
84
  end
85
+
86
+ it 'doesnt have constraints on supported systems' do
87
+ profile.metadata.params.wont_include(:supports)
88
+ end
85
89
  end
86
90
 
87
91
  describe 'a complete metadata profile with controls' do
@@ -14,6 +14,14 @@ describe 'Inspec::Resources::Port' do
14
14
  _(resource.processes).must_equal ['sshd']
15
15
  end
16
16
 
17
+ it 'verify UDP port on Ubuntu 14.04' do
18
+ resource = MockLoader.new(:ubuntu1404).load_resource('port', 111)
19
+ _(resource.listening?).must_equal true
20
+ _(resource.protocols).must_equal %w{ udp }
21
+ _(resource.pids).must_equal [545]
22
+ _(resource.processes).must_equal ['rpcbind']
23
+ end
24
+
17
25
  it 'verify port on MacOs x' do
18
26
  resource = MockLoader.new(:osx104).load_resource('port', 2022)
19
27
  _(resource.listening?).must_equal true
@@ -0,0 +1,132 @@
1
+ # encoding: utf-8
2
+ # author: Stephan Renatus
3
+
4
+ require 'helper'
5
+
6
+ describe Inspec::Targets::UrlHelper do
7
+ let(:helper) { Inspec::Targets::UrlHelper.new }
8
+
9
+ it 'handles http' do
10
+ helper.handles?('http://chef.io').must_equal true
11
+ end
12
+
13
+ it 'handles https' do
14
+ helper.handles?('https://chef.io').must_equal true
15
+ end
16
+
17
+ it 'returns false if given an invalid URL' do
18
+ helper.handles?('cheshire_cat').must_equal false
19
+ end
20
+
21
+ it 'returns false if given an URL with a protocol different from http[s]' do
22
+ helper.handles?('gopher://chef.io').must_equal false
23
+ end
24
+
25
+ it 'resolves various github urls' do
26
+ hlpr = Minitest::Mock.new
27
+ helper.stub :resolve_zip, hlpr do
28
+ %w{https://github.com/chef/inspec
29
+ https://github.com/chef/inspec.git
30
+ https://www.github.com/chef/inspec.git
31
+ http://github.com/chef/inspec
32
+ http://github.com/chef/inspec.git
33
+ http://www.github.com/chef/inspec.git}.each do |github|
34
+ hlpr.expect :call, nil, ['https://github.com/chef/inspec/archive/master.tar.gz', {}]
35
+
36
+ helper.resolve(github)
37
+ end
38
+ hlpr.verify
39
+ end
40
+ end
41
+
42
+ it 'leaves proper, non-github urls unchanged' do
43
+ url = 'https://chef.io/something.tar.gz'
44
+ hlpr = Minitest::Mock.new
45
+ hlpr.expect :call, nil, [url, {}]
46
+ helper.stub :resolve_zip, hlpr do
47
+ helper.resolve(url)
48
+ end
49
+ hlpr.verify
50
+ end
51
+
52
+ let (:url) { 'https://github.com/chef/inspec/archive/master.tar.gz' }
53
+ let (:opts) { { http_basic_authentication: ['', ''] } }
54
+
55
+ def archive_of_type(type)
56
+ archive = Minitest::Mock.new
57
+ archive.expect :write, nil, ["#{type}-content"]
58
+ archive.expect :path, "/path/to/#{type}-archive.tar.gz" # always tar.gz!
59
+ [:binmode, :rewind, :close, :unlink].each do |meth|
60
+ archive.expect meth, nil
61
+ end
62
+ archive
63
+ end
64
+
65
+ def remote_of_type(type, content_type)
66
+ remote = Minitest::Mock.new
67
+ remote.expect :read, "#{type}-content"
68
+ remote.expect :meta, { 'content-type' => content_type }
69
+ remote
70
+ end
71
+
72
+ let (:archive_sth) { archive_of_type('sth') }
73
+ let (:remote_sth) { remote_of_type('sth', 'application/x-very-funny') }
74
+
75
+ it 'downloads an archive and returns it with its content-type' do
76
+ helper.stub :open, remote_sth, [url, opts] do
77
+ helper.download_archive(url, archive_sth, {}).must_equal([archive_sth, 'application/x-very-funny'])
78
+ end
79
+ remote_sth.verify
80
+ end
81
+
82
+ it 'downloads an archive and returns it with its content-type using options, too' do
83
+ helper.stub :open, remote_sth, [url, { http_basic_authentication: ['alice', 'pw'] }] do
84
+ helper.download_archive(url, archive_sth, 'user' => 'alice', 'password' => 'pw').must_equal([archive_sth, 'application/x-very-funny'])
85
+ end
86
+ remote_sth.verify
87
+ end
88
+
89
+ let (:archive_zip) { archive_of_type('zip') }
90
+ let (:archive_tgz) { archive_of_type('tgz') }
91
+
92
+ let (:tarhelper) do
93
+ th = Minitest::Mock.new
94
+ th.expect :resolve, 'tgz-content', ['/path/to/tgz-archive.tar.gz']
95
+ th
96
+ end
97
+
98
+ %w{ application/gzip application/x-gzip }.each do |content_type|
99
+ it "unpacks a tarball (#{content_type}) with TarHelper and returns the content" do
100
+ Tempfile.stub :new, archive_tgz, [['inspec-dl-', '.tar.gz']] do
101
+ helper.stub :download_archive, [archive_tgz, content_type], [url, archive_tgz, opts] do
102
+ Inspec::Targets::TarHelper.stub :new, tarhelper do
103
+ helper.resolve_zip(url, {}).must_equal('tgz-content')
104
+ end
105
+ end
106
+ end
107
+ tarhelper.verify
108
+ end
109
+ end
110
+
111
+ let (:ziphelper) do
112
+ zip = Minitest::Mock.new
113
+ zip.expect :resolve, 'zip-content', [Pathname.new('/path/to/zip-archive.zip')]
114
+ zip
115
+ end
116
+
117
+ %w{ application/zip application/x-zip-compressed }.each do |content_type|
118
+ it "renames and unpacks a zip file (#{content_type}) with ZipHelper and returns the content" do
119
+ helper.stub :download_archive, [archive_zip, content_type], [url, archive_zip, opts] do
120
+ Tempfile.stub :new, archive_zip, [['inspec-dl-', '.tar.gz']] do
121
+ File.stub :rename, nil, ['/path/to/zip-archive.tar.gz', '/path/to/zip-archive.zip'] do
122
+ Inspec::Targets::ZipHelper.stub :new, ziphelper do
123
+ File.stub :unlink, nil, ['/path/to/zip-archive.zip'] do
124
+ helper.resolve_zip(url, {}).must_equal('zip-content')
125
+ end
126
+ end
127
+ end
128
+ end
129
+ end
130
+ end
131
+ end
132
+ 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.8
4
+ version: 0.9.9
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-11 00:00:00.000000000 Z
11
+ date: 2016-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: r-train
@@ -173,7 +173,6 @@ files:
173
173
  - README.md
174
174
  - Rakefile
175
175
  - bin/inspec
176
- - bin/os
177
176
  - docs/ctl_inspec.rst
178
177
  - docs/dsl_inspec.rst
179
178
  - docs/dsl_resource.rst
@@ -184,66 +183,23 @@ files:
184
183
  - docs/template.rst
185
184
  - examples/README.md
186
185
  - examples/kitchen-ansible/.kitchen.yml
187
- - examples/kitchen-ansible/.kitchen/logs/default-centos-71.log
188
- - examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1204.log
189
- - examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1404.log
190
- - examples/kitchen-ansible/.kitchen/logs/kitchen.log
191
186
  - examples/kitchen-ansible/Gemfile
192
- - examples/kitchen-ansible/Gemfile.lock
193
187
  - examples/kitchen-ansible/README.md
194
188
  - examples/kitchen-ansible/files/nginx.repo
195
189
  - examples/kitchen-ansible/tasks/main.yml
196
190
  - examples/kitchen-ansible/test/integration/default/default.yml
197
191
  - examples/kitchen-ansible/test/integration/default/web_spec.rb
198
192
  - examples/kitchen-chef/.kitchen.yml
199
- - examples/kitchen-chef/.kitchen/default-centos-71.yml
200
- - examples/kitchen-chef/.kitchen/default-ubuntu-1204.yml
201
- - examples/kitchen-chef/.kitchen/default-ubuntu-1404.yml
202
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name
203
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid
204
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/id
205
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid
206
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/private_key
207
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders
208
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/Vagrantfile
209
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
210
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
211
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
212
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
213
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
214
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
215
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/Vagrantfile
216
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
217
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
218
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
219
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
220
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
221
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
222
- - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/Vagrantfile
223
- - examples/kitchen-chef/.kitchen/logs/default-centos-71.log
224
- - examples/kitchen-chef/.kitchen/logs/default-ubuntu-1204.log
225
- - examples/kitchen-chef/.kitchen/logs/default-ubuntu-1404.log
226
- - examples/kitchen-chef/.kitchen/logs/kitchen.log
227
193
  - examples/kitchen-chef/Berksfile
228
- - examples/kitchen-chef/Berksfile.lock
229
194
  - examples/kitchen-chef/Gemfile
230
- - examples/kitchen-chef/Gemfile.lock
231
195
  - examples/kitchen-chef/README.md
232
196
  - examples/kitchen-chef/metadata.rb
233
197
  - examples/kitchen-chef/recipes/default.rb
234
198
  - examples/kitchen-chef/recipes/nginx.rb
235
199
  - examples/kitchen-chef/test/integration/default/web_spec.rb
236
- - examples/kitchen-puppet/.bundle/config
237
200
  - examples/kitchen-puppet/.kitchen.yml
238
- - examples/kitchen-puppet/.kitchen/logs/default-centos-71.log
239
- - examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1204.log
240
- - examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1404.log
241
- - examples/kitchen-puppet/.kitchen/logs/kitchen.log
242
- - examples/kitchen-puppet/.librarian/puppet/config
243
201
  - examples/kitchen-puppet/Gemfile
244
- - examples/kitchen-puppet/Gemfile.lock
245
202
  - examples/kitchen-puppet/Puppetfile
246
- - examples/kitchen-puppet/Puppetfile.lock
247
203
  - examples/kitchen-puppet/README.md
248
204
  - examples/kitchen-puppet/manifests/site.pp
249
205
  - examples/kitchen-puppet/metadata.json
@@ -252,16 +208,11 @@ files:
252
208
  - examples/profile/controls/example.rb
253
209
  - examples/profile/controls/gordon.rb
254
210
  - examples/profile/inspec.yml
255
- - examples/profile/libraries/.DS_Store
256
211
  - examples/profile/libraries/gordon_config.rb
257
- - examples/test-kitchen/.kitchen/logs/default-centos-71.log
258
- - examples/test-kitchen/.kitchen/logs/default-ubuntu-1204.log
259
- - examples/test-kitchen/.kitchen/logs/default-ubuntu-1404.log
260
- - examples/test-kitchen/.kitchen/logs/kitchen.log
261
- - examples/test-kitchen/Berksfile.lock
262
- - examples/test-kitchen/Gemfile.lock
212
+ - examples/resource/controls/tiny.rb
213
+ - examples/resource/inspec.yml
214
+ - examples/resource/libraries/tiny.rb
263
215
  - inspec.gemspec
264
- - lib/.DS_Store
265
216
  - lib/inspec.rb
266
217
  - lib/inspec/archive/tar.rb
267
218
  - lib/inspec/archive/zip.rb
@@ -286,6 +237,7 @@ files:
286
237
  - lib/inspec/targets/folder.rb
287
238
  - lib/inspec/targets/tar.rb
288
239
  - lib/inspec/targets/url.rb
240
+ - lib/inspec/targets/url.rb.orig
289
241
  - lib/inspec/targets/zip.rb
290
242
  - lib/inspec/version.rb
291
243
  - lib/matchers/matchers.rb
@@ -297,7 +249,6 @@ files:
297
249
  - lib/resources/auditd_rules.rb
298
250
  - lib/resources/bond.rb
299
251
  - lib/resources/bridge.rb
300
- - lib/resources/certificate.rb
301
252
  - lib/resources/command.rb
302
253
  - lib/resources/csv.rb
303
254
  - lib/resources/directory.rb
@@ -332,7 +283,6 @@ files:
332
283
  - lib/resources/postgres.rb
333
284
  - lib/resources/postgres_conf.rb
334
285
  - lib/resources/postgres_session.rb
335
- - lib/resources/private_key.rb
336
286
  - lib/resources/processes.rb
337
287
  - lib/resources/registry_key.rb
338
288
  - lib/resources/script.rb
@@ -351,236 +301,12 @@ files:
351
301
  - lib/utils/parser.rb
352
302
  - lib/utils/simpleconfig.rb
353
303
  - tasks/maintainers.rb
354
- - test/chefdk/.gitignore
355
- - test/chefdk/.kitchen.yml
356
- - test/chefdk/Policyfile.rb
357
- - test/chefdk/README.md
358
- - test/chefdk/chefignore
359
- - test/chefdk/metadata.rb
360
- - test/chefdk/recipes/default.rb
361
- - test/chefdk/spec/spec_helper.rb
362
- - test/chefdk/spec/unit/recipes/default_spec.rb
363
- - test/chefdk/test/integration/default/serverspec/default_spec.rb
364
- - test/chefdk/test/integration/helpers/serverspec/spec_helper.rb
365
304
  - test/docker_run.rb
366
305
  - test/docker_test.rb
367
306
  - test/helper.rb
368
- - test/integration/.DS_Store
369
307
  - test/integration/.kitchen.ec2.yml
370
- - test/integration/.kitchen.local.yml
371
308
  - test/integration/.kitchen.yml
372
- - test/integration/.kitchen/default-aws-linux.yml
373
- - test/integration/.kitchen/default-centos-511.yml
374
- - test/integration/.kitchen/default-centos-67.yml
375
- - test/integration/.kitchen/default-centos-7.yml
376
- - test/integration/.kitchen/default-centos-71.yml
377
- - test/integration/.kitchen/default-debian-6010.yml
378
- - test/integration/.kitchen/default-debian-78.yml
379
- - test/integration/.kitchen/default-debian-8.yml
380
- - test/integration/.kitchen/default-debian-81.yml
381
- - test/integration/.kitchen/default-fedora-21.yml
382
- - test/integration/.kitchen/default-fedora-22.yml
383
- - test/integration/.kitchen/default-freebsd-102.yml
384
- - test/integration/.kitchen/default-freebsd-93.yml
385
- - test/integration/.kitchen/default-opensuse-132-x86-64.yml
386
- - test/integration/.kitchen/default-redhat-65.yml
387
- - test/integration/.kitchen/default-redhat-71.yml
388
- - test/integration/.kitchen/default-suse-11sp3.yml
389
- - test/integration/.kitchen/default-suse-12.yml
390
- - test/integration/.kitchen/default-ubuntu-1004.yml
391
- - test/integration/.kitchen/default-ubuntu-1204.yml
392
- - test/integration/.kitchen/default-ubuntu-1404.yml
393
- - test/integration/.kitchen/default-ubuntu-1510.yml
394
- - test/integration/.kitchen/default-windows-2012.yml
395
- - test/integration/.kitchen/default-windows-2012r2.yml
396
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/action_set_name
397
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/creator_uid
398
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/id
399
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/index_uuid
400
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/private_key
401
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/synced_folders
402
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/Vagrantfile
403
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
404
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/action_set_name
405
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/creator_uid
406
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/id
407
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/index_uuid
408
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/private_key
409
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/synced_folders
410
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/Vagrantfile
411
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name
412
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid
413
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/id
414
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid
415
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/private_key
416
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders
417
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/Vagrantfile
418
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/action_set_name
419
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/creator_uid
420
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/id
421
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/index_uuid
422
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/private_key
423
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/synced_folders
424
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/Vagrantfile
425
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/action_set_name
426
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/creator_uid
427
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/id
428
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/index_uuid
429
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/private_key
430
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/synced_folders
431
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/Vagrantfile
432
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name
433
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid
434
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id
435
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid
436
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key
437
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders
438
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/Vagrantfile
439
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/action_set_name
440
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/creator_uid
441
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/id
442
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/index_uuid
443
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/private_key
444
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/synced_folders
445
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/Vagrantfile
446
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
447
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
448
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
449
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
450
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
451
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
452
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
453
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/action_set_name
454
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/creator_uid
455
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/id
456
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/index_uuid
457
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/private_key
458
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/synced_folders
459
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/Vagrantfile
460
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/action_set_name
461
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/creator_uid
462
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/id
463
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/index_uuid
464
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/private_key
465
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/synced_folders
466
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/Vagrantfile
467
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/action_set_name
468
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/creator_uid
469
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/id
470
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/index_uuid
471
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/private_key
472
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/synced_folders
473
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/Vagrantfile
474
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/action_set_name
475
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/creator_uid
476
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/id
477
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/index_uuid
478
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/private_key
479
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/synced_folders
480
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/Vagrantfile
481
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
482
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
483
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
484
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
485
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
486
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
487
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile
488
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
489
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
490
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
491
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
492
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
493
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
494
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile
495
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile
496
- - test/integration/.kitchen/logs/default-aws-linux.log
497
- - test/integration/.kitchen/logs/default-centos-511-i386.log
498
- - test/integration/.kitchen/logs/default-centos-511.log
499
- - test/integration/.kitchen/logs/default-centos-67-i386.log
500
- - test/integration/.kitchen/logs/default-centos-67.log
501
- - test/integration/.kitchen/logs/default-centos-7.log
502
- - test/integration/.kitchen/logs/default-centos-71.log
503
- - test/integration/.kitchen/logs/default-debian-6010-i386.log
504
- - test/integration/.kitchen/logs/default-debian-6010.log
505
- - test/integration/.kitchen/logs/default-debian-78-i386.log
506
- - test/integration/.kitchen/logs/default-debian-78.log
507
- - test/integration/.kitchen/logs/default-debian-8.log
508
- - test/integration/.kitchen/logs/default-debian-81-i386.log
509
- - test/integration/.kitchen/logs/default-debian-81.log
510
- - test/integration/.kitchen/logs/default-fedora-21-i386.log
511
- - test/integration/.kitchen/logs/default-fedora-21.log
512
- - test/integration/.kitchen/logs/default-fedora-22.log
513
- - test/integration/.kitchen/logs/default-freebsd-102.log
514
- - test/integration/.kitchen/logs/default-freebsd-93.log
515
- - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
516
- - test/integration/.kitchen/logs/default-opensuse-132-i386.log
517
- - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
518
- - test/integration/.kitchen/logs/default-redhat-65.log
519
- - test/integration/.kitchen/logs/default-redhat-71.log
520
- - test/integration/.kitchen/logs/default-suse-11sp3.log
521
- - test/integration/.kitchen/logs/default-suse-12.log
522
- - test/integration/.kitchen/logs/default-ubuntu-1004-i386.log
523
- - test/integration/.kitchen/logs/default-ubuntu-1004.log
524
- - test/integration/.kitchen/logs/default-ubuntu-1204-i386.log
525
- - test/integration/.kitchen/logs/default-ubuntu-1204.log
526
- - test/integration/.kitchen/logs/default-ubuntu-1404-i386.log
527
- - test/integration/.kitchen/logs/default-ubuntu-1404.log
528
- - test/integration/.kitchen/logs/default-ubuntu-1510.log
529
- - test/integration/.kitchen/logs/default-windows-2012.log
530
- - test/integration/.kitchen/logs/default-windows-2012r2.log
531
- - test/integration/.kitchen/logs/kitchen.log
532
- - test/integration/.kitchen/logs/new-centos-511-i386.log
533
- - test/integration/.kitchen/logs/new-centos-511.log
534
- - test/integration/.kitchen/logs/new-centos-67-i386.log
535
- - test/integration/.kitchen/logs/new-centos-67.log
536
- - test/integration/.kitchen/logs/new-centos-71.log
537
- - test/integration/.kitchen/logs/new-debian-6010-i386.log
538
- - test/integration/.kitchen/logs/new-debian-6010.log
539
- - test/integration/.kitchen/logs/new-debian-78-i386.log
540
- - test/integration/.kitchen/logs/new-debian-78.log
541
- - test/integration/.kitchen/logs/new-debian-81-i386.log
542
- - test/integration/.kitchen/logs/new-debian-81.log
543
- - test/integration/.kitchen/logs/new-fedora-21-i386.log
544
- - test/integration/.kitchen/logs/new-fedora-21.log
545
- - test/integration/.kitchen/logs/new-fedora-22.log
546
- - test/integration/.kitchen/logs/new-freebsd-102.log
547
- - test/integration/.kitchen/logs/new-freebsd-93.log
548
- - test/integration/.kitchen/logs/new-opensuse-132-i386.log
549
- - test/integration/.kitchen/logs/new-opensuse-132-x86-64.log
550
- - test/integration/.kitchen/logs/new-ubuntu-1004-i386.log
551
- - test/integration/.kitchen/logs/new-ubuntu-1004.log
552
- - test/integration/.kitchen/logs/new-ubuntu-1204-i386.log
553
- - test/integration/.kitchen/logs/new-ubuntu-1204.log
554
- - test/integration/.kitchen/logs/new-ubuntu-1404-i386.log
555
- - test/integration/.kitchen/logs/new-ubuntu-1404.log
556
- - test/integration/.kitchen/logs/test-centos-511-i386.log
557
- - test/integration/.kitchen/logs/test-centos-511.log
558
- - test/integration/.kitchen/logs/test-centos-67-i386.log
559
- - test/integration/.kitchen/logs/test-centos-67.log
560
- - test/integration/.kitchen/logs/test-centos-71.log
561
- - test/integration/.kitchen/logs/test-debian-6010-i386.log
562
- - test/integration/.kitchen/logs/test-debian-6010.log
563
- - test/integration/.kitchen/logs/test-debian-78-i386.log
564
- - test/integration/.kitchen/logs/test-debian-78.log
565
- - test/integration/.kitchen/logs/test-debian-81-i386.log
566
- - test/integration/.kitchen/logs/test-debian-81.log
567
- - test/integration/.kitchen/logs/test-fedora-21-i386.log
568
- - test/integration/.kitchen/logs/test-fedora-21.log
569
- - test/integration/.kitchen/logs/test-fedora-22.log
570
- - test/integration/.kitchen/logs/test-freebsd-102.log
571
- - test/integration/.kitchen/logs/test-freebsd-93.log
572
- - test/integration/.kitchen/logs/test-opensuse-132-i386.log
573
- - test/integration/.kitchen/logs/test-opensuse-132-x86-64.log
574
- - test/integration/.kitchen/logs/test-ubuntu-1004-i386.log
575
- - test/integration/.kitchen/logs/test-ubuntu-1004.log
576
- - test/integration/.kitchen/logs/test-ubuntu-1204-i386.log
577
- - test/integration/.kitchen/logs/test-ubuntu-1204.log
578
- - test/integration/.kitchen/logs/test-ubuntu-1404-i386.log
579
- - test/integration/.kitchen/logs/test-ubuntu-1404.log
580
- - test/integration/.kitchen/new-ubuntu-1404.yml
581
309
  - test/integration/Berksfile
582
- - test/integration/Berksfile.lock
583
- - test/integration/TODO.md
584
310
  - test/integration/cookbooks/os_prepare/files/example.csv
585
311
  - test/integration/cookbooks/os_prepare/files/example.ini
586
312
  - test/integration/cookbooks/os_prepare/files/example.json
@@ -594,15 +320,11 @@ files:
594
320
  - test/integration/cookbooks/os_prepare/recipes/package.rb
595
321
  - test/integration/cookbooks/os_prepare/recipes/registry_key.rb
596
322
  - test/integration/cookbooks/os_prepare/recipes/service.rb
597
- - test/integration/test/.DS_Store
598
- - test/integration/test/integration/.DS_Store
599
- - test/integration/test/integration/default/.DS_Store
600
323
  - test/integration/test/integration/default/_debug_spec.rb
601
324
  - test/integration/test/integration/default/apt_spec.rb
602
- - test/integration/test/integration/default/certificate_spec.rb
603
325
  - test/integration/test/integration/default/compare_matcher_spec.rb
604
326
  - test/integration/test/integration/default/csv_spec.rb
605
- - test/integration/test/integration/default/etc_group.rb
327
+ - test/integration/test/integration/default/etc_group_spec.rb
606
328
  - test/integration/test/integration/default/file_spec.rb
607
329
  - test/integration/test/integration/default/group_spec.rb
608
330
  - test/integration/test/integration/default/ini_spec.rb
@@ -623,23 +345,6 @@ files:
623
345
  - test/resource/file_test.rb
624
346
  - test/resource/ssh_config.rb
625
347
  - test/resource/sshd_config.rb
626
- - test/serverspec/.kitchen.yml
627
- - test/serverspec/.kitchen/default-ubuntu-1404.yml
628
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
629
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
630
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
631
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
632
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
633
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
634
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile
635
- - test/serverspec/.kitchen/logs/default-ubuntu-1404.log
636
- - test/serverspec/.kitchen/logs/kitchen.log
637
- - test/serverspec/Berksfile
638
- - test/serverspec/Berksfile.lock
639
- - test/serverspec/TODO.md
640
- - test/serverspec/test/integration/default/serverspec/os_spec.rb
641
- - test/serverspec/test/integration/default/serverspec/spec_helper.rb
642
- - test/serverspec/test/integration/default/serverspec/sysctl_spec.rb
643
348
  - test/test-extra.yaml
644
349
  - test/test.yaml
645
350
  - test/unit/metadata_test.rb
@@ -681,7 +386,7 @@ files:
681
386
  - test/unit/mock/cmd/ls-1-etc-init.d
682
387
  - test/unit/mock/cmd/ls-sys-class-net-br
683
388
  - test/unit/mock/cmd/lsmod
684
- - test/unit/mock/cmd/lsof-np-itcp
389
+ - test/unit/mock/cmd/lsof-nP-i-FpctPn
685
390
  - test/unit/mock/cmd/mount
686
391
  - test/unit/mock/cmd/mount-multiple
687
392
  - test/unit/mock/cmd/netstat-tulpen
@@ -726,6 +431,9 @@ files:
726
431
  - test/unit/mock/profiles/complete-meta/test/.gitkeep
727
432
  - test/unit/mock/profiles/complete-profile/controls/filesystem_spec.rb
728
433
  - test/unit/mock/profiles/complete-profile/inspec.yml
434
+ - test/unit/mock/profiles/custom-resource/libraries/resource.rb
435
+ - test/unit/mock/profiles/custom-resource/metadata.rb
436
+ - test/unit/mock/profiles/custom-resource/test/.gitkeep
729
437
  - test/unit/mock/profiles/empty/metadata.rb
730
438
  - test/unit/mock/profiles/metadata/metadata.rb
731
439
  - test/unit/profile_context_test.rb
@@ -773,6 +481,7 @@ files:
773
481
  - test/unit/resources/yaml_test.rb
774
482
  - test/unit/resources/yum_test.rb
775
483
  - test/unit/simpleconfig_test.rb
484
+ - test/unit/targets.rb
776
485
  - test/unit/utils/find_files_test.rb
777
486
  - test/unit/utils/passwd_parser_test.rb
778
487
  homepage: https://github.com/chef/inspec
@@ -795,241 +504,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
795
504
  version: '0'
796
505
  requirements: []
797
506
  rubyforge_project:
798
- rubygems_version: 2.4.6
507
+ rubygems_version: 2.4.5.1
799
508
  signing_key:
800
509
  specification_version: 4
801
510
  summary: Validate Inspec compliance checks
802
511
  test_files:
803
- - test/chefdk/.gitignore
804
- - test/chefdk/.kitchen.yml
805
- - test/chefdk/Policyfile.rb
806
- - test/chefdk/README.md
807
- - test/chefdk/chefignore
808
- - test/chefdk/metadata.rb
809
- - test/chefdk/recipes/default.rb
810
- - test/chefdk/spec/spec_helper.rb
811
- - test/chefdk/spec/unit/recipes/default_spec.rb
812
- - test/chefdk/test/integration/default/serverspec/default_spec.rb
813
- - test/chefdk/test/integration/helpers/serverspec/spec_helper.rb
814
512
  - test/docker_run.rb
815
513
  - test/docker_test.rb
816
514
  - test/helper.rb
817
- - test/integration/.DS_Store
818
515
  - test/integration/.kitchen.ec2.yml
819
- - test/integration/.kitchen.local.yml
820
516
  - test/integration/.kitchen.yml
821
- - test/integration/.kitchen/default-aws-linux.yml
822
- - test/integration/.kitchen/default-centos-511.yml
823
- - test/integration/.kitchen/default-centos-67.yml
824
- - test/integration/.kitchen/default-centos-7.yml
825
- - test/integration/.kitchen/default-centos-71.yml
826
- - test/integration/.kitchen/default-debian-6010.yml
827
- - test/integration/.kitchen/default-debian-78.yml
828
- - test/integration/.kitchen/default-debian-8.yml
829
- - test/integration/.kitchen/default-debian-81.yml
830
- - test/integration/.kitchen/default-fedora-21.yml
831
- - test/integration/.kitchen/default-fedora-22.yml
832
- - test/integration/.kitchen/default-freebsd-102.yml
833
- - test/integration/.kitchen/default-freebsd-93.yml
834
- - test/integration/.kitchen/default-opensuse-132-x86-64.yml
835
- - test/integration/.kitchen/default-redhat-65.yml
836
- - test/integration/.kitchen/default-redhat-71.yml
837
- - test/integration/.kitchen/default-suse-11sp3.yml
838
- - test/integration/.kitchen/default-suse-12.yml
839
- - test/integration/.kitchen/default-ubuntu-1004.yml
840
- - test/integration/.kitchen/default-ubuntu-1204.yml
841
- - test/integration/.kitchen/default-ubuntu-1404.yml
842
- - test/integration/.kitchen/default-ubuntu-1510.yml
843
- - test/integration/.kitchen/default-windows-2012.yml
844
- - test/integration/.kitchen/default-windows-2012r2.yml
845
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/action_set_name
846
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/creator_uid
847
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/id
848
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/index_uuid
849
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/private_key
850
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/.vagrant/machines/default/virtualbox/synced_folders
851
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-511/Vagrantfile
852
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
853
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/action_set_name
854
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/creator_uid
855
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/id
856
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/index_uuid
857
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/private_key
858
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/.vagrant/machines/default/virtualbox/synced_folders
859
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67/Vagrantfile
860
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name
861
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid
862
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/id
863
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid
864
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/private_key
865
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders
866
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-71/Vagrantfile
867
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/action_set_name
868
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/creator_uid
869
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/id
870
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/index_uuid
871
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/private_key
872
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/.vagrant/machines/default/virtualbox/synced_folders
873
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-6010/Vagrantfile
874
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/action_set_name
875
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/creator_uid
876
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/id
877
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/index_uuid
878
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/private_key
879
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/.vagrant/machines/default/virtualbox/synced_folders
880
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-78/Vagrantfile
881
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/action_set_name
882
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/creator_uid
883
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/id
884
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/index_uuid
885
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/private_key
886
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/.vagrant/machines/default/virtualbox/synced_folders
887
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-debian-81/Vagrantfile
888
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/action_set_name
889
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/creator_uid
890
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/id
891
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/index_uuid
892
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/private_key
893
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/.vagrant/machines/default/virtualbox/synced_folders
894
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-21/Vagrantfile
895
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
896
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
897
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
898
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
899
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
900
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
901
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
902
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/action_set_name
903
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/creator_uid
904
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/id
905
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/index_uuid
906
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/private_key
907
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/.vagrant/machines/default/virtualbox/synced_folders
908
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-102/Vagrantfile
909
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/action_set_name
910
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/creator_uid
911
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/id
912
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/index_uuid
913
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/private_key
914
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/.vagrant/machines/default/virtualbox/synced_folders
915
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-freebsd-93/Vagrantfile
916
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/action_set_name
917
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/creator_uid
918
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/id
919
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/index_uuid
920
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/private_key
921
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/.vagrant/machines/default/virtualbox/synced_folders
922
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-opensuse-132-x86-64/Vagrantfile
923
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/action_set_name
924
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/creator_uid
925
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/id
926
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/index_uuid
927
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/private_key
928
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/.vagrant/machines/default/virtualbox/synced_folders
929
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1004/Vagrantfile
930
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
931
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
932
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
933
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
934
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
935
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
936
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile
937
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
938
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
939
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
940
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
941
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
942
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
943
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile
944
- - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile
945
- - test/integration/.kitchen/logs/default-aws-linux.log
946
- - test/integration/.kitchen/logs/default-centos-511-i386.log
947
- - test/integration/.kitchen/logs/default-centos-511.log
948
- - test/integration/.kitchen/logs/default-centos-67-i386.log
949
- - test/integration/.kitchen/logs/default-centos-67.log
950
- - test/integration/.kitchen/logs/default-centos-7.log
951
- - test/integration/.kitchen/logs/default-centos-71.log
952
- - test/integration/.kitchen/logs/default-debian-6010-i386.log
953
- - test/integration/.kitchen/logs/default-debian-6010.log
954
- - test/integration/.kitchen/logs/default-debian-78-i386.log
955
- - test/integration/.kitchen/logs/default-debian-78.log
956
- - test/integration/.kitchen/logs/default-debian-8.log
957
- - test/integration/.kitchen/logs/default-debian-81-i386.log
958
- - test/integration/.kitchen/logs/default-debian-81.log
959
- - test/integration/.kitchen/logs/default-fedora-21-i386.log
960
- - test/integration/.kitchen/logs/default-fedora-21.log
961
- - test/integration/.kitchen/logs/default-fedora-22.log
962
- - test/integration/.kitchen/logs/default-freebsd-102.log
963
- - test/integration/.kitchen/logs/default-freebsd-93.log
964
- - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
965
- - test/integration/.kitchen/logs/default-opensuse-132-i386.log
966
- - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
967
- - test/integration/.kitchen/logs/default-redhat-65.log
968
- - test/integration/.kitchen/logs/default-redhat-71.log
969
- - test/integration/.kitchen/logs/default-suse-11sp3.log
970
- - test/integration/.kitchen/logs/default-suse-12.log
971
- - test/integration/.kitchen/logs/default-ubuntu-1004-i386.log
972
- - test/integration/.kitchen/logs/default-ubuntu-1004.log
973
- - test/integration/.kitchen/logs/default-ubuntu-1204-i386.log
974
- - test/integration/.kitchen/logs/default-ubuntu-1204.log
975
- - test/integration/.kitchen/logs/default-ubuntu-1404-i386.log
976
- - test/integration/.kitchen/logs/default-ubuntu-1404.log
977
- - test/integration/.kitchen/logs/default-ubuntu-1510.log
978
- - test/integration/.kitchen/logs/default-windows-2012.log
979
- - test/integration/.kitchen/logs/default-windows-2012r2.log
980
- - test/integration/.kitchen/logs/kitchen.log
981
- - test/integration/.kitchen/logs/new-centos-511-i386.log
982
- - test/integration/.kitchen/logs/new-centos-511.log
983
- - test/integration/.kitchen/logs/new-centos-67-i386.log
984
- - test/integration/.kitchen/logs/new-centos-67.log
985
- - test/integration/.kitchen/logs/new-centos-71.log
986
- - test/integration/.kitchen/logs/new-debian-6010-i386.log
987
- - test/integration/.kitchen/logs/new-debian-6010.log
988
- - test/integration/.kitchen/logs/new-debian-78-i386.log
989
- - test/integration/.kitchen/logs/new-debian-78.log
990
- - test/integration/.kitchen/logs/new-debian-81-i386.log
991
- - test/integration/.kitchen/logs/new-debian-81.log
992
- - test/integration/.kitchen/logs/new-fedora-21-i386.log
993
- - test/integration/.kitchen/logs/new-fedora-21.log
994
- - test/integration/.kitchen/logs/new-fedora-22.log
995
- - test/integration/.kitchen/logs/new-freebsd-102.log
996
- - test/integration/.kitchen/logs/new-freebsd-93.log
997
- - test/integration/.kitchen/logs/new-opensuse-132-i386.log
998
- - test/integration/.kitchen/logs/new-opensuse-132-x86-64.log
999
- - test/integration/.kitchen/logs/new-ubuntu-1004-i386.log
1000
- - test/integration/.kitchen/logs/new-ubuntu-1004.log
1001
- - test/integration/.kitchen/logs/new-ubuntu-1204-i386.log
1002
- - test/integration/.kitchen/logs/new-ubuntu-1204.log
1003
- - test/integration/.kitchen/logs/new-ubuntu-1404-i386.log
1004
- - test/integration/.kitchen/logs/new-ubuntu-1404.log
1005
- - test/integration/.kitchen/logs/test-centos-511-i386.log
1006
- - test/integration/.kitchen/logs/test-centos-511.log
1007
- - test/integration/.kitchen/logs/test-centos-67-i386.log
1008
- - test/integration/.kitchen/logs/test-centos-67.log
1009
- - test/integration/.kitchen/logs/test-centos-71.log
1010
- - test/integration/.kitchen/logs/test-debian-6010-i386.log
1011
- - test/integration/.kitchen/logs/test-debian-6010.log
1012
- - test/integration/.kitchen/logs/test-debian-78-i386.log
1013
- - test/integration/.kitchen/logs/test-debian-78.log
1014
- - test/integration/.kitchen/logs/test-debian-81-i386.log
1015
- - test/integration/.kitchen/logs/test-debian-81.log
1016
- - test/integration/.kitchen/logs/test-fedora-21-i386.log
1017
- - test/integration/.kitchen/logs/test-fedora-21.log
1018
- - test/integration/.kitchen/logs/test-fedora-22.log
1019
- - test/integration/.kitchen/logs/test-freebsd-102.log
1020
- - test/integration/.kitchen/logs/test-freebsd-93.log
1021
- - test/integration/.kitchen/logs/test-opensuse-132-i386.log
1022
- - test/integration/.kitchen/logs/test-opensuse-132-x86-64.log
1023
- - test/integration/.kitchen/logs/test-ubuntu-1004-i386.log
1024
- - test/integration/.kitchen/logs/test-ubuntu-1004.log
1025
- - test/integration/.kitchen/logs/test-ubuntu-1204-i386.log
1026
- - test/integration/.kitchen/logs/test-ubuntu-1204.log
1027
- - test/integration/.kitchen/logs/test-ubuntu-1404-i386.log
1028
- - test/integration/.kitchen/logs/test-ubuntu-1404.log
1029
- - test/integration/.kitchen/new-ubuntu-1404.yml
1030
517
  - test/integration/Berksfile
1031
- - test/integration/Berksfile.lock
1032
- - test/integration/TODO.md
1033
518
  - test/integration/cookbooks/os_prepare/files/example.csv
1034
519
  - test/integration/cookbooks/os_prepare/files/example.ini
1035
520
  - test/integration/cookbooks/os_prepare/files/example.json
@@ -1043,15 +528,11 @@ test_files:
1043
528
  - test/integration/cookbooks/os_prepare/recipes/package.rb
1044
529
  - test/integration/cookbooks/os_prepare/recipes/registry_key.rb
1045
530
  - test/integration/cookbooks/os_prepare/recipes/service.rb
1046
- - test/integration/test/.DS_Store
1047
- - test/integration/test/integration/.DS_Store
1048
- - test/integration/test/integration/default/.DS_Store
1049
531
  - test/integration/test/integration/default/_debug_spec.rb
1050
532
  - test/integration/test/integration/default/apt_spec.rb
1051
- - test/integration/test/integration/default/certificate_spec.rb
1052
533
  - test/integration/test/integration/default/compare_matcher_spec.rb
1053
534
  - test/integration/test/integration/default/csv_spec.rb
1054
- - test/integration/test/integration/default/etc_group.rb
535
+ - test/integration/test/integration/default/etc_group_spec.rb
1055
536
  - test/integration/test/integration/default/file_spec.rb
1056
537
  - test/integration/test/integration/default/group_spec.rb
1057
538
  - test/integration/test/integration/default/ini_spec.rb
@@ -1072,23 +553,6 @@ test_files:
1072
553
  - test/resource/file_test.rb
1073
554
  - test/resource/ssh_config.rb
1074
555
  - test/resource/sshd_config.rb
1075
- - test/serverspec/.kitchen.yml
1076
- - test/serverspec/.kitchen/default-ubuntu-1404.yml
1077
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
1078
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
1079
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
1080
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
1081
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
1082
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
1083
- - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile
1084
- - test/serverspec/.kitchen/logs/default-ubuntu-1404.log
1085
- - test/serverspec/.kitchen/logs/kitchen.log
1086
- - test/serverspec/Berksfile
1087
- - test/serverspec/Berksfile.lock
1088
- - test/serverspec/TODO.md
1089
- - test/serverspec/test/integration/default/serverspec/os_spec.rb
1090
- - test/serverspec/test/integration/default/serverspec/spec_helper.rb
1091
- - test/serverspec/test/integration/default/serverspec/sysctl_spec.rb
1092
556
  - test/test-extra.yaml
1093
557
  - test/test.yaml
1094
558
  - test/unit/metadata_test.rb
@@ -1130,7 +594,7 @@ test_files:
1130
594
  - test/unit/mock/cmd/ls-1-etc-init.d
1131
595
  - test/unit/mock/cmd/ls-sys-class-net-br
1132
596
  - test/unit/mock/cmd/lsmod
1133
- - test/unit/mock/cmd/lsof-np-itcp
597
+ - test/unit/mock/cmd/lsof-nP-i-FpctPn
1134
598
  - test/unit/mock/cmd/mount
1135
599
  - test/unit/mock/cmd/mount-multiple
1136
600
  - test/unit/mock/cmd/netstat-tulpen
@@ -1175,6 +639,9 @@ test_files:
1175
639
  - test/unit/mock/profiles/complete-meta/test/.gitkeep
1176
640
  - test/unit/mock/profiles/complete-profile/controls/filesystem_spec.rb
1177
641
  - test/unit/mock/profiles/complete-profile/inspec.yml
642
+ - test/unit/mock/profiles/custom-resource/libraries/resource.rb
643
+ - test/unit/mock/profiles/custom-resource/metadata.rb
644
+ - test/unit/mock/profiles/custom-resource/test/.gitkeep
1178
645
  - test/unit/mock/profiles/empty/metadata.rb
1179
646
  - test/unit/mock/profiles/metadata/metadata.rb
1180
647
  - test/unit/profile_context_test.rb
@@ -1222,5 +689,6 @@ test_files:
1222
689
  - test/unit/resources/yaml_test.rb
1223
690
  - test/unit/resources/yum_test.rb
1224
691
  - test/unit/simpleconfig_test.rb
692
+ - test/unit/targets.rb
1225
693
  - test/unit/utils/find_files_test.rb
1226
694
  - test/unit/utils/passwd_parser_test.rb