summaryrefslogtreecommitdiffstats
path: root/ansible
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-05 13:14:31 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-05 13:14:31 +0100
commit923dc4c5f8d7239ac6fdfdf6c20e765f84754140 (patch)
treefba8f6875530f3d05b9b9ba3e1d77f46a8857d6e /ansible
parentfc3366594f36115f88f651255e43ed24abf28c19 (diff)
[MOLECULE] Add 'ubuntu' scenario for kube_prometheus.yml playbook tests
Change-Id: Id423da14169e109c72f7441a1b944abef1e8a305 Issue-ID: OOM-2908 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible')
-rw-r--r--ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml27
l---------ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml1
2 files changed, 28 insertions, 0 deletions
diff --git a/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml b/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml
new file mode 100644
index 00000000..383f03a4
--- /dev/null
+++ b/ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml
@@ -0,0 +1,27 @@
+---
+dependency:
+ name: galaxy
+driver:
+ name: docker
+lint: |
+ set -e
+ yamllint .
+ ansible-lint .
+ flake8
+platforms:
+ - name: infrastructure-play-ubuntu-kube-prometheus
+ image: molecule-${PREBUILD_PLATFORM_DISTRO:-ubuntu}:${PREBUILD_DISTRO_VERSION:-18.04}
+ pre_build_image: true
+ groups:
+ - infrastructure
+provisioner:
+ name: ansible
+ env:
+ ANSIBLE_ROLES_PATH: ../../../../test/roles
+ ANSIBLE_LIBRARY: ../../../../library
+ playbooks:
+ prepare: ../default/prepare.yml
+ converge: ../default/converge.yml
+verifier:
+ name: testinfra
+ directory: ../../../../roles/kube-prometheus-stack/molecule/default/tests/
diff --git a/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml b/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml
new file mode 120000
index 00000000..8be219f6
--- /dev/null
+++ b/ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml
@@ -0,0 +1 @@
+../default/vars.yml \ No newline at end of file