forked from evolix/ansible-roles
bind: add tests
This commit is contained in:
parent
e2f5f91b08
commit
b6d2c023cf
35
bind/.kitchen.yml
Normal file
35
bind/.kitchen.yml
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
---
|
||||||
|
driver:
|
||||||
|
name: docker
|
||||||
|
privileged: true
|
||||||
|
use_sudo: false
|
||||||
|
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
hosts: test-kitchen
|
||||||
|
roles_path: ../
|
||||||
|
ansible_verbose: true
|
||||||
|
require_ansible_source: true
|
||||||
|
install_source_rev: "stable-2.0.0.1"
|
||||||
|
require_chef_for_busser: false
|
||||||
|
idempotency_test: true
|
||||||
|
|
||||||
|
platforms:
|
||||||
|
- name: debian-8
|
||||||
|
|
||||||
|
verifier:
|
||||||
|
name: serverspec
|
||||||
|
|
||||||
|
suites:
|
||||||
|
- name: default
|
||||||
|
provisioner:
|
||||||
|
name: ansible_playbook
|
||||||
|
playbook: ./tests/test.yml
|
||||||
|
verifier:
|
||||||
|
patterns:
|
||||||
|
- nginx/tests/spec/bind_spec.rb
|
||||||
|
bundler_path: '/usr/local/bin'
|
||||||
|
rspec_path: '/usr/local/bin'
|
||||||
|
|
||||||
|
transport:
|
||||||
|
max_ssh_sessions: 6
|
9
bind/tests/spec/bind_spec.rb
Normal file
9
bind/tests/spec/bind_spec.rb
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
require 'net/http'
|
||||||
|
require 'uri'
|
||||||
|
|
||||||
|
require 'serverspec'
|
||||||
|
set :backend, :exec
|
||||||
|
|
||||||
|
describe port(53) do
|
||||||
|
it { should be_listening }
|
||||||
|
end
|
4
bind/tests/test.yml
Normal file
4
bind/tests/test.yml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
- hosts: test-kitchen
|
||||||
|
roles:
|
||||||
|
- role: nginx
|
Loading…
Reference in a new issue