Browse Source

Add tests for many roles

samba
Jérémy Lecour 4 years ago
committed by Jérémy Lecour
parent
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

27
amavis/.kitchen.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

4
amavis/tests/test.yml

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

27
clamav/.kitchen.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

4
clamav/tests/test.yml

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

27
courier/.kitchen.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

4
courier/tests/test.yml

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

27
elastic-sources-list/.kitchen.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

4
elastic-sources-list/tests/test.yml

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

27
fail2ban/.kitchen.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

4
fail2ban/tests/test.yml

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

27
filebeat/.kitchen.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

4
filebeat/tests/test.yml

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

27
kvm-host/.kitchen.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

4
kvm-host/tests/test.yml

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

27
ldap/.kitchen.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

4
ldap/tests/test.yml

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

27
listupgrade/.kitchen.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

4
listupgrade/tests/test.yml

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

35
memcached/.kitchen.yml

@ -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

9
memcached/tests/spec/memcached_spec.rb

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

4
memcached/tests/test.yml

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

27
minifirewall/.kitchen.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

4
minifirewall/tests/test.yml

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

27
monit/.kitchen.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

4
monit/tests/test.yml

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

27
munin/.kitchen.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

4
munin/tests/test.yml

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

27
mysql/.kitchen.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

4
mysql/tests/test.yml

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

27
nagios-nrpe/.kitchen.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

4
nagios-nrpe/tests/test.yml

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

35
nginx-light/.kitchen.yml

@ -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

9
nginx-light/tests/spec/nginx_light_spec.rb

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

4
nginx-light/tests/test.yml

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

27
php-fpm/.kitchen.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

4
php-fpm/tests/test.yml

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

27
postfix/.kitchen.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

4
postfix/tests/test.yml

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

27
postgresql/.kitchen.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

4
postgresql/tests/test.yml

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

27
proftpd/.kitchen.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

4
proftpd/tests/test.yml

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

27
rabbitmq/.kitchen.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

4
rabbitmq/tests/test.yml

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

27
redis/.kitchen.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

4
redis/tests/test.yml

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

27
samba/.kitchen.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

4
samba/tests/test.yml

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

27
spamassassin/.kitchen.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

4
spamassassin/tests/test.yml

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

27
squid/.kitchen.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

4
squid/tests/test.yml

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

27
tomcat-instance/.kitchen.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

4
tomcat-instance/tests/test.yml

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

27
varnish/.kitchen.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

4
varnish/tests/test.yml

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

27
vrrpd/.kitchen.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

4
vrrpd/tests/test.yml

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