inspec 0.9.9 → 0.9.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (306) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +34 -2
  3. data/README.md +5 -1
  4. data/bin/os +23 -0
  5. data/examples/kitchen-ansible/.kitchen/default-centos-71.yml +6 -0
  6. data/examples/kitchen-ansible/.kitchen/default-ubuntu-1204.yml +6 -0
  7. data/examples/kitchen-ansible/.kitchen/default-ubuntu-1404.yml +6 -0
  8. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  9. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  10. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/id +1 -0
  11. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  12. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/private_key +27 -0
  13. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  14. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/Vagrantfile +9 -0
  15. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  16. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  17. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +1 -0
  18. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  19. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +27 -0
  20. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  21. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/Vagrantfile +9 -0
  22. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  23. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  24. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +1 -0
  25. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  26. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +27 -0
  27. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  28. data/examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/Vagrantfile +9 -0
  29. data/examples/kitchen-ansible/.kitchen/logs/default-centos-71.log +4 -0
  30. data/examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1204.log +4 -0
  31. data/examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1404.log +4 -0
  32. data/examples/kitchen-ansible/.kitchen/logs/kitchen.log +8 -0
  33. data/examples/kitchen-ansible/Gemfile.lock +154 -0
  34. data/examples/kitchen-chef/.kitchen/default-centos-71.yml +6 -0
  35. data/examples/kitchen-chef/.kitchen/default-ubuntu-1204.yml +6 -0
  36. data/examples/kitchen-chef/.kitchen/default-ubuntu-1404.yml +6 -0
  37. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  38. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  39. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/id +1 -0
  40. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  41. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/private_key +27 -0
  42. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  43. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/Vagrantfile +9 -0
  44. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  45. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  46. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +1 -0
  47. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  48. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +27 -0
  49. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  50. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/Vagrantfile +9 -0
  51. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  52. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  53. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +1 -0
  54. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  55. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +27 -0
  56. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  57. data/examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/Vagrantfile +9 -0
  58. data/examples/kitchen-chef/.kitchen/logs/default-centos-71.log +4 -0
  59. data/examples/kitchen-chef/.kitchen/logs/default-ubuntu-1204.log +4 -0
  60. data/examples/kitchen-chef/.kitchen/logs/default-ubuntu-1404.log +4 -0
  61. data/examples/kitchen-chef/.kitchen/logs/kitchen.log +8 -0
  62. data/examples/kitchen-chef/Berksfile.lock +11 -0
  63. data/examples/kitchen-chef/Gemfile.lock +223 -0
  64. data/examples/kitchen-puppet/.bundle/config +2 -0
  65. data/examples/kitchen-puppet/.kitchen/logs/default-centos-71.log +5 -0
  66. data/examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1204.log +5 -0
  67. data/examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1404.log +5 -0
  68. data/examples/kitchen-puppet/.kitchen/logs/kitchen.log +5 -0
  69. data/examples/kitchen-puppet/.librarian/puppet/config +2 -0
  70. data/examples/kitchen-puppet/Gemfile.lock +174 -0
  71. data/examples/kitchen-puppet/Puppetfile.lock +2 -0
  72. data/examples/profile/libraries/.DS_Store +0 -0
  73. data/examples/test-kitchen/.kitchen/logs/default-centos-71.log +5 -0
  74. data/examples/test-kitchen/.kitchen/logs/default-ubuntu-1204.log +5 -0
  75. data/examples/test-kitchen/.kitchen/logs/default-ubuntu-1404.log +5 -0
  76. data/examples/test-kitchen/.kitchen/logs/kitchen.log +5 -0
  77. data/examples/test-kitchen/Berksfile.lock +11 -0
  78. data/examples/test-kitchen/Gemfile.lock +233 -0
  79. data/inspec.gemspec +2 -2
  80. data/lib/.DS_Store +0 -0
  81. data/lib/extras/compliance/README.md +15 -0
  82. data/lib/extras/compliance/compliance.rb +245 -0
  83. data/lib/inspec/metadata.rb +3 -1
  84. data/lib/inspec/profile.rb +2 -0
  85. data/lib/inspec/profile_context.rb +34 -63
  86. data/lib/inspec/resource.rb +23 -0
  87. data/lib/inspec/runner.rb +17 -35
  88. data/lib/inspec/runner_mock.rb +31 -0
  89. data/lib/inspec/runner_rspec.rb +94 -0
  90. data/lib/inspec/targets/dir.rb +2 -4
  91. data/lib/inspec/version.rb +1 -1
  92. data/{test/unit/mock/profiles/complete-meta/test/.gitkeep → lib/resources/certificate.rb} +0 -0
  93. data/lib/resources/command.rb +1 -1
  94. data/lib/resources/postgres_session.rb +10 -15
  95. data/{test/unit/mock/profiles/custom-resource/test/.gitkeep → lib/resources/private_key.rb} +0 -0
  96. data/lib/resources/registry_key.rb +10 -6
  97. data/lib/resources/service.rb +232 -63
  98. data/test/chefdk/.gitignore +16 -0
  99. data/test/chefdk/.kitchen.yml +27 -0
  100. data/test/chefdk/Policyfile.rb +16 -0
  101. data/test/chefdk/README.md +4 -0
  102. data/test/chefdk/chefignore +100 -0
  103. data/test/chefdk/metadata.rb +7 -0
  104. data/test/chefdk/recipes/default.rb +5 -0
  105. data/test/chefdk/spec/spec_helper.rb +2 -0
  106. data/test/chefdk/spec/unit/recipes/default_spec.rb +20 -0
  107. data/test/chefdk/test/integration/default/serverspec/default_spec.rb +9 -0
  108. data/test/chefdk/test/integration/helpers/serverspec/spec_helper.rb +8 -0
  109. data/test/docker_run.rb +5 -1
  110. data/test/docker_test.rb +1 -2
  111. data/test/helper.rb +1 -0
  112. data/test/integration/.kitchen/default-aws-linux.yml +4 -0
  113. data/test/integration/.kitchen/default-centos-7.yml +4 -0
  114. data/test/integration/.kitchen/default-debian-8.yml +4 -0
  115. data/test/integration/.kitchen/default-fedora-22.yml +4 -0
  116. data/test/integration/.kitchen/default-redhat-65.yml +4 -0
  117. data/test/integration/.kitchen/default-redhat-71.yml +4 -0
  118. data/test/integration/.kitchen/default-suse-11sp3.yml +4 -0
  119. data/test/integration/.kitchen/default-suse-12.yml +4 -0
  120. data/test/integration/.kitchen/default-ubuntu-1204.yml +3 -0
  121. data/test/integration/.kitchen/default-ubuntu-1404.yml +4 -0
  122. data/test/integration/.kitchen/default-windows-2012.yml +1 -0
  123. data/test/integration/.kitchen/default-windows-2012r2.yml +2 -0
  124. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile +9 -0
  125. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  126. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  127. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id +1 -0
  128. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  129. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key +27 -0
  130. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  131. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile +9 -0
  132. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  133. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  134. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/id +1 -0
  135. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  136. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/Vagrantfile +8 -0
  137. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  138. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  139. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id +1 -0
  140. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  141. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key +27 -0
  142. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  143. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile +9 -0
  144. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  145. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  146. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +1 -0
  147. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  148. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +27 -0
  149. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  150. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile +9 -0
  151. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  152. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  153. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/id +1 -0
  154. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  155. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/Vagrantfile +8 -0
  156. data/test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile +9 -0
  157. data/test/{unit/mock/profiles/empty/metadata.rb → integration/.kitchen/logs/default-aws-linux.log} +0 -0
  158. data/test/integration/.kitchen/logs/default-centos-511-i386.log +2 -0
  159. data/test/integration/.kitchen/logs/default-centos-511.log +2 -0
  160. data/test/integration/.kitchen/logs/default-centos-67-i386.log +2 -0
  161. data/test/integration/.kitchen/logs/default-centos-67.log +2 -0
  162. data/test/integration/.kitchen/logs/default-centos-7.log +0 -0
  163. data/test/integration/.kitchen/logs/default-centos-71.log +2 -0
  164. data/test/integration/.kitchen/logs/default-debian-6010-i386.log +2 -0
  165. data/test/integration/.kitchen/logs/default-debian-6010.log +2 -0
  166. data/test/integration/.kitchen/logs/default-debian-78-i386.log +2 -0
  167. data/test/integration/.kitchen/logs/default-debian-78.log +2 -0
  168. data/test/integration/.kitchen/logs/default-debian-8.log +0 -0
  169. data/test/integration/.kitchen/logs/default-debian-81-i386.log +2 -0
  170. data/test/integration/.kitchen/logs/default-debian-81.log +2 -0
  171. data/test/integration/.kitchen/logs/default-fedora-21-i386.log +2 -0
  172. data/test/integration/.kitchen/logs/default-fedora-21.log +2 -0
  173. data/test/integration/.kitchen/logs/default-fedora-22.log +0 -0
  174. data/test/integration/.kitchen/logs/default-freebsd-102.log +2 -0
  175. data/test/integration/.kitchen/logs/default-freebsd-93.log +2 -0
  176. data/test/integration/.kitchen/logs/default-mint-172-cinnamon.log +2 -0
  177. data/test/integration/.kitchen/logs/default-modernIE-w10-edge.log +2 -0
  178. data/test/integration/.kitchen/logs/default-modernIE-w7-ie11.log +2 -0
  179. data/test/integration/.kitchen/logs/default-modernIE-w81-ie11.log +2 -0
  180. data/test/integration/.kitchen/logs/default-opensuse-132-i386.log +2 -0
  181. data/test/integration/.kitchen/logs/default-opensuse-132-x86-64.log +2 -0
  182. data/test/integration/.kitchen/logs/default-opentable-win-2008r2-standard-amd64-nocm.log +0 -0
  183. data/test/integration/.kitchen/logs/default-opentable-win-2012r2-standard-amd64-nocm.log +0 -0
  184. data/test/integration/.kitchen/logs/default-redhat-65.log +0 -0
  185. data/test/integration/.kitchen/logs/default-redhat-71.log +0 -0
  186. data/test/integration/.kitchen/logs/default-suse-11sp3.log +0 -0
  187. data/test/integration/.kitchen/logs/default-suse-12.log +0 -0
  188. data/test/integration/.kitchen/logs/default-ubuntu-1004-i386.log +2 -0
  189. data/test/integration/.kitchen/logs/default-ubuntu-1004.log +2 -0
  190. data/test/integration/.kitchen/logs/default-ubuntu-1204-i386.log +2 -0
  191. data/test/integration/.kitchen/logs/default-ubuntu-1204.log +0 -0
  192. data/test/integration/.kitchen/logs/default-ubuntu-1404-i386.log +2 -0
  193. data/test/integration/.kitchen/logs/default-ubuntu-1404.log +0 -0
  194. data/test/integration/.kitchen/logs/default-ubuntu-1510.log +0 -0
  195. data/test/integration/.kitchen/logs/default-windows-2008-opentable.log +2 -0
  196. data/test/integration/.kitchen/logs/default-windows-2008.log +0 -0
  197. data/test/integration/.kitchen/logs/default-windows-2012.log +0 -0
  198. data/test/integration/.kitchen/logs/default-windows-2012R2-matt.log +2 -0
  199. data/test/integration/.kitchen/logs/default-windows-2012r2-opentable.log +2 -0
  200. data/test/integration/.kitchen/logs/default-windows-2012r2.log +41 -0
  201. data/test/integration/.kitchen/logs/kitchen.log +0 -0
  202. data/test/integration/.kitchen/logs/new-centos-511-i386.log +0 -0
  203. data/test/integration/.kitchen/logs/new-centos-511.log +0 -0
  204. data/test/integration/.kitchen/logs/new-centos-67-i386.log +0 -0
  205. data/test/integration/.kitchen/logs/new-centos-67.log +0 -0
  206. data/test/integration/.kitchen/logs/new-centos-71.log +0 -0
  207. data/test/integration/.kitchen/logs/new-debian-6010-i386.log +0 -0
  208. data/test/integration/.kitchen/logs/new-debian-6010.log +0 -0
  209. data/test/integration/.kitchen/logs/new-debian-78-i386.log +0 -0
  210. data/test/integration/.kitchen/logs/new-debian-78.log +0 -0
  211. data/test/integration/.kitchen/logs/new-debian-81-i386.log +0 -0
  212. data/test/integration/.kitchen/logs/new-debian-81.log +0 -0
  213. data/test/integration/.kitchen/logs/new-fedora-21-i386.log +0 -0
  214. data/test/integration/.kitchen/logs/new-fedora-21.log +0 -0
  215. data/test/integration/.kitchen/logs/new-fedora-22.log +0 -0
  216. data/test/integration/.kitchen/logs/new-freebsd-102.log +0 -0
  217. data/test/integration/.kitchen/logs/new-freebsd-93.log +0 -0
  218. data/test/integration/.kitchen/logs/new-opensuse-132-i386.log +0 -0
  219. data/test/integration/.kitchen/logs/new-opensuse-132-x86-64.log +0 -0
  220. data/test/integration/.kitchen/logs/new-ubuntu-1004-i386.log +0 -0
  221. data/test/integration/.kitchen/logs/new-ubuntu-1004.log +0 -0
  222. data/test/integration/.kitchen/logs/new-ubuntu-1204-i386.log +0 -0
  223. data/test/integration/.kitchen/logs/new-ubuntu-1204.log +0 -0
  224. data/test/integration/.kitchen/logs/new-ubuntu-1404-i386.log +0 -0
  225. data/test/integration/.kitchen/logs/new-ubuntu-1404.log +3 -0
  226. data/test/integration/.kitchen/logs/test-centos-511-i386.log +0 -0
  227. data/test/integration/.kitchen/logs/test-centos-511.log +0 -0
  228. data/test/integration/.kitchen/logs/test-centos-67-i386.log +0 -0
  229. data/test/integration/.kitchen/logs/test-centos-67.log +0 -0
  230. data/test/integration/.kitchen/logs/test-centos-71.log +0 -0
  231. data/test/integration/.kitchen/logs/test-debian-6010-i386.log +0 -0
  232. data/test/integration/.kitchen/logs/test-debian-6010.log +0 -0
  233. data/test/integration/.kitchen/logs/test-debian-78-i386.log +0 -0
  234. data/test/integration/.kitchen/logs/test-debian-78.log +0 -0
  235. data/test/integration/.kitchen/logs/test-debian-81-i386.log +0 -0
  236. data/test/integration/.kitchen/logs/test-debian-81.log +0 -0
  237. data/test/integration/.kitchen/logs/test-fedora-21-i386.log +0 -0
  238. data/test/integration/.kitchen/logs/test-fedora-21.log +0 -0
  239. data/test/integration/.kitchen/logs/test-fedora-22.log +0 -0
  240. data/test/integration/.kitchen/logs/test-freebsd-102.log +0 -0
  241. data/test/integration/.kitchen/logs/test-freebsd-93.log +0 -0
  242. data/test/integration/.kitchen/logs/test-opensuse-132-i386.log +0 -0
  243. data/test/integration/.kitchen/logs/test-opensuse-132-x86-64.log +0 -0
  244. data/test/integration/.kitchen/logs/test-ubuntu-1004-i386.log +0 -0
  245. data/test/integration/.kitchen/logs/test-ubuntu-1004.log +0 -0
  246. data/test/integration/.kitchen/logs/test-ubuntu-1204-i386.log +0 -0
  247. data/test/integration/.kitchen/logs/test-ubuntu-1204.log +0 -0
  248. data/test/integration/.kitchen/logs/test-ubuntu-1404-i386.log +0 -0
  249. data/test/integration/.kitchen/logs/test-ubuntu-1404.log +0 -0
  250. data/test/integration/.kitchen/new-ubuntu-1404.yml +1 -0
  251. data/test/integration/Berksfile +1 -0
  252. data/test/integration/Berksfile.lock +27 -0
  253. data/test/integration/TODO.md +15 -0
  254. data/test/integration/cookbooks/os_prepare/files/empty.iso +0 -0
  255. data/test/integration/cookbooks/os_prepare/metadata.rb +2 -0
  256. data/test/integration/cookbooks/os_prepare/recipes/_runit_service_centos.rb +34 -0
  257. data/test/integration/cookbooks/os_prepare/recipes/default.rb +1 -0
  258. data/test/integration/cookbooks/os_prepare/recipes/mount.rb +5 -5
  259. data/test/integration/cookbooks/os_prepare/recipes/postgres.rb +12 -0
  260. data/test/integration/cookbooks/os_prepare/recipes/service.rb +6 -2
  261. data/test/integration/cookbooks/os_prepare/templates/default/sv-default-svlog-run.erb +3 -0
  262. data/test/integration/test/.DS_Store +0 -0
  263. data/test/integration/test/integration/.DS_Store +0 -0
  264. data/test/integration/test/integration/default/.DS_Store +0 -0
  265. data/test/integration/test/integration/default/certificate_spec.rb +7 -0
  266. data/test/integration/test/integration/default/file_spec.rb +2 -2
  267. data/test/integration/test/integration/default/mount_spec.rb +1 -1
  268. data/test/integration/test/integration/default/postgres_session_spec.rb +9 -0
  269. data/test/integration/test/integration/default/service_spec.rb +34 -0
  270. data/test/mac/service_spec.rb +5 -0
  271. data/test/serverspec/.kitchen.yml +18 -0
  272. data/test/serverspec/.kitchen/default-ubuntu-1404.yml +6 -0
  273. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name +1 -0
  274. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid +1 -0
  275. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id +1 -0
  276. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid +1 -0
  277. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key +27 -0
  278. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders +1 -0
  279. data/test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile +9 -0
  280. data/test/serverspec/.kitchen/logs/default-ubuntu-1404.log +2 -0
  281. data/test/serverspec/.kitchen/logs/kitchen.log +3 -0
  282. data/test/serverspec/Berksfile +3 -0
  283. data/test/serverspec/Berksfile.lock +5 -0
  284. data/test/serverspec/TODO.md +2 -0
  285. data/test/serverspec/test/integration/default/serverspec/os_spec.rb +25 -0
  286. data/test/serverspec/test/integration/default/serverspec/spec_helper.rb +48 -0
  287. data/test/serverspec/test/integration/default/serverspec/sysctl_spec.rb +37 -0
  288. data/test/unit/metadata_test.rb +13 -1
  289. data/test/unit/mock/profiles/complete-metadata/inspec.yml +7 -0
  290. data/test/unit/mock/profiles/empty-metadata/inspec.yml +0 -0
  291. data/test/unit/mock/profiles/{complete-meta → legacy-complete-metadata}/metadata.rb +0 -0
  292. data/test/unit/mock/profiles/legacy-complete-metadata/test/.gitkeep +0 -0
  293. data/test/unit/mock/profiles/legacy-empty-metadata/controls/.gitkeep +0 -0
  294. data/test/unit/mock/profiles/legacy-empty-metadata/metadata.rb +0 -0
  295. data/test/unit/mock/profiles/{metadata → legacy-simple-metadata}/metadata.rb +0 -0
  296. data/test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep +0 -0
  297. data/test/unit/mock/profiles/simple-metadata/inspec.yml +1 -0
  298. data/test/unit/profile_test.rb +82 -31
  299. data/test/unit/resources/service_test.rb +67 -3
  300. metadata +466 -23
  301. data/examples/resource/controls/tiny.rb +0 -3
  302. data/examples/resource/inspec.yml +0 -10
  303. data/examples/resource/libraries/tiny.rb +0 -3
  304. data/lib/inspec/targets/url.rb.orig +0 -87
  305. data/test/unit/mock/profiles/custom-resource/libraries/resource.rb +0 -3
  306. data/test/unit/mock/profiles/custom-resource/metadata.rb +0 -7
