Updated kitchen suite to use new testing methods and integration test
This commit is contained in:
parent
3d948e3ecb
commit
df5b682fc6
3 changed files with 32 additions and 17 deletions
30
.kitchen.yml
30
.kitchen.yml
|
@ -1,28 +1,26 @@
|
|||
---
|
||||
driver:
|
||||
name: vagrant
|
||||
name: vagrant
|
||||
|
||||
provisioner:
|
||||
name: chef_zero
|
||||
environments_path: test/environments
|
||||
chef_client_path: /usr/bin/chef-client
|
||||
client_rb:
|
||||
environment: integration_test_env
|
||||
name: chef_zero
|
||||
nodes_path: test/fixtures/nodes
|
||||
clients_path: test/fixtures/clients
|
||||
environments_path: test/fixtures/environments
|
||||
data_bags_path: test/fixtures/data_bags
|
||||
chef_client_path: /usr/bin/chef-client
|
||||
client_rb:
|
||||
environment: test
|
||||
|
||||
platforms:
|
||||
- name: deb8
|
||||
driver:
|
||||
box: lh-debian
|
||||
box_url: http://repos.home.ld/vagrant/box/lh-debian.json
|
||||
vm_hostname: integration.deb.test
|
||||
vagrantfile_erb: test/Vagrantfile.erb
|
||||
require_chef_omnibus: false
|
||||
- name: debian-8.6
|
||||
driver_config:
|
||||
vm_hostname: integration.deb.test
|
||||
require_chef_omnibus: false
|
||||
|
||||
suites:
|
||||
- name: deb8
|
||||
- name: default
|
||||
run_list:
|
||||
- recipe[apt-zabbix::default]
|
||||
attributes:
|
||||
includes:
|
||||
- deb8
|
||||
|
||||
|
|
17
test/fixtures/environments/test.json
vendored
Normal file
17
test/fixtures/environments/test.json
vendored
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"id": "test",
|
||||
"name": "test",
|
||||
"description": "placeholder for integration testing",
|
||||
"cookbook_versions": {
|
||||
|
||||
},
|
||||
"json_class": "Chef::Environment",
|
||||
"chef_type": "environment",
|
||||
"default_attributes": {
|
||||
|
||||
},
|
||||
"override_attributes": {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -16,7 +16,7 @@ describe 'apt-zabbix::default' do
|
|||
it { should be_mode 644 }
|
||||
it { should be_owned_by 'root' }
|
||||
it { should be_grouped_into 'root' }
|
||||
its(:content) { shoult match('deb ... jessie contrib non-free main') }
|
||||
its(:content) { should match('deb "http://repo.zabbix.com/zabbix/3.0/debian" jessie main') }
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue