Merge pull request #4601 from inspec/mj/tk

Re-organize test-kitchen files. Add BK Pipeline
This commit is contained in:
Miah Johnson 2019-10-17 12:49:31 -07:00 committed by GitHub
commit 245f681cb8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
86 changed files with 19 additions and 6 deletions

View file

@ -26,3 +26,4 @@ plugins:
enabled: true
exclude_patterns:
- "www/source/javascripts/"
- "test/kitchen"

View file

@ -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

View file

View file

@ -1,5 +1,6 @@
AllCops:
Exclude:
- 'test/kitchen/**/*'
- 'test/integration/**/controls/**/*.rb'
- 'test/unit/mock/profiles/**/*.rb'
- 'test/unit/mock/config_dirs/**/*.rb'

View file

@ -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

View file

@ -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

View file

@ -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