[MOLECULE] Add 'ubuntu' scenario for kube_prometheus.yml playbook tests 66/126466/1
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 5 Jan 2022 12:14:31 +0000 (13:14 +0100)
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>
Wed, 5 Jan 2022 12:14:31 +0000 (13:14 +0100)
Change-Id: Id423da14169e109c72f7441a1b944abef1e8a305
Issue-ID: OOM-2908
Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
ansible/test/play-kube_prometheus/molecule/ubuntu/molecule.yml [new file with mode: 0644]
ansible/test/play-kube_prometheus/molecule/ubuntu/vars.yml [new symlink]

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 (file)
index 0000000..383f03a
--- /dev/null
@@ -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 (symlink)
index 0000000..8be219f
--- /dev/null
@@ -0,0 +1 @@
+../default/vars.yml
\ No newline at end of file