@@ -0,0 +1,37 @@
1
+ # encoding: utf-8
2
+
3
+ require 'spec_helper'
4
+
5
+ # do we support nested syntax
6
+ # describe 'IP V4 networking' do
7
+
8
+ context linux_kernel_parameter('net.ipv4.ip_forward') do
9
+ its(:value) { should eq 0 }
10
+ end
11
+
12
+ context linux_kernel_parameter('net.ipv4.conf.all.forwarding') do
13
+ its(:value) { should eq 0 }
14
+ end
15
+
16
+ # end
17
+
18
+ # describe 'ExecShield' do
19
+
20
+ # check if we find the nx flag
21
+ if command('cat /proc/cpuinfo').stdout =~ /^flags.*?:.*? nx( .*?)?$/
22
+ true
23
+ else
24
+ # if no nx flag is present, we require exec-shield
25
+ context 'No nx flag detected' do
26
+ it 'require kernel.exec-shield' do
27
+ context linux_kernel_parameter('kernel.exec-shield') do
28
+ its(:value) { should eq 1 }
29
+ end
30
+ end
31
+ end
32
+ end
33
+
34
+ context linux_kernel_parameter('kernel.randomize_va_space') do
35
+ its(:value) { should eq 2 }
36
+ end
37
+ # end
@@ -6,6 +6,8 @@ require 'helper'
6
6
  require 'inspec/metadata'
