Verified Commit 67359106 authored by Pierre-Louis Bonicoli's avatar Pierre-Louis Bonicoli 🏗
Browse files

reorganize tests & molecule playbooks

A new scenario using k8s based driver will be added, move all common
playbooks and config.
parent 813faaed
---
dependency:
name: galaxy
lint: |
set -e
yamllint --strict .
ansible-lint
flake8
# 2 hosts must be defined in plaforms entry: molecule-burp-server and
# molecule-burp-client
provisioner:
name: ansible
playbooks:
prepare: ../common/prepare.yml
converge: ../common/converge.yml
config_options:
defaults:
any_errors_fatal: true
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
host_vars:
molecule-burp-client:
canary: foobar
canary_path: '/home/{{ test_user }}/data/canary'
test_user: testuser
verifier:
name: testinfra
directory: ../common/tests/
......@@ -22,4 +22,4 @@ practices.
Usage
=====
$ molecule test
$ molecule --base-config molecule/base.yml test
---
dependency:
name: galaxy
driver:
name: docker
lint: |
set -e
yamllint --strict .
ansible-lint
flake8
platforms:
- name: molecule-burp-server
image: debian:stretch
......@@ -23,19 +16,3 @@ platforms:
tmpfs: ['/tmp', '/run', '/run/lock']
volumes: ['/sys/fs/cgroup:/sys/fs/cgroup:ro']
networks: [{name: burp_network}]
provisioner:
name: ansible
config_options:
defaults:
any_errors_fatal: true
inventory:
group_vars:
all:
ansible_python_interpreter: /usr/bin/python3
host_vars:
molecule-burp-client:
canary: foobar
canary_path: '/home/{{ test_user }}/data/canary'
test_user: testuser
verifier:
name: testinfra
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment