diff --git a/.codeclimate.yml b/.codeclimate.yml index fe1ecf824..a4d721d7c 100644 --- a/.codeclimate.yml +++ b/.codeclimate.yml @@ -26,3 +26,4 @@ plugins: enabled: true exclude_patterns: - "www/source/javascripts/" + - "test/kitchen" diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 72bc05f34..e12f10bce 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -44,6 +44,9 @@ pipelines: - www/deploy: description: Deploy website to inspec.io definition: .expeditor/wwwdeploy.yml + - verify/resources: + description: Test core resources with test-kitchen. + definition: .expeditor/verify.resources.yml - integration/libraries: description: Integration with plugins, gems, resource packs. definition: .expeditor/integration.libraries.yml @@ -164,3 +167,7 @@ subscriptions: only_if_team_member: - inspec/owners - inspec/inspec-core-team + - post_github_comment:.expeditor/templates/pull_request.mustache + - workload: buildkite_build_passed:{{agent_id}}:verify:* + actions: + - trigger_pipeline:verify/resources diff --git a/.expeditor/verify.resources.yml b/.expeditor/verify.resources.yml new file mode 100644 index 000000000..e69de29bb diff --git a/.rubocop.yml b/.rubocop.yml index 15f433377..829aee7d3 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,5 +1,6 @@ AllCops: Exclude: + - 'test/kitchen/**/*' - 'test/integration/**/controls/**/*.rb' - 'test/unit/mock/profiles/**/*.rb' - 'test/unit/mock/config_dirs/**/*.rb' diff --git a/kitchen.chef.yml b/kitchen.chef.yml index a0ba0af14..1b9ea9e10 100644 --- a/kitchen.chef.yml +++ b/kitchen.chef.yml @@ -11,7 +11,7 @@ verifier: lifecycle: pre_converge: - - local: gem build inspec-core.gemspec --output test/cookbooks/os_prepare/files/inspec-core-local.gem + - local: gem build inspec-core.gemspec --output test/kitchen/cookbooks/os_prepare/files/inspec-core-local.gem platforms: # The following (private) boxes are shared via VagrantCloud and are only diff --git a/kitchen.vagrant.yml b/kitchen.vagrant.yml index 684e3251b..7f42867f9 100644 --- a/kitchen.vagrant.yml +++ b/kitchen.vagrant.yml @@ -11,7 +11,7 @@ verifier: lifecycle: pre_converge: - - local: gem build inspec-core.gemspec --output test/cookbooks/os_prepare/files/inspec-core-local.gem + - local: gem build inspec-core.gemspec --output test/kitchen/cookbooks/os_prepare/files/inspec-core-local.gem platforms: - name: centos-6 @@ -35,6 +35,6 @@ suites: - recipe[os_prepare::find_files] verifier: inspec_tests: - - test/integration/find_files + - test/kitchen/policies/find_files excludes: - freebsd-11 diff --git a/kitchen.yml b/kitchen.yml index 4d5894fe3..9834a9e50 100644 --- a/kitchen.yml +++ b/kitchen.yml @@ -9,7 +9,7 @@ transport: lifecycle: pre_converge: - - local: gem build inspec-core.gemspec --output test/cookbooks/os_prepare/files/inspec-core-local.gem + - local: gem build inspec-core.gemspec --output test/kitchen/cookbooks/os_prepare/files/inspec-core-local.gem provisioner: name: dokken @@ -100,13 +100,13 @@ platforms: - RUN /usr/bin/apt-get update -y suites: -- name: default +- name: resources-core run_list: - recipe[os_prepare] - recipe[audit] verifier: inspec_tests: - - test/integration/default + - test/kitchen/policies/resources-core attributes: audit: attributes: @@ -122,3 +122,7 @@ suites: osprepare: docker: true application: false + +- name: resources-database +- name: resources-unix +- name: resources-windows diff --git a/test/cookbooks/os_prepare/attributes/default.rb b/test/kitchen/cookbooks/os_prepare/attributes/default.rb similarity index 100% rename from test/cookbooks/os_prepare/attributes/default.rb rename to test/kitchen/cookbooks/os_prepare/attributes/default.rb diff --git a/test/cookbooks/os_prepare/files/empty.iso b/test/kitchen/cookbooks/os_prepare/files/empty.iso similarity index 100% rename from test/cookbooks/os_prepare/files/empty.iso rename to test/kitchen/cookbooks/os_prepare/files/empty.iso diff --git a/test/cookbooks/os_prepare/files/example.csv b/test/kitchen/cookbooks/os_prepare/files/example.csv similarity index 100% rename from test/cookbooks/os_prepare/files/example.csv rename to test/kitchen/cookbooks/os_prepare/files/example.csv diff --git a/test/cookbooks/os_prepare/files/example.ini b/test/kitchen/cookbooks/os_prepare/files/example.ini similarity index 100% rename from test/cookbooks/os_prepare/files/example.ini rename to test/kitchen/cookbooks/os_prepare/files/example.ini diff --git a/test/cookbooks/os_prepare/files/example.json b/test/kitchen/cookbooks/os_prepare/files/example.json similarity index 100% rename from test/cookbooks/os_prepare/files/example.json rename to test/kitchen/cookbooks/os_prepare/files/example.json diff --git a/test/cookbooks/os_prepare/files/example.toml b/test/kitchen/cookbooks/os_prepare/files/example.toml similarity index 100% rename from test/cookbooks/os_prepare/files/example.toml rename to test/kitchen/cookbooks/os_prepare/files/example.toml diff --git a/test/cookbooks/os_prepare/files/example.xml b/test/kitchen/cookbooks/os_prepare/files/example.xml similarity index 100% rename from test/cookbooks/os_prepare/files/example.xml rename to test/kitchen/cookbooks/os_prepare/files/example.xml diff --git a/test/cookbooks/os_prepare/files/example.yml b/test/kitchen/cookbooks/os_prepare/files/example.yml similarity index 100% rename from test/cookbooks/os_prepare/files/example.yml rename to test/kitchen/cookbooks/os_prepare/files/example.yml diff --git a/test/cookbooks/os_prepare/files/httpd.conf b/test/kitchen/cookbooks/os_prepare/files/httpd.conf similarity index 100% rename from test/cookbooks/os_prepare/files/httpd.conf rename to test/kitchen/cookbooks/os_prepare/files/httpd.conf diff --git a/test/cookbooks/os_prepare/metadata.rb b/test/kitchen/cookbooks/os_prepare/metadata.rb similarity index 100% rename from test/cookbooks/os_prepare/metadata.rb rename to test/kitchen/cookbooks/os_prepare/metadata.rb diff --git a/test/cookbooks/os_prepare/recipes/_runit_service_centos.rb b/test/kitchen/cookbooks/os_prepare/recipes/_runit_service_centos.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/_runit_service_centos.rb rename to test/kitchen/cookbooks/os_prepare/recipes/_runit_service_centos.rb diff --git a/test/cookbooks/os_prepare/recipes/_upstart_service_centos.rb b/test/kitchen/cookbooks/os_prepare/recipes/_upstart_service_centos.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/_upstart_service_centos.rb rename to test/kitchen/cookbooks/os_prepare/recipes/_upstart_service_centos.rb diff --git a/test/cookbooks/os_prepare/recipes/apache.rb b/test/kitchen/cookbooks/os_prepare/recipes/apache.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/apache.rb rename to test/kitchen/cookbooks/os_prepare/recipes/apache.rb diff --git a/test/cookbooks/os_prepare/recipes/apt.rb b/test/kitchen/cookbooks/os_prepare/recipes/apt.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/apt.rb rename to test/kitchen/cookbooks/os_prepare/recipes/apt.rb diff --git a/test/cookbooks/os_prepare/recipes/auditctl.rb b/test/kitchen/cookbooks/os_prepare/recipes/auditctl.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/auditctl.rb rename to test/kitchen/cookbooks/os_prepare/recipes/auditctl.rb diff --git a/test/cookbooks/os_prepare/recipes/default.rb b/test/kitchen/cookbooks/os_prepare/recipes/default.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/default.rb rename to test/kitchen/cookbooks/os_prepare/recipes/default.rb diff --git a/test/cookbooks/os_prepare/recipes/dh_params.rb b/test/kitchen/cookbooks/os_prepare/recipes/dh_params.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/dh_params.rb rename to test/kitchen/cookbooks/os_prepare/recipes/dh_params.rb diff --git a/test/cookbooks/os_prepare/recipes/docker_host.rb b/test/kitchen/cookbooks/os_prepare/recipes/docker_host.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/docker_host.rb rename to test/kitchen/cookbooks/os_prepare/recipes/docker_host.rb diff --git a/test/cookbooks/os_prepare/recipes/file.rb b/test/kitchen/cookbooks/os_prepare/recipes/file.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/file.rb rename to test/kitchen/cookbooks/os_prepare/recipes/file.rb diff --git a/test/cookbooks/os_prepare/recipes/find_files.rb b/test/kitchen/cookbooks/os_prepare/recipes/find_files.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/find_files.rb rename to test/kitchen/cookbooks/os_prepare/recipes/find_files.rb diff --git a/test/cookbooks/os_prepare/recipes/iis.rb b/test/kitchen/cookbooks/os_prepare/recipes/iis.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/iis.rb rename to test/kitchen/cookbooks/os_prepare/recipes/iis.rb diff --git a/test/cookbooks/os_prepare/recipes/iptables.rb b/test/kitchen/cookbooks/os_prepare/recipes/iptables.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/iptables.rb rename to test/kitchen/cookbooks/os_prepare/recipes/iptables.rb diff --git a/test/cookbooks/os_prepare/recipes/json_yaml_csv_ini_xml.rb b/test/kitchen/cookbooks/os_prepare/recipes/json_yaml_csv_ini_xml.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/json_yaml_csv_ini_xml.rb rename to test/kitchen/cookbooks/os_prepare/recipes/json_yaml_csv_ini_xml.rb diff --git a/test/cookbooks/os_prepare/recipes/mount.rb b/test/kitchen/cookbooks/os_prepare/recipes/mount.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/mount.rb rename to test/kitchen/cookbooks/os_prepare/recipes/mount.rb diff --git a/test/cookbooks/os_prepare/recipes/os_env.rb b/test/kitchen/cookbooks/os_prepare/recipes/os_env.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/os_env.rb rename to test/kitchen/cookbooks/os_prepare/recipes/os_env.rb diff --git a/test/cookbooks/os_prepare/recipes/package.rb b/test/kitchen/cookbooks/os_prepare/recipes/package.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/package.rb rename to test/kitchen/cookbooks/os_prepare/recipes/package.rb diff --git a/test/cookbooks/os_prepare/recipes/postgres.rb b/test/kitchen/cookbooks/os_prepare/recipes/postgres.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/postgres.rb rename to test/kitchen/cookbooks/os_prepare/recipes/postgres.rb diff --git a/test/cookbooks/os_prepare/recipes/registry_key.rb b/test/kitchen/cookbooks/os_prepare/recipes/registry_key.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/registry_key.rb rename to test/kitchen/cookbooks/os_prepare/recipes/registry_key.rb diff --git a/test/cookbooks/os_prepare/recipes/service.rb b/test/kitchen/cookbooks/os_prepare/recipes/service.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/service.rb rename to test/kitchen/cookbooks/os_prepare/recipes/service.rb diff --git a/test/cookbooks/os_prepare/recipes/ssh.rb b/test/kitchen/cookbooks/os_prepare/recipes/ssh.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/ssh.rb rename to test/kitchen/cookbooks/os_prepare/recipes/ssh.rb diff --git a/test/cookbooks/os_prepare/recipes/x509.rb b/test/kitchen/cookbooks/os_prepare/recipes/x509.rb similarity index 100% rename from test/cookbooks/os_prepare/recipes/x509.rb rename to test/kitchen/cookbooks/os_prepare/recipes/x509.rb diff --git a/test/cookbooks/os_prepare/templates/sv-default-svlog-run.erb b/test/kitchen/cookbooks/os_prepare/templates/sv-default-svlog-run.erb similarity index 100% rename from test/cookbooks/os_prepare/templates/sv-default-svlog-run.erb rename to test/kitchen/cookbooks/os_prepare/templates/sv-default-svlog-run.erb diff --git a/test/integration/default/controls/_debug_spec.rb b/test/kitchen/policies/default/controls/_debug_spec.rb similarity index 100% rename from test/integration/default/controls/_debug_spec.rb rename to test/kitchen/policies/default/controls/_debug_spec.rb diff --git a/test/integration/default/controls/apache_conf_spec.rb b/test/kitchen/policies/default/controls/apache_conf_spec.rb similarity index 100% rename from test/integration/default/controls/apache_conf_spec.rb rename to test/kitchen/policies/default/controls/apache_conf_spec.rb diff --git a/test/integration/default/controls/apt_spec.rb b/test/kitchen/policies/default/controls/apt_spec.rb similarity index 100% rename from test/integration/default/controls/apt_spec.rb rename to test/kitchen/policies/default/controls/apt_spec.rb diff --git a/test/integration/default/controls/audit_spec.rb b/test/kitchen/policies/default/controls/audit_spec.rb similarity index 100% rename from test/integration/default/controls/audit_spec.rb rename to test/kitchen/policies/default/controls/audit_spec.rb diff --git a/test/integration/default/controls/cmp_matcher_spec.rb b/test/kitchen/policies/default/controls/cmp_matcher_spec.rb similarity index 100% rename from test/integration/default/controls/cmp_matcher_spec.rb rename to test/kitchen/policies/default/controls/cmp_matcher_spec.rb diff --git a/test/integration/default/controls/csv_spec.rb b/test/kitchen/policies/default/controls/csv_spec.rb similarity index 100% rename from test/integration/default/controls/csv_spec.rb rename to test/kitchen/policies/default/controls/csv_spec.rb diff --git a/test/integration/default/controls/dh_params_spec.rb b/test/kitchen/policies/default/controls/dh_params_spec.rb similarity index 100% rename from test/integration/default/controls/dh_params_spec.rb rename to test/kitchen/policies/default/controls/dh_params_spec.rb diff --git a/test/integration/default/controls/docker_spec.rb b/test/kitchen/policies/default/controls/docker_spec.rb similarity index 100% rename from test/integration/default/controls/docker_spec.rb rename to test/kitchen/policies/default/controls/docker_spec.rb diff --git a/test/integration/default/controls/etc_group_spec.rb b/test/kitchen/policies/default/controls/etc_group_spec.rb similarity index 100% rename from test/integration/default/controls/etc_group_spec.rb rename to test/kitchen/policies/default/controls/etc_group_spec.rb diff --git a/test/integration/default/controls/file_spec.rb b/test/kitchen/policies/default/controls/file_spec.rb similarity index 100% rename from test/integration/default/controls/file_spec.rb rename to test/kitchen/policies/default/controls/file_spec.rb diff --git a/test/integration/default/controls/filesystem.rb b/test/kitchen/policies/default/controls/filesystem.rb similarity index 100% rename from test/integration/default/controls/filesystem.rb rename to test/kitchen/policies/default/controls/filesystem.rb diff --git a/test/integration/default/controls/group_spec.rb b/test/kitchen/policies/default/controls/group_spec.rb similarity index 100% rename from test/integration/default/controls/group_spec.rb rename to test/kitchen/policies/default/controls/group_spec.rb diff --git a/test/integration/default/controls/iis_site_spec.rb b/test/kitchen/policies/default/controls/iis_site_spec.rb similarity index 100% rename from test/integration/default/controls/iis_site_spec.rb rename to test/kitchen/policies/default/controls/iis_site_spec.rb diff --git a/test/integration/default/controls/ini_spec.rb b/test/kitchen/policies/default/controls/ini_spec.rb similarity index 100% rename from test/integration/default/controls/ini_spec.rb rename to test/kitchen/policies/default/controls/ini_spec.rb diff --git a/test/integration/default/controls/ip6tables_spec.rb b/test/kitchen/policies/default/controls/ip6tables_spec.rb similarity index 100% rename from test/integration/default/controls/ip6tables_spec.rb rename to test/kitchen/policies/default/controls/ip6tables_spec.rb diff --git a/test/integration/default/controls/iptables_spec.rb b/test/kitchen/policies/default/controls/iptables_spec.rb similarity index 100% rename from test/integration/default/controls/iptables_spec.rb rename to test/kitchen/policies/default/controls/iptables_spec.rb diff --git a/test/integration/default/controls/json_spec.rb b/test/kitchen/policies/default/controls/json_spec.rb similarity index 100% rename from test/integration/default/controls/json_spec.rb rename to test/kitchen/policies/default/controls/json_spec.rb diff --git a/test/integration/default/controls/kernel_module_spec.rb b/test/kitchen/policies/default/controls/kernel_module_spec.rb similarity index 100% rename from test/integration/default/controls/kernel_module_spec.rb rename to test/kitchen/policies/default/controls/kernel_module_spec.rb diff --git a/test/integration/default/controls/kernel_parameter_spec.rb b/test/kitchen/policies/default/controls/kernel_parameter_spec.rb similarity index 100% rename from test/integration/default/controls/kernel_parameter_spec.rb rename to test/kitchen/policies/default/controls/kernel_parameter_spec.rb diff --git a/test/integration/default/controls/matcher_test.rb b/test/kitchen/policies/default/controls/matcher_test.rb similarity index 100% rename from test/integration/default/controls/matcher_test.rb rename to test/kitchen/policies/default/controls/matcher_test.rb diff --git a/test/integration/default/controls/mount_spec.rb b/test/kitchen/policies/default/controls/mount_spec.rb similarity index 100% rename from test/integration/default/controls/mount_spec.rb rename to test/kitchen/policies/default/controls/mount_spec.rb diff --git a/test/integration/default/controls/mssql_session_spec.rb b/test/kitchen/policies/default/controls/mssql_session_spec.rb similarity index 100% rename from test/integration/default/controls/mssql_session_spec.rb rename to test/kitchen/policies/default/controls/mssql_session_spec.rb diff --git a/test/integration/default/controls/os_env_spec.rb b/test/kitchen/policies/default/controls/os_env_spec.rb similarity index 100% rename from test/integration/default/controls/os_env_spec.rb rename to test/kitchen/policies/default/controls/os_env_spec.rb diff --git a/test/integration/default/controls/os_spec.rb b/test/kitchen/policies/default/controls/os_spec.rb similarity index 100% rename from test/integration/default/controls/os_spec.rb rename to test/kitchen/policies/default/controls/os_spec.rb diff --git a/test/integration/default/controls/package_spec.rb b/test/kitchen/policies/default/controls/package_spec.rb similarity index 100% rename from test/integration/default/controls/package_spec.rb rename to test/kitchen/policies/default/controls/package_spec.rb diff --git a/test/integration/default/controls/port_spec.rb b/test/kitchen/policies/default/controls/port_spec.rb similarity index 100% rename from test/integration/default/controls/port_spec.rb rename to test/kitchen/policies/default/controls/port_spec.rb diff --git a/test/integration/default/controls/postgres_session_spec.rb b/test/kitchen/policies/default/controls/postgres_session_spec.rb similarity index 100% rename from test/integration/default/controls/postgres_session_spec.rb rename to test/kitchen/policies/default/controls/postgres_session_spec.rb diff --git a/test/integration/default/controls/powershell_spec.rb b/test/kitchen/policies/default/controls/powershell_spec.rb similarity index 100% rename from test/integration/default/controls/powershell_spec.rb rename to test/kitchen/policies/default/controls/powershell_spec.rb diff --git a/test/integration/default/controls/registry_key_spec.rb b/test/kitchen/policies/default/controls/registry_key_spec.rb similarity index 100% rename from test/integration/default/controls/registry_key_spec.rb rename to test/kitchen/policies/default/controls/registry_key_spec.rb diff --git a/test/integration/default/controls/secpol_spec.rb b/test/kitchen/policies/default/controls/secpol_spec.rb similarity index 100% rename from test/integration/default/controls/secpol_spec.rb rename to test/kitchen/policies/default/controls/secpol_spec.rb diff --git a/test/integration/default/controls/security_identifier_spec.rb b/test/kitchen/policies/default/controls/security_identifier_spec.rb similarity index 100% rename from test/integration/default/controls/security_identifier_spec.rb rename to test/kitchen/policies/default/controls/security_identifier_spec.rb diff --git a/test/integration/default/controls/service_spec.rb b/test/kitchen/policies/default/controls/service_spec.rb similarity index 100% rename from test/integration/default/controls/service_spec.rb rename to test/kitchen/policies/default/controls/service_spec.rb diff --git a/test/integration/default/controls/toml_spec.rb b/test/kitchen/policies/default/controls/toml_spec.rb similarity index 100% rename from test/integration/default/controls/toml_spec.rb rename to test/kitchen/policies/default/controls/toml_spec.rb diff --git a/test/integration/default/controls/user_spec.rb b/test/kitchen/policies/default/controls/user_spec.rb similarity index 100% rename from test/integration/default/controls/user_spec.rb rename to test/kitchen/policies/default/controls/user_spec.rb diff --git a/test/integration/default/controls/vbscript_spec.rb b/test/kitchen/policies/default/controls/vbscript_spec.rb similarity index 100% rename from test/integration/default/controls/vbscript_spec.rb rename to test/kitchen/policies/default/controls/vbscript_spec.rb diff --git a/test/integration/default/controls/virtualization_spec.rb b/test/kitchen/policies/default/controls/virtualization_spec.rb similarity index 100% rename from test/integration/default/controls/virtualization_spec.rb rename to test/kitchen/policies/default/controls/virtualization_spec.rb diff --git a/test/integration/default/controls/windows_hotfix_spec.rb b/test/kitchen/policies/default/controls/windows_hotfix_spec.rb similarity index 100% rename from test/integration/default/controls/windows_hotfix_spec.rb rename to test/kitchen/policies/default/controls/windows_hotfix_spec.rb diff --git a/test/integration/default/controls/windows_task_spec.rb b/test/kitchen/policies/default/controls/windows_task_spec.rb similarity index 100% rename from test/integration/default/controls/windows_task_spec.rb rename to test/kitchen/policies/default/controls/windows_task_spec.rb diff --git a/test/integration/default/controls/wmi_spec.rb b/test/kitchen/policies/default/controls/wmi_spec.rb similarity index 100% rename from test/integration/default/controls/wmi_spec.rb rename to test/kitchen/policies/default/controls/wmi_spec.rb diff --git a/test/integration/default/controls/x509_spec.rb b/test/kitchen/policies/default/controls/x509_spec.rb similarity index 100% rename from test/integration/default/controls/x509_spec.rb rename to test/kitchen/policies/default/controls/x509_spec.rb diff --git a/test/integration/default/controls/xml_spec.rb b/test/kitchen/policies/default/controls/xml_spec.rb similarity index 100% rename from test/integration/default/controls/xml_spec.rb rename to test/kitchen/policies/default/controls/xml_spec.rb diff --git a/test/integration/default/controls/yaml_spec.rb b/test/kitchen/policies/default/controls/yaml_spec.rb similarity index 100% rename from test/integration/default/controls/yaml_spec.rb rename to test/kitchen/policies/default/controls/yaml_spec.rb diff --git a/test/integration/default/inspec.yml b/test/kitchen/policies/default/inspec.yml similarity index 100% rename from test/integration/default/inspec.yml rename to test/kitchen/policies/default/inspec.yml diff --git a/test/integration/find_files/README.md b/test/kitchen/policies/find_files/README.md similarity index 100% rename from test/integration/find_files/README.md rename to test/kitchen/policies/find_files/README.md diff --git a/test/integration/find_files/controls/find_files_spec.rb b/test/kitchen/policies/find_files/controls/find_files_spec.rb similarity index 100% rename from test/integration/find_files/controls/find_files_spec.rb rename to test/kitchen/policies/find_files/controls/find_files_spec.rb diff --git a/test/integration/find_files/inspec.yml b/test/kitchen/policies/find_files/inspec.yml similarity index 100% rename from test/integration/find_files/inspec.yml rename to test/kitchen/policies/find_files/inspec.yml diff --git a/test/integration/find_files/libraries/find_files.rb b/test/kitchen/policies/find_files/libraries/find_files.rb similarity index 100% rename from test/integration/find_files/libraries/find_files.rb rename to test/kitchen/policies/find_files/libraries/find_files.rb