7
7
 
8
8
  describe 'metadata with supported operating systems' do
9
+ let(:logger) { Minitest::Mock.new }
10
+
9
11
  describe 'running on ubuntu 14.04' do
10
12
  let (:backend) { MockLoader.new(:ubuntu1404).backend }
11
13
 
@@ -38,7 +40,7 @@ describe 'metadata with supported operating systems' do
38
40
  # @param [Type] params describe params
39
41
  # @return [Type] description of returned object
40
42
  def create_meta(params)
41
- res = Inspec::Metadata.from_yaml('mock', "---", nil)
43
+ res = Inspec::Metadata.from_yaml('mock', "---", nil, logger)
42
44
  # manually inject supported parameters
43
45
  res.params[:supports] = params
44
46
  Inspec::Metadata.finalize(res, 'mock')
@@ -50,6 +52,16 @@ describe 'metadata with supported operating systems' do
50
52
  m.supports_transport?(backend).must_equal true
51
53
  end
52
54
 
55
+ it 'supports legacy simple support style, but warns' do
56
+ # i.e. setting this to something that would fail:
57
+ m = create_meta('linux')
58
+ logger.expect :warn, nil, [
59
+ 'Do not use deprecated `supports: linux` '\
60
+ 'syntax. Instead use `supports: {os-family: linux}`.']
61
+ m.supports_transport?(backend).must_equal true
62
+ logger.verify
63
+ end
64
+
53
65
  it 'loads a profile which supports os ubuntu' do
54
66
  m = create_meta({ 'os' => 'ubuntu' })
55
67
  m.supports_transport?(backend).must_equal true
@@ -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: linux
File without changes
@@ -0,0 +1 @@
1
+ name: yumyum profile
@@ -3,30 +3,33 @@
3
3
  # author: Dominik Richter
4
4
 
5
5
  require 'helper'
6
+ require 'inspec/profile_context'
7
+ require 'inspec/runner'
8
+ require 'inspec/runner_mock'
6
9
 
7
10
  describe Inspec::Profile do
8
- before {
9
- # mock up the profile runner
10
- # TODO: try to take the real profile runner here;
11
- # currently it's stopped at test runner conflicts
12
- class Inspec::Profile::Runner
13
- def initialize(opts) end
14
- def add_tests(tests, options=nil) end
15
- def rules
16
- {}
17
- end
18
- end
19
- }
20
-
21
11
  let(:logger) { Minitest::Mock.new }
22
12
  let(:home) { File.dirname(__FILE__) }
23
13
 
24
14
  def load_profile(name, opts = {})
15
+ opts[:test_collector] = Inspec::RunnerMock.new
25
16
  Inspec::Profile.from_path("#{home}/mock/profiles/#{name}", opts)
26
17
  end
27
18
 
28
- describe 'with empty profile' do
29
- let(:profile) { load_profile('empty') }
19
+ describe 'with an empty profile' do
20
+ let(:profile) { load_profile('empty-metadata') }
21
+
22
+ it 'has no metadata' do
23
+ profile.params[:name].must_be_nil
24
+ end
25
+
26
+ it 'has no rules' do
27
+ profile.params[:rules].must_equal({})
28
+ end
29
+ end
30
+
31
+ describe 'with an empty profile (legacy mode)' do
32
+ let(:profile) { load_profile('legacy-empty-metadata') }
30
33
 
31
34
  it 'has no metadata' do
32
35
  profile.params[:name].must_be_nil
@@ -37,8 +40,27 @@ describe Inspec::Profile do
37
40
  end
38
41
  end
39
42
 
40
- describe 'with normal metadata in profile' do
41
- let(:profile) { load_profile('metadata') }
43
+ describe 'with simple metadata in profile' do
44
+ let(:profile_id) { 'simple-metadata' }
45
+ let(:profile) { load_profile(profile_id) }
46
+
47
+ it 'has metadata' do
48
+ profile.params[:name].must_equal 'yumyum profile'
49
+ end
50
+
51
+ it 'has no rules' do
52
+ profile.params[:rules].must_equal({})
53
+ end
54
+
55
+ it 'can overwrite the profile ID' do
56
+ testID = rand.to_s
57
+ res = load_profile(profile_id, id: testID)
58
+ res.params[:name].must_equal testID
59
+ end
60
+ end
61
+
62
+ describe 'with simple metadata in profile (legacy mode)' do
63
+ let(:profile) { load_profile('legacy-simple-metadata') }
42
64
 
43
65
  it 'has metadata' do
44
66
  profile.params[:name].must_equal 'metadata profile'
@@ -51,10 +73,28 @@ describe Inspec::Profile do
51
73
 
52
74
  describe 'when checking' do
53
75
  describe 'an empty profile' do
54
- let(:profile) { load_profile('empty', {logger: logger}) }
76
+ let(:profile_id) { 'empty-metadata' }
55
77
 
56
78
  it 'prints loads of warnings' do
57
- logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/empty"]
79
+ logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/#{profile_id}"]
80
+ logger.expect :error, nil, ['Missing profile name in inspec.yml']
81
+ logger.expect :error, nil, ['Missing profile version in inspec.yml']
82
+ logger.expect :warn, nil, ['Missing profile title in inspec.yml']
83
+ logger.expect :warn, nil, ['Missing profile summary in inspec.yml']
84
+ logger.expect :warn, nil, ['Missing profile maintainer in inspec.yml']
85
+ logger.expect :warn, nil, ['Missing profile copyright in inspec.yml']
86
+ logger.expect :warn, nil, ['No controls or tests were defined.']
87
+
88
+ load_profile(profile_id, {logger: logger}).check
89
+ logger.verify
90
+ end
91
+ end
92
+
93
+ describe 'an empty profile (legacy mode)' do
94
+ let(:profile_id) { 'legacy-empty-metadata' }
95
+
96
+ it 'prints loads of warnings' do
97
+ logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/#{profile_id}"]
58
98
  logger.expect :warn, nil, ['The use of `metadata.rb` is deprecated. Use `inspec.yml`.']
59
99
  logger.expect :error, nil, ['Missing profile name in metadata.rb']
60
100
  logger.expect :error, nil, ['Missing profile version in metadata.rb']
@@ -64,16 +104,31 @@ describe Inspec::Profile do
64
104
  logger.expect :warn, nil, ['Missing profile copyright in metadata.rb']
65
105
  logger.expect :warn, nil, ['No controls or tests were defined.']
66
106
 
107
+ load_profile(profile_id, {logger: logger}).check
108
+ logger.verify
109
+ end
110
+ end
111
+
112
+ describe 'a complete metadata profile' do
113
+ let(:profile_id) { 'complete-metadata' }
114
+ let(:profile) { load_profile(profile_id, {logger: logger}) }
115
+
116
+ it 'prints ok messages' do
117
+ logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/#{profile_id}"]
118
+ logger.expect :info, nil, ['Metadata OK.']
119
+ logger.expect :warn, nil, ['No controls or tests were defined.']
120
+
67
121
  profile.check
68
122
  logger.verify
69
123
  end
70
124
  end
71
125
 
72
126
  describe 'a complete metadata profile (legacy mode)' do
73
- let(:profile) { load_profile('complete-meta', {logger: logger}) }
127
+ let(:profile_id) { 'legacy-complete-metadata' }
128
+ let(:profile) { load_profile(profile_id, {logger: logger}) }
74
129
 
75
130
  it 'prints ok messages' do
76
- logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/complete-meta"]
131
+ logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/#{profile_id}"]
77
132
  logger.expect :warn, nil, ['The use of `metadata.rb` is deprecated. Use `inspec.yml`.']
78
133
  logger.expect :info, nil, ['Metadata OK.']
79
134
  logger.expect :warn, nil, ["Profile uses deprecated `test` directory, rename it to `controls`."]
@@ -89,20 +144,16 @@ describe Inspec::Profile do
89
144
  end
90
145
 
91
146
  describe 'a complete metadata profile with controls' do
92
- let(:profile) { load_profile('complete-profile', {logger: logger, ignore_supports: true}) }
147
+ let(:profile_id) { 'complete-profile' }
93
148
 
94
149
  it 'prints ok messages and counts the rules' do
95
- logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/complete-profile"]
150
+ logger.expect :info, nil, ["Checking profile in #{home}/mock/profiles/#{profile_id}"]
96
151
  logger.expect :info, nil, ['Metadata OK.']
152
+ logger.expect :info, nil, ['Found 1 rules.']
153
+ logger.expect :debug, nil, ["Verify all rules in #{home}/mock/profiles/#{profile_id}/controls/filesystem_spec.rb"]
154
+ logger.expect :info, nil, ['Rule definitions OK.']
97
155
 
98
- # TODO: cannot load rspec in unit tests, therefore we get a loading warn
99
- # RSpec does not work with minitest tests
100
- logger.expect :warn, nil, ['No controls or tests were defined.']
101
- # we expect that this should work:
102
- # logger.expect :info, nil, ['Found 1 rules.']
103
- # logger.expect :info, nil, ['Rule definitions OK.']
104
-
105
- profile.check
156
+ load_profile(profile_id, {logger: logger, ignore_supports: true}).check
106
157
  logger.verify
107
158
  end
108
159
  end
@@ -27,6 +27,15 @@ describe 'Inspec::Resources::Service' do
27
27
  _(resource.running?).must_equal true
28
28
  end
29
29
 
30
+ it 'verify ubuntu package parsing with default upstart_service' do
31
+ resource = MockLoader.new(:ubuntu1404).load_resource('upstart_service', 'ssh')
32
+ srv = { name: 'ssh', description: nil, installed: true, running: true, enabled: true, type: 'upstart' }
33
+ _(resource.info).must_equal srv
34
+ _(resource.installed?).must_equal true
35
+ _(resource.enabled?).must_equal true
36
+ _(resource.running?).must_equal true
37
+ end
38
+
30
39
  # ubuntu 15.04 with systemd
31
40
  it 'verify ubuntu package parsing' do
32
41
  resource = MockLoader.new(:ubuntu1504).load_resource('service', 'sshd')
@@ -37,7 +46,16 @@ describe 'Inspec::Resources::Service' do
37
46
  _(resource.running?).must_equal true
38
47
  end
39
48
 
40
- # centos 6 with systemv
49
+ it 'verify ubuntu package parsing with default systemd_service' do
50
+ resource = MockLoader.new(:ubuntu1504).load_resource('systemd_service', 'sshd')
51
+ srv = { name: 'sshd.service', description: 'OpenSSH server daemon', installed: true, running: true, enabled: true, type: 'systemd' }
52
+ _(resource.info).must_equal srv
53
+ _(resource.installed?).must_equal true
54
+ _(resource.enabled?).must_equal true
55
+ _(resource.running?).must_equal true
56
+ end
57
+
58
+ # centos 6 with sysv
41
59
  it 'verify centos 6 package parsing' do
42
60
  resource = MockLoader.new(:centos6).load_resource('service', 'sshd')
43
61
  srv = { name: 'sshd', description: nil, installed: true, running: true, enabled: true, type: 'sysv' }
@@ -47,6 +65,15 @@ describe 'Inspec::Resources::Service' do
47
65
  _(resource.running?).must_equal true
48
66
  end
49
67
 
68
+ it 'verify centos 6 package parsing with default sysv_service' do
69
+ resource = MockLoader.new(:centos6).load_resource('sysv_service', 'sshd')
70
+ srv = { name: 'sshd', description: nil, installed: true, running: true, enabled: true, type: 'sysv' }
71
+ _(resource.info).must_equal srv
72
+ _(resource.installed?).must_equal true
73
+ _(resource.enabled?).must_equal true
74
+ _(resource.running?).must_equal true
75
+ end
76
+
50
77
  # centos 7 with systemd
51
78
  it 'verify centos 7 package parsing' do
52
79
  resource = MockLoader.new(:centos7).load_resource('service', 'sshd')
@@ -57,6 +84,15 @@ describe 'Inspec::Resources::Service' do
57
84
  _(resource.running?).must_equal true
58
85
  end
59
86
 
87
+ it 'verify centos 7 package parsing with systemd_service and service_ctl override' do
88
+ resource = MockLoader.new(:centos7).load_resource('systemd_service', 'sshd', '/path/to/systemctl')
89
+ srv = { name: 'sshd.service', description: 'OpenSSH server daemon', installed: true, running: true, enabled: true, type: 'systemd' }
90
+ _(resource.info).must_equal srv
91
+ _(resource.installed?).must_equal true
92
+ _(resource.enabled?).must_equal true
93
+ _(resource.running?).must_equal true
94
+ end
95
+
60
96
  # freebsd
61
97
  it 'verify freebsd10 package parsing' do
62
98
  resource = MockLoader.new(:freebsd10).load_resource('service', 'sendmail')
@@ -67,6 +103,15 @@ describe 'Inspec::Resources::Service' do
67
103
  _(resource.running?).must_equal true
68
104
  end
69
105
 
106
+ it 'verify freebsd10 package parsing with default bsd_service' do
107
+ resource = MockLoader.new(:freebsd10).load_resource('bsd_service', 'sendmail')
108
+ srv = { name: 'sendmail', description: nil, installed: true, running: true, enabled: true, type: 'bsd-init' }
109
+ _(resource.info).must_equal srv
110
+ _(resource.installed?).must_equal true
111
+ _(resource.enabled?).must_equal true
112
+ _(resource.running?).must_equal true
113
+ end
114
+
70
115
  # arch linux with systemd
71
116
  it 'verify arch linux package parsing' do
72
117
  resource = MockLoader.new(:arch).load_resource('service', 'sshd')
@@ -88,7 +133,7 @@ describe 'Inspec::Resources::Service' do
88
133
  end
89
134
 
90
135
  # debian 8 with systemd
91
- it 'verify arch linux package parsing' do
136
+ it 'verify debian 8 package parsing' do
92
137
  resource = MockLoader.new(:debian8).load_resource('service', 'sshd')
93
138
  srv = { name: 'sshd.service', description: 'OpenSSH server daemon', installed: true, running: true, enabled: true, type: 'systemd' }
94
139
  _(resource.info).must_equal srv
@@ -98,7 +143,7 @@ describe 'Inspec::Resources::Service' do
98
143
  end
99
144
 
100
145
  # macos test
101
- it 'verify arch linux package parsing' do
146
+ it 'verify mac osx package parsing' do
102
147
  resource = MockLoader.new(:osx104).load_resource('service', 'ssh')
103
148
  srv = { name: 'org.openbsd.ssh-agent', description: nil, installed: true, running: true, enabled: true, type: 'darwin' }
104
149
  _(resource.info).must_equal srv
@@ -107,6 +152,24 @@ describe 'Inspec::Resources::Service' do
107
152
  _(resource.running?).must_equal true
108
153
  end
109
154
 
155
+ it 'verify mac osx package parsing with not-running service' do
156
+ resource = MockLoader.new(:osx104).load_resource('service', 'FilesystemUI')
157
+ srv = { name: 'com.apple.FilesystemUI', description: nil, installed: true, running: false, enabled: true, type: 'darwin' }
158
+ _(resource.info).must_equal srv
159
+ _(resource.installed?).must_equal true
160
+ _(resource.enabled?).must_equal true
161
+ _(resource.running?).must_equal false
162
+ end
163
+
164
+ it 'verify mac osx package parsing with default launchd_service' do
165
+ resource = MockLoader.new(:osx104).load_resource('launchd_service', 'ssh')
166
+ srv = { name: 'org.openbsd.ssh-agent', description: nil, installed: true, running: true, enabled: true, type: 'darwin' }
167
+ _(resource.info).must_equal srv
168
+ _(resource.installed?).must_equal true
169
+ _(resource.enabled?).must_equal true
170
+ _(resource.running?).must_equal true
171
+ end
172
+
110
173
  # wrlinux
111
174
  it 'verify wrlinux package parsing' do
112
175
  resource = MockLoader.new(:wrlinux).load_resource('service', 'sshd')
@@ -117,6 +180,7 @@ describe 'Inspec::Resources::Service' do
117
180
  _(resource.running?).must_equal true
118
181
  end
119
182
 
183
+
120
184
  # unknown OS
121
185
  it 'verify package handling on unsupported os' do
122
186
  resource = MockLoader.new(:undefined).load_resource('service', 'dhcp')
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.9
4
+ version: 0.9.10
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-16 00:00:00.000000000 Z
11
+ date: 2016-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: r-train
@@ -156,7 +156,10 @@ dependencies:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
158
  version: '1.1'
159
- description: Validate Inspec compliance checks.
159
+ description: InSpec provides a framework for creating end-to-end infrastructure tests.
160
+ You can use it for integration or even compliance testing. Create fully portable
161
+ test profiles and use them in your workflow to ensure stability and security. Integrate
162
+ InSpec in your change lifecycle for local testing, CI/CD, and deployment verification.
160
163
  email:
161
164
  - dominik.richter@gmail.com
162
165
  executables:
@@ -173,6 +176,7 @@ files:
173
176
  - README.md
174
177
  - Rakefile
175
178
  - bin/inspec
179
+ - bin/os
176
180
  - docs/ctl_inspec.rst
177
181
  - docs/dsl_inspec.rst
178
182
  - docs/dsl_resource.rst
@@ -183,23 +187,90 @@ files:
183
187
  - docs/template.rst
184
188
  - examples/README.md
185
189
  - examples/kitchen-ansible/.kitchen.yml
190
+ - examples/kitchen-ansible/.kitchen/default-centos-71.yml
191
+ - examples/kitchen-ansible/.kitchen/default-ubuntu-1204.yml
192
+ - examples/kitchen-ansible/.kitchen/default-ubuntu-1404.yml
193
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name
194
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid
195
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/id
196
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid
197
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/private_key
198
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders
199
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-centos-71/Vagrantfile
200
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
201
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
202
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
203
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
204
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
205
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
206
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1204/Vagrantfile
207
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
208
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
209
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
210
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
211
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
212
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
213
+ - examples/kitchen-ansible/.kitchen/kitchen-vagrant/kitchen-kitchen-ansible-default-ubuntu-1404/Vagrantfile
214
+ - examples/kitchen-ansible/.kitchen/logs/default-centos-71.log
215
+ - examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1204.log
216
+ - examples/kitchen-ansible/.kitchen/logs/default-ubuntu-1404.log
217
+ - examples/kitchen-ansible/.kitchen/logs/kitchen.log
186
218
  - examples/kitchen-ansible/Gemfile
219
+ - examples/kitchen-ansible/Gemfile.lock
187
220
  - examples/kitchen-ansible/README.md
188
221
  - examples/kitchen-ansible/files/nginx.repo
189
222
  - examples/kitchen-ansible/tasks/main.yml
190
223
  - examples/kitchen-ansible/test/integration/default/default.yml
191
224
  - examples/kitchen-ansible/test/integration/default/web_spec.rb
192
225
  - examples/kitchen-chef/.kitchen.yml
226
+ - examples/kitchen-chef/.kitchen/default-centos-71.yml
227
+ - examples/kitchen-chef/.kitchen/default-ubuntu-1204.yml
228
+ - examples/kitchen-chef/.kitchen/default-ubuntu-1404.yml
229
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/action_set_name
230
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/creator_uid
231
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/id
232
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/index_uuid
233
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/private_key
234
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/.vagrant/machines/default/virtualbox/synced_folders
235
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-centos-71/Vagrantfile
236
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
237
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
238
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
239
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
240
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
241
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
242
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1204/Vagrantfile
243
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
244
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
245
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
246
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
247
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
248
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
249
+ - examples/kitchen-chef/.kitchen/kitchen-vagrant/kitchen-kitchen-chef-default-ubuntu-1404/Vagrantfile
250
+ - examples/kitchen-chef/.kitchen/logs/default-centos-71.log
251
+ - examples/kitchen-chef/.kitchen/logs/default-ubuntu-1204.log
252
+ - examples/kitchen-chef/.kitchen/logs/default-ubuntu-1404.log
253
+ - examples/kitchen-chef/.kitchen/logs/kitchen.log
193
254
  - examples/kitchen-chef/Berksfile
255
+ - examples/kitchen-chef/Berksfile.lock
194
256
  - examples/kitchen-chef/Gemfile
257
+ - examples/kitchen-chef/Gemfile.lock
195
258
  - examples/kitchen-chef/README.md
196
259
  - examples/kitchen-chef/metadata.rb
197
260
  - examples/kitchen-chef/recipes/default.rb
198
261
  - examples/kitchen-chef/recipes/nginx.rb
199
262
  - examples/kitchen-chef/test/integration/default/web_spec.rb
263
+ - examples/kitchen-puppet/.bundle/config
200
264
  - examples/kitchen-puppet/.kitchen.yml
265
+ - examples/kitchen-puppet/.kitchen/logs/default-centos-71.log
266
+ - examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1204.log
267
+ - examples/kitchen-puppet/.kitchen/logs/default-ubuntu-1404.log
268
+ - examples/kitchen-puppet/.kitchen/logs/kitchen.log
269
+ - examples/kitchen-puppet/.librarian/puppet/config
201
270
  - examples/kitchen-puppet/Gemfile
271
+ - examples/kitchen-puppet/Gemfile.lock
202
272
  - examples/kitchen-puppet/Puppetfile
273
+ - examples/kitchen-puppet/Puppetfile.lock
203
274
  - examples/kitchen-puppet/README.md
204
275
  - examples/kitchen-puppet/manifests/site.pp
205
276
  - examples/kitchen-puppet/metadata.json
@@ -208,11 +279,18 @@ files:
208
279
  - examples/profile/controls/example.rb
209
280
  - examples/profile/controls/gordon.rb
210
281
  - examples/profile/inspec.yml
282
+ - examples/profile/libraries/.DS_Store
211
283
  - examples/profile/libraries/gordon_config.rb
212
- - examples/resource/controls/tiny.rb
213
- - examples/resource/inspec.yml
214
- - examples/resource/libraries/tiny.rb
284
+ - examples/test-kitchen/.kitchen/logs/default-centos-71.log
285
+ - examples/test-kitchen/.kitchen/logs/default-ubuntu-1204.log
286
+ - examples/test-kitchen/.kitchen/logs/default-ubuntu-1404.log
287
+ - examples/test-kitchen/.kitchen/logs/kitchen.log
288
+ - examples/test-kitchen/Berksfile.lock
289
+ - examples/test-kitchen/Gemfile.lock
215
290
  - inspec.gemspec
291
+ - lib/.DS_Store
292
+ - lib/extras/compliance/README.md
293
+ - lib/extras/compliance/compliance.rb
216
294
  - lib/inspec.rb
217
295
  - lib/inspec/archive/tar.rb
218
296
  - lib/inspec/archive/zip.rb
@@ -228,6 +306,8 @@ files:
228
306
  - lib/inspec/rspec_json_formatter.rb
229
307
  - lib/inspec/rule.rb
230
308
  - lib/inspec/runner.rb
309
+ - lib/inspec/runner_mock.rb
310
+ - lib/inspec/runner_rspec.rb
231
311
  - lib/inspec/shell.rb
232
312
  - lib/inspec/targets.rb
233
313
  - lib/inspec/targets/archive.rb
@@ -237,7 +317,6 @@ files:
237
317
  - lib/inspec/targets/folder.rb
238
318
  - lib/inspec/targets/tar.rb
239
319
  - lib/inspec/targets/url.rb
240
- - lib/inspec/targets/url.rb.orig
241
320
  - lib/inspec/targets/zip.rb
242
321
  - lib/inspec/version.rb
243
322
  - lib/matchers/matchers.rb
@@ -249,6 +328,7 @@ files:
249
328
  - lib/resources/auditd_rules.rb
250
329
  - lib/resources/bond.rb
251
330
  - lib/resources/bridge.rb
331
+ - lib/resources/certificate.rb
252
332
  - lib/resources/command.rb
253
333
  - lib/resources/csv.rb
254
334
  - lib/resources/directory.rb
@@ -283,6 +363,7 @@ files:
283
363
  - lib/resources/postgres.rb
284
364
  - lib/resources/postgres_conf.rb
285
365
  - lib/resources/postgres_session.rb
366
+ - lib/resources/private_key.rb
286
367
  - lib/resources/processes.rb
287
368
  - lib/resources/registry_key.rb
288
369
  - lib/resources/script.rb
@@ -301,27 +382,187 @@ files:
301
382
  - lib/utils/parser.rb
302
383
  - lib/utils/simpleconfig.rb
303
384
  - tasks/maintainers.rb
385
+ - test/chefdk/.gitignore
386
+ - test/chefdk/.kitchen.yml
387
+ - test/chefdk/Policyfile.rb
388
+ - test/chefdk/README.md
389
+ - test/chefdk/chefignore
390
+ - test/chefdk/metadata.rb
391
+ - test/chefdk/recipes/default.rb
392
+ - test/chefdk/spec/spec_helper.rb
393
+ - test/chefdk/spec/unit/recipes/default_spec.rb
394
+ - test/chefdk/test/integration/default/serverspec/default_spec.rb
395
+ - test/chefdk/test/integration/helpers/serverspec/spec_helper.rb
304
396
  - test/docker_run.rb
305
397
  - test/docker_test.rb
306
398
  - test/helper.rb
307
399
  - test/integration/.kitchen.ec2.yml
308
400
  - test/integration/.kitchen.yml
401
+ - test/integration/.kitchen/default-aws-linux.yml
402
+ - test/integration/.kitchen/default-centos-7.yml
403
+ - test/integration/.kitchen/default-debian-8.yml
404
+ - test/integration/.kitchen/default-fedora-22.yml
405
+ - test/integration/.kitchen/default-redhat-65.yml
406
+ - test/integration/.kitchen/default-redhat-71.yml
407
+ - test/integration/.kitchen/default-suse-11sp3.yml
408
+ - test/integration/.kitchen/default-suse-12.yml
409
+ - test/integration/.kitchen/default-ubuntu-1204.yml
410
+ - test/integration/.kitchen/default-ubuntu-1404.yml
411
+ - test/integration/.kitchen/default-windows-2012.yml
412
+ - test/integration/.kitchen/default-windows-2012r2.yml
413
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
414
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
415
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
416
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
417
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
418
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
419
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
420
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
421
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/action_set_name
422
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/creator_uid
423
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/id
424
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/index_uuid
425
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/Vagrantfile
426
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
427
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
428
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
429
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
430
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
431
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
432
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile
433
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
434
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
435
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
436
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
437
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
438
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
439
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile
440
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/action_set_name
441
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/creator_uid
442
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/id
443
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/index_uuid
444
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/Vagrantfile
445
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile
446
+ - test/integration/.kitchen/logs/default-aws-linux.log
447
+ - test/integration/.kitchen/logs/default-centos-511-i386.log
448
+ - test/integration/.kitchen/logs/default-centos-511.log
449
+ - test/integration/.kitchen/logs/default-centos-67-i386.log
450
+ - test/integration/.kitchen/logs/default-centos-67.log
451
+ - test/integration/.kitchen/logs/default-centos-7.log
452
+ - test/integration/.kitchen/logs/default-centos-71.log
453
+ - test/integration/.kitchen/logs/default-debian-6010-i386.log
454
+ - test/integration/.kitchen/logs/default-debian-6010.log
455
+ - test/integration/.kitchen/logs/default-debian-78-i386.log
456
+ - test/integration/.kitchen/logs/default-debian-78.log
457
+ - test/integration/.kitchen/logs/default-debian-8.log
458
+ - test/integration/.kitchen/logs/default-debian-81-i386.log
459
+ - test/integration/.kitchen/logs/default-debian-81.log
460
+ - test/integration/.kitchen/logs/default-fedora-21-i386.log
461
+ - test/integration/.kitchen/logs/default-fedora-21.log
462
+ - test/integration/.kitchen/logs/default-fedora-22.log
463
+ - test/integration/.kitchen/logs/default-freebsd-102.log
464
+ - test/integration/.kitchen/logs/default-freebsd-93.log
465
+ - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
466
+ - test/integration/.kitchen/logs/default-modernIE-w10-edge.log
467
+ - test/integration/.kitchen/logs/default-modernIE-w7-ie11.log
468
+ - test/integration/.kitchen/logs/default-modernIE-w81-ie11.log
469
+ - test/integration/.kitchen/logs/default-opensuse-132-i386.log
470
+ - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
471
+ - test/integration/.kitchen/logs/default-opentable-win-2008r2-standard-amd64-nocm.log
472
+ - test/integration/.kitchen/logs/default-opentable-win-2012r2-standard-amd64-nocm.log
473
+ - test/integration/.kitchen/logs/default-redhat-65.log
474
+ - test/integration/.kitchen/logs/default-redhat-71.log
475
+ - test/integration/.kitchen/logs/default-suse-11sp3.log
476
+ - test/integration/.kitchen/logs/default-suse-12.log
477
+ - test/integration/.kitchen/logs/default-ubuntu-1004-i386.log
478
+ - test/integration/.kitchen/logs/default-ubuntu-1004.log
479
+ - test/integration/.kitchen/logs/default-ubuntu-1204-i386.log
480
+ - test/integration/.kitchen/logs/default-ubuntu-1204.log
481
+ - test/integration/.kitchen/logs/default-ubuntu-1404-i386.log
482
+ - test/integration/.kitchen/logs/default-ubuntu-1404.log
483
+ - test/integration/.kitchen/logs/default-ubuntu-1510.log
484
+ - test/integration/.kitchen/logs/default-windows-2008-opentable.log
485
+ - test/integration/.kitchen/logs/default-windows-2008.log
486
+ - test/integration/.kitchen/logs/default-windows-2012.log
487
+ - test/integration/.kitchen/logs/default-windows-2012R2-matt.log
488
+ - test/integration/.kitchen/logs/default-windows-2012r2-opentable.log
489
+ - test/integration/.kitchen/logs/default-windows-2012r2.log
490
+ - test/integration/.kitchen/logs/kitchen.log
491
+ - test/integration/.kitchen/logs/new-centos-511-i386.log
492
+ - test/integration/.kitchen/logs/new-centos-511.log
493
+ - test/integration/.kitchen/logs/new-centos-67-i386.log
494
+ - test/integration/.kitchen/logs/new-centos-67.log
495
+ - test/integration/.kitchen/logs/new-centos-71.log
496
+ - test/integration/.kitchen/logs/new-debian-6010-i386.log
497
+ - test/integration/.kitchen/logs/new-debian-6010.log
498
+ - test/integration/.kitchen/logs/new-debian-78-i386.log
499
+ - test/integration/.kitchen/logs/new-debian-78.log
500
+ - test/integration/.kitchen/logs/new-debian-81-i386.log
501
+ - test/integration/.kitchen/logs/new-debian-81.log
502
+ - test/integration/.kitchen/logs/new-fedora-21-i386.log
503
+ - test/integration/.kitchen/logs/new-fedora-21.log
504
+ - test/integration/.kitchen/logs/new-fedora-22.log
505
+ - test/integration/.kitchen/logs/new-freebsd-102.log
506
+ - test/integration/.kitchen/logs/new-freebsd-93.log
507
+ - test/integration/.kitchen/logs/new-opensuse-132-i386.log
508
+ - test/integration/.kitchen/logs/new-opensuse-132-x86-64.log
509
+ - test/integration/.kitchen/logs/new-ubuntu-1004-i386.log
510
+ - test/integration/.kitchen/logs/new-ubuntu-1004.log
511
+ - test/integration/.kitchen/logs/new-ubuntu-1204-i386.log
512
+ - test/integration/.kitchen/logs/new-ubuntu-1204.log
513
+ - test/integration/.kitchen/logs/new-ubuntu-1404-i386.log
514
+ - test/integration/.kitchen/logs/new-ubuntu-1404.log
515
+ - test/integration/.kitchen/logs/test-centos-511-i386.log
516
+ - test/integration/.kitchen/logs/test-centos-511.log
517
+ - test/integration/.kitchen/logs/test-centos-67-i386.log
518
+ - test/integration/.kitchen/logs/test-centos-67.log
519
+ - test/integration/.kitchen/logs/test-centos-71.log
520
+ - test/integration/.kitchen/logs/test-debian-6010-i386.log
521
+ - test/integration/.kitchen/logs/test-debian-6010.log
522
+ - test/integration/.kitchen/logs/test-debian-78-i386.log
523
+ - test/integration/.kitchen/logs/test-debian-78.log
524
+ - test/integration/.kitchen/logs/test-debian-81-i386.log
525
+ - test/integration/.kitchen/logs/test-debian-81.log
526
+ - test/integration/.kitchen/logs/test-fedora-21-i386.log
527
+ - test/integration/.kitchen/logs/test-fedora-21.log
528
+ - test/integration/.kitchen/logs/test-fedora-22.log
529
+ - test/integration/.kitchen/logs/test-freebsd-102.log
530
+ - test/integration/.kitchen/logs/test-freebsd-93.log
531
+ - test/integration/.kitchen/logs/test-opensuse-132-i386.log
532
+ - test/integration/.kitchen/logs/test-opensuse-132-x86-64.log
533
+ - test/integration/.kitchen/logs/test-ubuntu-1004-i386.log
534
+ - test/integration/.kitchen/logs/test-ubuntu-1004.log
535
+ - test/integration/.kitchen/logs/test-ubuntu-1204-i386.log
536
+ - test/integration/.kitchen/logs/test-ubuntu-1204.log
537
+ - test/integration/.kitchen/logs/test-ubuntu-1404-i386.log
538
+ - test/integration/.kitchen/logs/test-ubuntu-1404.log
539
+ - test/integration/.kitchen/new-ubuntu-1404.yml
309
540
  - test/integration/Berksfile
541
+ - test/integration/Berksfile.lock
542
+ - test/integration/TODO.md
543
+ - test/integration/cookbooks/os_prepare/files/empty.iso
310
544
  - test/integration/cookbooks/os_prepare/files/example.csv
311
545
  - test/integration/cookbooks/os_prepare/files/example.ini
312
546
  - test/integration/cookbooks/os_prepare/files/example.json
313
547
  - test/integration/cookbooks/os_prepare/files/example.yml
314
548
  - test/integration/cookbooks/os_prepare/metadata.rb
549
+ - test/integration/cookbooks/os_prepare/recipes/_runit_service_centos.rb
315
550
  - test/integration/cookbooks/os_prepare/recipes/apt.rb
316
551
  - test/integration/cookbooks/os_prepare/recipes/default.rb
317
552
  - test/integration/cookbooks/os_prepare/recipes/file.rb
318
553
  - test/integration/cookbooks/os_prepare/recipes/json_yaml_csv_ini.rb
319
554
  - test/integration/cookbooks/os_prepare/recipes/mount.rb
320
555
  - test/integration/cookbooks/os_prepare/recipes/package.rb
556
+ - test/integration/cookbooks/os_prepare/recipes/postgres.rb
321
557
  - test/integration/cookbooks/os_prepare/recipes/registry_key.rb
322
558
  - test/integration/cookbooks/os_prepare/recipes/service.rb
559
+ - test/integration/cookbooks/os_prepare/templates/default/sv-default-svlog-run.erb
560
+ - test/integration/test/.DS_Store
561
+ - test/integration/test/integration/.DS_Store
562
+ - test/integration/test/integration/default/.DS_Store
323
563
  - test/integration/test/integration/default/_debug_spec.rb
324
564
  - test/integration/test/integration/default/apt_spec.rb
565
+ - test/integration/test/integration/default/certificate_spec.rb
325
566
  - test/integration/test/integration/default/compare_matcher_spec.rb
326
567
  - test/integration/test/integration/default/csv_spec.rb
327
568
  - test/integration/test/integration/default/etc_group_spec.rb
@@ -335,16 +576,35 @@ files:
335
576
  - test/integration/test/integration/default/os_spec.rb
336
577
  - test/integration/test/integration/default/package_spec.rb
