-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from richardc/test_kitchen
Convert acceptance tests to use test-kitchen
- Loading branch information
Showing
9 changed files
with
66 additions
and
100 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ Gemfile.lock | |
/.rspec_system | ||
/.ruby-version | ||
/.bundle | ||
/.kitchen |
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,21 @@ | ||
--- | ||
driver: | ||
name: docker | ||
use_sudo: false | ||
|
||
provisioner: | ||
name: puppet_apply | ||
require_chef_for_busser: false | ||
require_puppet_collections: true | ||
modules_path: . | ||
|
||
verifier: | ||
name: inspec | ||
|
||
platforms: | ||
- name: centos-6.9 | ||
|
||
suites: | ||
- name: default | ||
provisioner: | ||
manifests_path: test/integration/default |
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,17 +1,21 @@ | ||
--- | ||
sudo: false | ||
language: ruby | ||
bundler_args: --without development | ||
before_install: | ||
- gem update bundler | ||
script: "bundle exec rake spec SPEC_OPTS='--format documentation'" | ||
rvm: | ||
- 1.8.7 | ||
- 1.9.3 | ||
env: | ||
- PUPPET_GEM_VERSION="~> 3.0.0" | ||
- PUPPET_GEM_VERSION="~> 3.1.0" | ||
- PUPPET_GEM_VERSION="~> 3.2.0" | ||
- PUPPET_GEM_VERSION="~> 3.3.0" | ||
- PUPPET_GEM_VERSION="~> 3.4.0" | ||
- PUPPET_GEM_VERSION="~> 3.5.0" | ||
- PUPPET_GEM_VERSION="~> 3.6.0" | ||
- PUPPET_GEM_VERSION="~> 3.7.0" | ||
matrix: | ||
fast_finish: true | ||
include: | ||
- rvm: 2.3.1 | ||
script: bundle exec kitchen test | ||
services: docker | ||
sudo: required | ||
- rvm: 1.9.3 | ||
bundler_args: --without integration | ||
env: PUPPET_GEM_VERSION="~> 3.0" | ||
- rvm: 2.3.1 | ||
bundler_args: --without integration | ||
env: PUPPET_GEM_VERSION="~> 4.0" | ||
notifications: | ||
email: false |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,13 @@ | ||
datacat { "/tmp/demo1": | ||
template_body => "<% @data.keys.sort.each do |k| %><%= k %>: <%= @data[k] %>, <% end %>", | ||
} | ||
|
||
datacat_fragment { "foo": | ||
target => '/tmp/demo1', | ||
data => { foo => "one" }, | ||
} | ||
|
||
datacat_fragment { "bar": | ||
target => '/tmp/demo1', | ||
data => { bar => "two" }, | ||
} |
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,4 @@ | ||
describe file('/tmp/demo1') do | ||
it { should be_file } | ||
its('content') { should match(%r{bar: two, foo: one}) } | ||
end |