diff options
author | Samuli Silvius <s.silvius@partner.samsung.com> | 2019-05-30 15:30:21 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-05-30 15:30:21 +0000 |
commit | f45f73f749fffb301d825ec53fae2878c505980d (patch) | |
tree | dcb24a76dd36929bce5c7e47bd68e4748965aaf3 /ansible/roles/dns/molecule | |
parent | 293ad25456bb37dbd6827d26f87e495a2b7f1b85 (diff) | |
parent | 4b8c98fc46f0462322b01b349324a0bfc3de0258 (diff) |
Merge "Add Molecule tests for 'dns' role"
Diffstat (limited to 'ansible/roles/dns/molecule')
l--------- | ansible/roles/dns/molecule/default/group_vars | 1 | ||||
-rw-r--r-- | ansible/roles/dns/molecule/default/molecule.yml | 36 | ||||
-rw-r--r-- | ansible/roles/dns/molecule/default/playbook.yml | 5 | ||||
-rw-r--r-- | ansible/roles/dns/molecule/default/prepare.yml | 10 |
4 files changed, 52 insertions, 0 deletions
diff --git a/ansible/roles/dns/molecule/default/group_vars b/ansible/roles/dns/molecule/default/group_vars new file mode 120000 index 00000000..e04e088f --- /dev/null +++ b/ansible/roles/dns/molecule/default/group_vars @@ -0,0 +1 @@ +../../../../group_vars/
\ No newline at end of file diff --git a/ansible/roles/dns/molecule/default/molecule.yml b/ansible/roles/dns/molecule/default/molecule.yml new file mode 100644 index 00000000..00c63ca9 --- /dev/null +++ b/ansible/roles/dns/molecule/default/molecule.yml @@ -0,0 +1,36 @@ +--- +dependency: + name: galaxy +driver: + name: docker +lint: + name: yamllint +platforms: + - name: infrastructure-server + image: molecule-${PREBUILD_PLATFORM_DISTRO:-centos}:${PREBUILD_DISTRO_VERSION:-centos7.6} + pre_build_image: True + privileged: true + override_command: False + groups: + - infrastructure + volumes: + - /var/lib/docker +provisioner: + name: ansible + lint: + name: ansible-lint + env: + ANSIBLE_ROLES_PATH: ../../../../test/roles + ANSIBLE_LIBRARY: ../../../../library + inventory: + host_vars: + infrastructure-server: + cluster_ip: 127.0.0.1 + group_vars: + all: + app_name: onap + app_data_path: "/opt/{{ app_name }}" +verifier: + name: testinfra + lint: + name: flake8 diff --git a/ansible/roles/dns/molecule/default/playbook.yml b/ansible/roles/dns/molecule/default/playbook.yml new file mode 100644 index 00000000..8754f8b0 --- /dev/null +++ b/ansible/roles/dns/molecule/default/playbook.yml @@ -0,0 +1,5 @@ +--- +- name: Converge + hosts: all + roles: + - role: dns diff --git a/ansible/roles/dns/molecule/default/prepare.yml b/ansible/roles/dns/molecule/default/prepare.yml new file mode 100644 index 00000000..f29f089e --- /dev/null +++ b/ansible/roles/dns/molecule/default/prepare.yml @@ -0,0 +1,10 @@ +--- +- name: Get localhost facts + hosts: localhost + +- name: Setup all hosts for playing dns role + hosts: all + roles: + - prepare-common + - prepare-docker-dind + - prepare-dns |