337
578
  - test/integration/test/integration/default/port_spec.rb
579
+ - test/integration/test/integration/default/postgres_session_spec.rb
338
580
  - test/integration/test/integration/default/registry_key_spec.rb
339
581
  - test/integration/test/integration/default/secpol_spec.rb
340
582
  - test/integration/test/integration/default/service_spec.rb
341
583
  - test/integration/test/integration/default/user_spec.rb
342
584
  - test/integration/test/integration/default/yaml_spec.rb
585
+ - test/mac/service_spec.rb
343
586
  - test/resource/command_test.rb
344
587
  - test/resource/dsl_test.rb
345
588
  - test/resource/file_test.rb
346
589
  - test/resource/ssh_config.rb
347
590
  - test/resource/sshd_config.rb
591
+ - test/serverspec/.kitchen.yml
592
+ - test/serverspec/.kitchen/default-ubuntu-1404.yml
593
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
594
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
595
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
596
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
597
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
598
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
599
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile
600
+ - test/serverspec/.kitchen/logs/default-ubuntu-1404.log
601
+ - test/serverspec/.kitchen/logs/kitchen.log
602
+ - test/serverspec/Berksfile
603
+ - test/serverspec/Berksfile.lock
604
+ - test/serverspec/TODO.md
605
+ - test/serverspec/test/integration/default/serverspec/os_spec.rb
606
+ - test/serverspec/test/integration/default/serverspec/spec_helper.rb
607
+ - test/serverspec/test/integration/default/serverspec/sysctl_spec.rb
348
608
  - test/test-extra.yaml
349
609
  - test/test.yaml
350
610
  - test/unit/metadata_test.rb
@@ -427,15 +687,17 @@ files:
427
687
  - test/unit/mock/files/serve-cgi-bin.conf
428
688
  - test/unit/mock/files/ssh_config
429
689
  - test/unit/mock/files/sshd_config
430
- - test/unit/mock/profiles/complete-meta/metadata.rb
431
- - test/unit/mock/profiles/complete-meta/test/.gitkeep
690
+ - test/unit/mock/profiles/complete-metadata/inspec.yml
432
691
  - test/unit/mock/profiles/complete-profile/controls/filesystem_spec.rb
433
692
  - 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
437
- - test/unit/mock/profiles/empty/metadata.rb
438
- - test/unit/mock/profiles/metadata/metadata.rb
693
+ - test/unit/mock/profiles/empty-metadata/inspec.yml
694
+ - test/unit/mock/profiles/legacy-complete-metadata/metadata.rb
695
+ - test/unit/mock/profiles/legacy-complete-metadata/test/.gitkeep
696
+ - test/unit/mock/profiles/legacy-empty-metadata/controls/.gitkeep
697
+ - test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
698
+ - test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
699
+ - test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
700
+ - test/unit/mock/profiles/simple-metadata/inspec.yml
439
701
  - test/unit/profile_context_test.rb
440
702
  - test/unit/profile_test.rb
441
703
  - test/unit/resources/apache_conf_test.rb
@@ -504,32 +766,192 @@ required_rubygems_version: !ruby/object:Gem::Requirement
504
766
  version: '0'
505
767
  requirements: []
506
768
  rubyforge_project:
507
- rubygems_version: 2.4.5.1
769
+ rubygems_version: 2.4.6
508
770
  signing_key:
509
771
  specification_version: 4
510
- summary: Validate Inspec compliance checks
772
+ summary: Infrastructure and compliance testing.
511
773
  test_files:
774
+ - test/chefdk/.gitignore
775
+ - test/chefdk/.kitchen.yml
776
+ - test/chefdk/Policyfile.rb
777
+ - test/chefdk/README.md
778
+ - test/chefdk/chefignore
779
+ - test/chefdk/metadata.rb
780
+ - test/chefdk/recipes/default.rb
781
+ - test/chefdk/spec/spec_helper.rb
782
+ - test/chefdk/spec/unit/recipes/default_spec.rb
783
+ - test/chefdk/test/integration/default/serverspec/default_spec.rb
784
+ - test/chefdk/test/integration/helpers/serverspec/spec_helper.rb
512
785
  - test/docker_run.rb
513
786
  - test/docker_test.rb
514
787
  - test/helper.rb
515
788
  - test/integration/.kitchen.ec2.yml
516
789
  - test/integration/.kitchen.yml
790
+ - test/integration/.kitchen/default-aws-linux.yml
791
+ - test/integration/.kitchen/default-centos-7.yml
792
+ - test/integration/.kitchen/default-debian-8.yml
793
+ - test/integration/.kitchen/default-fedora-22.yml
794
+ - test/integration/.kitchen/default-redhat-65.yml
795
+ - test/integration/.kitchen/default-redhat-71.yml
796
+ - test/integration/.kitchen/default-suse-11sp3.yml
797
+ - test/integration/.kitchen/default-suse-12.yml
798
+ - test/integration/.kitchen/default-ubuntu-1204.yml
799
+ - test/integration/.kitchen/default-ubuntu-1404.yml
800
+ - test/integration/.kitchen/default-windows-2012.yml
801
+ - test/integration/.kitchen/default-windows-2012r2.yml
802
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-centos-67-i386/Vagrantfile
803
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/action_set_name
804
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/creator_uid
805
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/id
806
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/index_uuid
807
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/private_key
808
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/.vagrant/machines/default/virtualbox/synced_folders
809
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-fedora-22/Vagrantfile
810
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/action_set_name
811
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/creator_uid
812
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/id
813
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/.vagrant/machines/default/virtualbox/index_uuid
814
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-modernIE-w10-edge/Vagrantfile
815
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/action_set_name
816
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/creator_uid
817
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/id
818
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/index_uuid
819
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/private_key
820
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/.vagrant/machines/default/virtualbox/synced_folders
821
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1204/Vagrantfile
822
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
823
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
824
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
825
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
826
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
827
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
828
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-ubuntu-1404/Vagrantfile
829
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/action_set_name
830
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/creator_uid
831
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/id
832
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/.vagrant/machines/default/virtualbox/index_uuid
833
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-default-windows-2012R2-matt/Vagrantfile
834
+ - test/integration/.kitchen/kitchen-vagrant/kitchen-integration-new-ubuntu-1404/Vagrantfile
835
+ - test/integration/.kitchen/logs/default-aws-linux.log
836
+ - test/integration/.kitchen/logs/default-centos-511-i386.log
837
+ - test/integration/.kitchen/logs/default-centos-511.log
838
+ - test/integration/.kitchen/logs/default-centos-67-i386.log
839
+ - test/integration/.kitchen/logs/default-centos-67.log
840
+ - test/integration/.kitchen/logs/default-centos-7.log
841
+ - test/integration/.kitchen/logs/default-centos-71.log
842
+ - test/integration/.kitchen/logs/default-debian-6010-i386.log
843
+ - test/integration/.kitchen/logs/default-debian-6010.log
844
+ - test/integration/.kitchen/logs/default-debian-78-i386.log
845
+ - test/integration/.kitchen/logs/default-debian-78.log
846
+ - test/integration/.kitchen/logs/default-debian-8.log
847
+ - test/integration/.kitchen/logs/default-debian-81-i386.log
848
+ - test/integration/.kitchen/logs/default-debian-81.log
849
+ - test/integration/.kitchen/logs/default-fedora-21-i386.log
850
+ - test/integration/.kitchen/logs/default-fedora-21.log
851
+ - test/integration/.kitchen/logs/default-fedora-22.log
852
+ - test/integration/.kitchen/logs/default-freebsd-102.log
853
+ - test/integration/.kitchen/logs/default-freebsd-93.log
854
+ - test/integration/.kitchen/logs/default-mint-172-cinnamon.log
855
+ - test/integration/.kitchen/logs/default-modernIE-w10-edge.log
856
+ - test/integration/.kitchen/logs/default-modernIE-w7-ie11.log
857
+ - test/integration/.kitchen/logs/default-modernIE-w81-ie11.log
858
+ - test/integration/.kitchen/logs/default-opensuse-132-i386.log
859
+ - test/integration/.kitchen/logs/default-opensuse-132-x86-64.log
860
+ - test/integration/.kitchen/logs/default-opentable-win-2008r2-standard-amd64-nocm.log
861
+ - test/integration/.kitchen/logs/default-opentable-win-2012r2-standard-amd64-nocm.log
862
+ - test/integration/.kitchen/logs/default-redhat-65.log
863
+ - test/integration/.kitchen/logs/default-redhat-71.log
864
+ - test/integration/.kitchen/logs/default-suse-11sp3.log
865
+ - test/integration/.kitchen/logs/default-suse-12.log
866
+ - test/integration/.kitchen/logs/default-ubuntu-1004-i386.log
867
+ - test/integration/.kitchen/logs/default-ubuntu-1004.log
868
+ - test/integration/.kitchen/logs/default-ubuntu-1204-i386.log
869
+ - test/integration/.kitchen/logs/default-ubuntu-1204.log
870
+ - test/integration/.kitchen/logs/default-ubuntu-1404-i386.log
871
+ - test/integration/.kitchen/logs/default-ubuntu-1404.log
872
+ - test/integration/.kitchen/logs/default-ubuntu-1510.log
873
+ - test/integration/.kitchen/logs/default-windows-2008-opentable.log
874
+ - test/integration/.kitchen/logs/default-windows-2008.log
875
+ - test/integration/.kitchen/logs/default-windows-2012.log
876
+ - test/integration/.kitchen/logs/default-windows-2012R2-matt.log
877
+ - test/integration/.kitchen/logs/default-windows-2012r2-opentable.log
878
+ - test/integration/.kitchen/logs/default-windows-2012r2.log
879
+ - test/integration/.kitchen/logs/kitchen.log
880
+ - test/integration/.kitchen/logs/new-centos-511-i386.log
881
+ - test/integration/.kitchen/logs/new-centos-511.log
882
+ - test/integration/.kitchen/logs/new-centos-67-i386.log
883
+ - test/integration/.kitchen/logs/new-centos-67.log
884
+ - test/integration/.kitchen/logs/new-centos-71.log
885
+ - test/integration/.kitchen/logs/new-debian-6010-i386.log
886
+ - test/integration/.kitchen/logs/new-debian-6010.log
887
+ - test/integration/.kitchen/logs/new-debian-78-i386.log
888
+ - test/integration/.kitchen/logs/new-debian-78.log
889
+ - test/integration/.kitchen/logs/new-debian-81-i386.log
890
+ - test/integration/.kitchen/logs/new-debian-81.log
891
+ - test/integration/.kitchen/logs/new-fedora-21-i386.log
892
+ - test/integration/.kitchen/logs/new-fedora-21.log
893
+ - test/integration/.kitchen/logs/new-fedora-22.log
894
+ - test/integration/.kitchen/logs/new-freebsd-102.log
895
+ - test/integration/.kitchen/logs/new-freebsd-93.log
896
+ - test/integration/.kitchen/logs/new-opensuse-132-i386.log
897
+ - test/integration/.kitchen/logs/new-opensuse-132-x86-64.log
898
+ - test/integration/.kitchen/logs/new-ubuntu-1004-i386.log
899
+ - test/integration/.kitchen/logs/new-ubuntu-1004.log
900
+ - test/integration/.kitchen/logs/new-ubuntu-1204-i386.log
901
+ - test/integration/.kitchen/logs/new-ubuntu-1204.log
902
+ - test/integration/.kitchen/logs/new-ubuntu-1404-i386.log
903
+ - test/integration/.kitchen/logs/new-ubuntu-1404.log
904
+ - test/integration/.kitchen/logs/test-centos-511-i386.log
905
+ - test/integration/.kitchen/logs/test-centos-511.log
906
+ - test/integration/.kitchen/logs/test-centos-67-i386.log
907
+ - test/integration/.kitchen/logs/test-centos-67.log
908
+ - test/integration/.kitchen/logs/test-centos-71.log
909
+ - test/integration/.kitchen/logs/test-debian-6010-i386.log
910
+ - test/integration/.kitchen/logs/test-debian-6010.log
911
+ - test/integration/.kitchen/logs/test-debian-78-i386.log
912
+ - test/integration/.kitchen/logs/test-debian-78.log
913
+ - test/integration/.kitchen/logs/test-debian-81-i386.log
914
+ - test/integration/.kitchen/logs/test-debian-81.log
915
+ - test/integration/.kitchen/logs/test-fedora-21-i386.log
916
+ - test/integration/.kitchen/logs/test-fedora-21.log
917
+ - test/integration/.kitchen/logs/test-fedora-22.log
918
+ - test/integration/.kitchen/logs/test-freebsd-102.log
919
+ - test/integration/.kitchen/logs/test-freebsd-93.log
920
+ - test/integration/.kitchen/logs/test-opensuse-132-i386.log
921
+ - test/integration/.kitchen/logs/test-opensuse-132-x86-64.log
922
+ - test/integration/.kitchen/logs/test-ubuntu-1004-i386.log
923
+ - test/integration/.kitchen/logs/test-ubuntu-1004.log
924
+ - test/integration/.kitchen/logs/test-ubuntu-1204-i386.log
925
+ - test/integration/.kitchen/logs/test-ubuntu-1204.log
926
+ - test/integration/.kitchen/logs/test-ubuntu-1404-i386.log
927
+ - test/integration/.kitchen/logs/test-ubuntu-1404.log
928
+ - test/integration/.kitchen/new-ubuntu-1404.yml
517
929
  - test/integration/Berksfile
