Browse Source

Tweak tests

tags/0.0.1^2
Julien Cabillot 1 year ago
parent
commit
d84d0bec32
4 changed files with 16 additions and 8 deletions
  1. +0
    -6
      kitchen.yml
  2. +2
    -2
      test/integration/default/amazon.rb
  3. +7
    -0
      test/integration/default/centos.rb
  4. +7
    -0
      test/integration/default/rhel.rb

+ 0
- 6
kitchen.yml View File

@@ -79,8 +79,6 @@ suites:
playbook: "tests/test.yml"
verifier:
inspec_tests:
- name: local
path: test/integration/default/main.rb
- name: local
path: test/integration/default/rhel.rb
- name: "centos"
@@ -91,8 +89,6 @@ suites:
playbook: "tests/test.yml"
verifier:
inspec_tests:
- name: local
path: test/integration/default/main.rb
- name: local
path: test/integration/default/centos.rb
- name: "amazon"
@@ -103,8 +99,6 @@ suites:
playbook: "tests/test.yml"
verifier:
inspec_tests:
- name: local
path: test/integration/default/main.rb
- name: local
path: test/integration/default/amazon.rb


test/integration/default/main.rb → test/integration/default/amazon.rb View File

@@ -1,7 +1,7 @@
control "ansible-role-docker - #{os.name} #{os.release} - 01" do
impact 1.0
title 'Ansible role docker'
describe directory('/') do
it { should exist }
describe package('docker') do
it { should be_installed }
end
end

+ 7
- 0
test/integration/default/centos.rb View File

@@ -0,0 +1,7 @@
control "ansible-role-docker - #{os.name} #{os.release} - 01" do
impact 1.0
title 'Ansible role docker'
describe package('docker-ce') do
it { should be_installed }
end
end

+ 7
- 0
test/integration/default/rhel.rb View File

@@ -0,0 +1,7 @@
control "ansible-role-docker - #{os.name} #{os.release} - 01" do
impact 1.0
title 'Ansible role docker'
describe package('docker-ce') do
it { should be_installed }
end
end

Loading…
Cancel
Save