Browse Source

Add tests for many roles

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

+ 27
- 0
amavis/.kitchen.yml View File

@@ -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
- 0
amavis/tests/test.yml View File

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

+ 27
- 0
clamav/.kitchen.yml View File

@@ -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
- 0
clamav/tests/test.yml View File

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

+ 27
- 0
courier/.kitchen.yml View File

@@ -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
- 0
courier/tests/test.yml View File

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

+ 27
- 0
elastic-sources-list/.kitchen.yml View File

@@ -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
- 0
elastic-sources-list/tests/test.yml View File

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

+ 27
- 0
fail2ban/.kitchen.yml View File

@@ -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
- 0
fail2ban/tests/test.yml View File

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

+ 27
- 0
filebeat/.kitchen.yml View File

@@ -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
- 0
filebeat/tests/test.yml View File

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

+ 27
- 0
kvm-host/.kitchen.yml View File

@@ -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
- 0
kvm-host/tests/test.yml View File

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

+ 27
- 0
ldap/.kitchen.yml View File

@@ -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
- 0
ldap/tests/test.yml View File

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

+ 27
- 0
listupgrade/.kitchen.yml View File

@@ -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
- 0
listupgrade/tests/test.yml View File

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

+ 35
- 0
memcached/.kitchen.yml View 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.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
- 0
memcached/tests/spec/memcached_spec.rb View File

@@ -0,0 +1,9 @@
require 'net/http'
require 'uri'

require 'serverspec'
set :backend, :exec

describe port(11211) do
it { should be_listening }
end

+ 4
- 0
memcached/tests/test.yml View File

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

+ 27
- 0
minifirewall/.kitchen.yml View File

@@ -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
- 0
minifirewall/tests/test.yml View File

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

+ 27
- 0
monit/.kitchen.yml View File

@@ -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
- 0
monit/tests/test.yml View File

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

+ 27
- 0
munin/.kitchen.yml View File

@@ -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
- 0
munin/tests/test.yml View File

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

+ 27
- 0
mysql/.kitchen.yml View File

@@ -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
- 0
mysql/tests/test.yml View File

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

+ 27
- 0
nagios-nrpe/.kitchen.yml View File

@@ -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
- 0
nagios-nrpe/tests/test.yml View File

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

+ 35
- 0
nginx-light/.kitchen.yml View 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.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
- 0
nginx-light/tests/spec/nginx_light_spec.rb View File

@@ -0,0 +1,9 @@
require 'net/http'
require 'uri'

require 'serverspec'
set :backend, :exec

describe port(80) do
it { should be_listening }
end

+ 4
- 0
nginx-light/tests/test.yml View File

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

+ 27
- 0
php-fpm/.kitchen.yml View File

@@ -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
- 0
php-fpm/tests/test.yml View File

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

+ 27
- 0
postfix/.kitchen.yml View File

@@ -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
- 0
postfix/tests/test.yml View File

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

+ 27
- 0
postgresql/.kitchen.yml View File

@@ -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
- 0
postgresql/tests/test.yml View File

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

+ 27
- 0
proftpd/.kitchen.yml View File

@@ -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
- 0
proftpd/tests/test.yml View File

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

+ 27
- 0
rabbitmq/.kitchen.yml View File

@@ -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
- 0
rabbitmq/tests/test.yml View File

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

+ 27
- 0
redis/.kitchen.yml View File

@@ -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
- 0
redis/tests/test.yml View File

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

+ 27
- 0
samba/.kitchen.yml View File

@@ -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
- 0
samba/tests/test.yml View File

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

+ 27
- 0
spamassassin/.kitchen.yml View File

@@ -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
- 0
spamassassin/tests/test.yml View File

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

+ 27
- 0
squid/.kitchen.yml View File

@@ -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
- 0
squid/tests/test.yml View File

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

+ 27
- 0
tomcat-instance/.kitchen.yml View File

@@ -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
- 0
tomcat-instance/tests/test.yml View File

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

+ 27
- 0
varnish/.kitchen.yml View File

@@ -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
- 0
varnish/tests/test.yml View File

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

+ 27
- 0
vrrpd/.kitchen.yml View File

@@ -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
- 0
vrrpd/tests/test.yml View File

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

Loading…
Cancel
Save