930
+ - test/integration/Berksfile.lock
931
+ - test/integration/TODO.md
932
+ - test/integration/cookbooks/os_prepare/files/empty.iso
518
933
  - test/integration/cookbooks/os_prepare/files/example.csv
519
934
  - test/integration/cookbooks/os_prepare/files/example.ini
520
935
  - test/integration/cookbooks/os_prepare/files/example.json
521
936
  - test/integration/cookbooks/os_prepare/files/example.yml
522
937
  - test/integration/cookbooks/os_prepare/metadata.rb
938
+ - test/integration/cookbooks/os_prepare/recipes/_runit_service_centos.rb
523
939
  - test/integration/cookbooks/os_prepare/recipes/apt.rb
524
940
  - test/integration/cookbooks/os_prepare/recipes/default.rb
525
941
  - test/integration/cookbooks/os_prepare/recipes/file.rb
526
942
  - test/integration/cookbooks/os_prepare/recipes/json_yaml_csv_ini.rb
527
943
  - test/integration/cookbooks/os_prepare/recipes/mount.rb
528
944
  - test/integration/cookbooks/os_prepare/recipes/package.rb
945
+ - test/integration/cookbooks/os_prepare/recipes/postgres.rb
529
946
  - test/integration/cookbooks/os_prepare/recipes/registry_key.rb
530
947
  - test/integration/cookbooks/os_prepare/recipes/service.rb
948
+ - test/integration/cookbooks/os_prepare/templates/default/sv-default-svlog-run.erb
949
+ - test/integration/test/.DS_Store
950
+ - test/integration/test/integration/.DS_Store
951
+ - test/integration/test/integration/default/.DS_Store
531
952
  - test/integration/test/integration/default/_debug_spec.rb
532
953
  - test/integration/test/integration/default/apt_spec.rb
954
+ - test/integration/test/integration/default/certificate_spec.rb
533
955
  - test/integration/test/integration/default/compare_matcher_spec.rb
534
956
  - test/integration/test/integration/default/csv_spec.rb
535
957
  - test/integration/test/integration/default/etc_group_spec.rb
@@ -543,16 +965,35 @@ test_files:
543
965
  - test/integration/test/integration/default/os_spec.rb
544
966
  - test/integration/test/integration/default/package_spec.rb
545
967
  - test/integration/test/integration/default/port_spec.rb
968
+ - test/integration/test/integration/default/postgres_session_spec.rb
546
969
  - test/integration/test/integration/default/registry_key_spec.rb
547
970
  - test/integration/test/integration/default/secpol_spec.rb
548
971
  - test/integration/test/integration/default/service_spec.rb
549
972
  - test/integration/test/integration/default/user_spec.rb
550
973
  - test/integration/test/integration/default/yaml_spec.rb
974
+ - test/mac/service_spec.rb
551
975
  - test/resource/command_test.rb
552
976
  - test/resource/dsl_test.rb
553
977
  - test/resource/file_test.rb
554
978
  - test/resource/ssh_config.rb
555
979
  - test/resource/sshd_config.rb
980
+ - test/serverspec/.kitchen.yml
981
+ - test/serverspec/.kitchen/default-ubuntu-1404.yml
982
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/action_set_name
983
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/creator_uid
984
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/id
985
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/index_uuid
986
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/private_key
987
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/.vagrant/machines/default/virtualbox/synced_folders
988
+ - test/serverspec/.kitchen/kitchen-vagrant/kitchen-serverspec-default-ubuntu-1404/Vagrantfile
989
+ - test/serverspec/.kitchen/logs/default-ubuntu-1404.log
990
+ - test/serverspec/.kitchen/logs/kitchen.log
991
+ - test/serverspec/Berksfile
992
+ - test/serverspec/Berksfile.lock
993
+ - test/serverspec/TODO.md
994
+ - test/serverspec/test/integration/default/serverspec/os_spec.rb
995
+ - test/serverspec/test/integration/default/serverspec/spec_helper.rb
996
+ - test/serverspec/test/integration/default/serverspec/sysctl_spec.rb
556
997
  - test/test-extra.yaml
557
998
  - test/test.yaml
558
999
  - test/unit/metadata_test.rb
@@ -635,15 +1076,17 @@ test_files:
635
1076
  - test/unit/mock/files/serve-cgi-bin.conf
636
1077
  - test/unit/mock/files/ssh_config
637
1078
  - test/unit/mock/files/sshd_config
638
- - test/unit/mock/profiles/complete-meta/metadata.rb
639
- - test/unit/mock/profiles/complete-meta/test/.gitkeep
1079
+ - test/unit/mock/profiles/complete-metadata/inspec.yml
640
1080
  - test/unit/mock/profiles/complete-profile/controls/filesystem_spec.rb
641
1081
  - 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
645
- - test/unit/mock/profiles/empty/metadata.rb
646
- - test/unit/mock/profiles/metadata/metadata.rb
1082
+ - test/unit/mock/profiles/empty-metadata/inspec.yml
1083
+ - test/unit/mock/profiles/legacy-complete-metadata/metadata.rb
1084
+ - test/unit/mock/profiles/legacy-complete-metadata/test/.gitkeep
1085
+ - test/unit/mock/profiles/legacy-empty-metadata/controls/.gitkeep
1086
+ - test/unit/mock/profiles/legacy-empty-metadata/metadata.rb
1087
+ - test/unit/mock/profiles/legacy-simple-metadata/metadata.rb
1088
+ - test/unit/mock/profiles/legacy-simple-metadata/test/.gitkeep
1089
+ - test/unit/mock/profiles/simple-metadata/inspec.yml
647
1090
  - test/unit/profile_context_test.rb
648
1091
  - test/unit/profile_test.rb
649
1092
  - test/unit/resources/apache_conf_test.rb