Directories created by Molecule tests were left in
files tree and not cleaned up. This patch adds a task
to shred them after test invocation.
Change-Id: If745cfc45de2f73db5be1696a16a185ff2a625bf
Issue-ID: OOM-1910
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
+++ /dev/null
-application/
playbooks:
prepare: ../default/prepare.yml
converge: ../default/playbook.yml
+ cleanup: ../default/cleanup.yml
scenario:
name: custom_role
test_sequence:
--- /dev/null
+---
+- name: Cleanup infra
+ hosts: all
+ ignore_unreachable: true
+ roles:
+ - cleanup-application
--- /dev/null
+---
+- name: Clean application role mocked artifacts directories
+ file:
+ path: "{{ item }}"
+ state: absent
+ delegate_to: localhost
+ loop:
+ - certs
+ - application