Add tests for many roles

samba
Jérémy Lecour 6 years ago committed by Jérémy Lecour
parent 2794929c22
commit 033ebaa593
  1. 27
      amavis/.kitchen.yml
  2. 4
      amavis/tests/test.yml
  3. 27
      clamav/.kitchen.yml
  4. 4
      clamav/tests/test.yml
  5. 27
      courier/.kitchen.yml
  6. 4
      courier/tests/test.yml
  7. 27
      elastic-sources-list/.kitchen.yml
  8. 4
      elastic-sources-list/tests/test.yml
  9. 27
      fail2ban/.kitchen.yml
  10. 4
      fail2ban/tests/test.yml
  11. 27
      filebeat/.kitchen.yml
  12. 4
      filebeat/tests/test.yml
  13. 27
      kvm-host/.kitchen.yml
  14. 4
      kvm-host/tests/test.yml
  15. 27
      ldap/.kitchen.yml
  16. 4
      ldap/tests/test.yml
  17. 27
      listupgrade/.kitchen.yml
  18. 4
      listupgrade/tests/test.yml
  19. 35
      memcached/.kitchen.yml
  20. 9
      memcached/tests/spec/memcached_spec.rb
  21. 4
      memcached/tests/test.yml
  22. 27
      minifirewall/.kitchen.yml
  23. 4
      minifirewall/tests/test.yml
  24. 27
      monit/.kitchen.yml
  25. 4
      monit/tests/test.yml
  26. 27
      munin/.kitchen.yml
  27. 4
      munin/tests/test.yml
  28. 27
      mysql/.kitchen.yml
  29. 4
      mysql/tests/test.yml
  30. 27
      nagios-nrpe/.kitchen.yml
  31. 4
      nagios-nrpe/tests/test.yml
  32. 35
      nginx-light/.kitchen.yml
  33. 9
      nginx-light/tests/spec/nginx_light_spec.rb
  34. 4
      nginx-light/tests/test.yml
  35. 27
      php-fpm/.kitchen.yml
  36. 4
      php-fpm/tests/test.yml
  37. 27
      postfix/.kitchen.yml
  38. 4
      postfix/tests/test.yml
  39. 27
      postgresql/.kitchen.yml
  40. 4
      postgresql/tests/test.yml
  41. 27
      proftpd/.kitchen.yml
  42. 4
      proftpd/tests/test.yml
  43. 27
      rabbitmq/.kitchen.yml
  44. 4
      rabbitmq/tests/test.yml
  45. 27
      redis/.kitchen.yml
  46. 4
      redis/tests/test.yml
  47. 27
      samba/.kitchen.yml
  48. 4
      samba/tests/test.yml
  49. 27
      spamassassin/.kitchen.yml
  50. 4
      spamassassin/tests/test.yml
  51. 27
      squid/.kitchen.yml
  52. 4
      squid/tests/test.yml
  53. 27
      tomcat-instance/.kitchen.yml
  54. 4
      tomcat-instance/tests/test.yml
  55. 27
      varnish/.kitchen.yml
  56. 4
      varnish/tests/test.yml
  57. 27
      vrrpd/.kitchen.yml
  58. 4
      vrrpd/tests/test.yml

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: amavis

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: clamav

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: courier

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: elastic-sources-list

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: fail2ban

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: filebeat

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: kvm-host

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: ldap

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: listupgrade

@ -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.2.1.0"
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/memcached_spec.rb
bundler_path: '/usr/local/bin'
rspec_path: '/usr/local/bin'
transport:
max_ssh_sessions: 6

@ -0,0 +1,9 @@
require 'net/http'
require 'uri'
require 'serverspec'
set :backend, :exec
describe port(11211) do
it { should be_listening }
end

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: memcached

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: minifirewall

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: monit

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: munin

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: mysql

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: nagios-nrpe

@ -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.2.1.0"
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/nginx_light_spec.rb
bundler_path: '/usr/local/bin'
rspec_path: '/usr/local/bin'
transport:
max_ssh_sessions: 6

@ -0,0 +1,9 @@
require 'net/http'
require 'uri'
require 'serverspec'
set :backend, :exec
describe port(80) do
it { should be_listening }
end

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: nginx-light

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: php-fpm

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: postfix

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: postgresql

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: proftpd

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: rabbitmq

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: redis

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: samba

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: spamassassin

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: squid

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: tomcat-instance

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: varnish

@ -0,0 +1,27 @@
---
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.2.1.0"
require_chef_for_busser: false
idempotency_test: true
platforms:
- name: debian-8
suites:
- name: default
provisioner:
name: ansible_playbook
playbook: ./tests/test.yml
transport:
max_ssh_sessions: 6

@ -0,0 +1,4 @@
---
- hosts: test-kitchen
roles:
- role: vrrpd
Loading…
Cancel
Save