kubevirt_vm: Run integration test in random namespace

Run the integration tests for kubevirt_vm in a random namespace
and cleanup after the tests finish.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-08-15 13:31:48 +02:00
parent 00690ebc4c
commit 71ea312cfc
7 changed files with 46 additions and 10 deletions

View File

@@ -0,0 +1,16 @@
---
- name: Generate test files
connection: local
gather_facts: false
hosts: localhost
tasks:
- name: Generate test files
ansible.builtin.template:
src: "{{ item }}.yml.j2"
dest: "{{ item }}.yml"
mode: "0644"
with_items:
- playbook
- test.kubevirt
- verify
- wait_for_vm