-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update spec tests with up-to-date fauxhai versions * Migrate from berkshelf to policyfile * Apply latest rubocop * Update status badge * Pin gems to ease dependency resolution
- Loading branch information
m.colonna
committed
Dec 14, 2023
1 parent
184a1d6
commit 280d193
Showing
14 changed files
with
103 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
.vagrant | ||
Berksfile.lock | ||
Policyfile.lock.json | ||
*~ | ||
*# | ||
.#* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Usage: KITCHEN_YAML=.kitchen.docker.yml bundle exec kitchen list | ||
--- | ||
driver: | ||
name: dokken | ||
chef_version: 14.7.17 | ||
privileged: true # because Docker and SystemD/Upstart | ||
|
||
transport: | ||
name: dokken | ||
|
||
provisioner: | ||
name: dokken | ||
chef_license: accept | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: centos-7 | ||
driver: | ||
image: dokken/centos-7 | ||
intermediate_instructions: | ||
- RUN yum clean all | ||
- RUN yum -y install net-tools lsof | ||
pid_one_command: /usr/lib/systemd/systemd | ||
|
||
- name: fedora-29 | ||
driver: | ||
image: fedora:29 | ||
intermediate_instructions: | ||
- RUN yum clean all | ||
- RUN yum -y install tar yum | ||
pid_one_command: /usr/lib/systemd/systemd | ||
|
||
- name: ubuntu-20.04 | ||
driver: | ||
image: dokken/ubuntu-20.04 | ||
pid_one_command: /bin/systemd | ||
intermediate_instructions: | ||
- RUN /usr/bin/apt-get update | ||
- RUN /usr/bin/apt-get install apt-transport-https net-tools curl -y | ||
|
||
suites: | ||
<%= require 'erubis'; Erubis::Eruby.new(File.read('.kitchen_suites.yml')).evaluate %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ verifier: | |
|
||
provisioner: | ||
name: chef_zero | ||
chef_license: accept | ||
|
||
attributes: | ||
authorization: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,20 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'berkshelf' | ||
gem 'kitchen-vagrant' | ||
gem 'chefspec' | ||
gem 'rake' | ||
gem 'foodcritic' | ||
gem 'chef' | ||
gem 'rubocop' | ||
group :unit_test do | ||
gem 'chef', '= 14.7.17' | ||
gem 'chefspec', '>= 9.2.1' | ||
gem 'fakefs', '>= 2.4.0' | ||
gem 'webmock', '>= 3.13.0' | ||
end | ||
|
||
gem 'kitchen-transport-speedy' | ||
group :ec2 do | ||
gem 'test-kitchen' | ||
gem 'kitchen-ec2' | ||
gem 'dotenv' | ||
group :integration do | ||
gem 'kitchen-dokken', '>= 2.19.1' | ||
gem 'kitchen-inspec', '>= 2.6.1' | ||
gem 'kitchen-vagrant', '>= 1.14.1' | ||
gem 'test-kitchen', '>= 3.5.0' | ||
end | ||
|
||
# Other gems should go after this comment | ||
gem 'inspec' | ||
gem 'kitchen-inspec' | ||
gem 'cookbook-release' | ||
group :lint do | ||
gem 'foodcritic', '>= 16.3.0' | ||
gem 'rubocop', '= 0.80.1' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
name 'kernel-modules' | ||
|
||
run_list ['kernel-modules'] | ||
named_run_list :test, run_list + ['recipe[test-module]'] | ||
|
||
default_source :community | ||
|
||
# Current cookbook | ||
cookbook 'kernel-modules', path: '.' | ||
# Test cookbooks | ||
cookbook 'test-module', path: 'test/cookbooks/test-module' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ CONTRIBUTING* | |
CHANGELOG* | ||
TESTING* | ||
MAINTAINERS.toml | ||
Policyfile.* | ||
|
||
# Strainer # | ||
############ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters