Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/copilot-setup-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ jobs:
- name: Install Chef
uses: actionshub/chef-install@main
- name: Install cookbooks
run: berks install
run: chef install Policyfile.rb
3 changes: 0 additions & 3 deletions Berksfile

This file was deleted.

22 changes: 22 additions & 0 deletions Policyfile.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# frozen_string_literal: true

name 'vcruntime'

run_list 'vcruntime::default'

cookbook 'vcruntime', path: '.'

named_run_list :default, 'vcruntime::default'
named_run_list :all,
'vcruntime::vc6',
'vcruntime::vc9',
'vcruntime::vc10',
'vcruntime::vc11',
'vcruntime::vc12',
'vcruntime::vc14'
named_run_list :vc6, 'vcruntime::vc6'
named_run_list :vc9, 'vcruntime::vc9'
named_run_list :vc10, 'vcruntime::vc10'
named_run_list :vc11, 'vcruntime::vc11'
named_run_list :vc12, 'vcruntime::vc12'
named_run_list :vc14, 'vcruntime::vc14'
6 changes: 2 additions & 4 deletions chefignore
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,8 @@ test/*
*/.hg/*
*/.svn/*

# Berkshelf #
#############
Berksfile
Berksfile.lock
# Dependency cache #
####################
cookbooks/*
tmp

Expand Down
36 changes: 16 additions & 20 deletions kitchen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ transport:
elevated: true

provisioner:
name: chef_zero
name: policyfile_zero
deprecations_as_errors: true
policyfile: Policyfile.rb

verifier:
name: inspec
Expand All @@ -26,49 +27,44 @@ platforms:

suites:
- name: all
run_list:
- recipe[vcruntime::vc6]
- recipe[vcruntime::vc9]
- recipe[vcruntime::vc10]
- recipe[vcruntime::vc11]
- recipe[vcruntime::vc12]
- recipe[vcruntime::vc14]
provisioner:
named_run_list: all
verifier:
inspec_tests:
- test/integration/default
- name: vc6
run_list:
- recipe[vcruntime::vc6]
provisioner:
named_run_list: vc6
verifier:
inspec_tests:
- test/integration/vc6
- name: vc9
run_list:
- recipe[vcruntime::vc9]
provisioner:
named_run_list: vc9
verifier:
inspec_tests:
- test/integration/vc9
- name: vc10
run_list:
- recipe[vcruntime::vc10]
provisioner:
named_run_list: vc10
verifier:
inspec_tests:
- test/integration/vc10
- name: vc11
run_list:
- recipe[vcruntime::vc11]
provisioner:
named_run_list: vc11
verifier:
inspec_tests:
- test/integration/vc11
- name: vc12
run_list:
- recipe[vcruntime::vc12]
provisioner:
named_run_list: vc12
verifier:
inspec_tests:
- test/integration/vc12
- name: vc14
run_list:
- recipe[vcruntime::vc14]
provisioner:
named_run_list: vc14
verifier:
inspec_tests:
- test/integration/vc14
4 changes: 3 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require 'chefspec'
require 'chefspec/berkshelf'
require 'chefspec/policyfile'

RSpec.configure do |config|
config.color = true # Use color in STDOUT
Expand Down