mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
Merge pull request #4601 from inspec/mj/tk
Re-organize test-kitchen files. Add BK Pipeline
This commit is contained in:
commit
245f681cb8
86 changed files with 19 additions and 6 deletions
|
@ -26,3 +26,4 @@ plugins:
|
|||
enabled: true
|
||||
exclude_patterns:
|
||||
- "www/source/javascripts/"
|
||||
- "test/kitchen"
|
||||
|
|
|
@ -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
|
||||
|
|
0
.expeditor/verify.resources.yml
Normal file
0
.expeditor/verify.resources.yml
Normal file
|
@ -1,5 +1,6 @@
|
|||
AllCops:
|
||||
Exclude:
|
||||
- 'test/kitchen/**/*'
|
||||
- 'test/integration/**/controls/**/*.rb'
|
||||
- 'test/unit/mock/profiles/**/*.rb'
|
||||
- 'test/unit/mock/config_dirs/**/*.rb'
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
10
kitchen.yml
10
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
|
||||
|
|
Loading…
Reference in a new issue