summaryrefslogtreecommitdiffstats
path: root/ansible/roles
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-04 13:51:54 +0100
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2022-01-05 13:31:46 +0100
commitae39a0515e9ce2f7d0a13934237b396372f7f062 (patch)
treec39abe3c0338ce76592baffca2ff9aae98c41299 /ansible/roles
parentc342c357701382d5fc0b2d7f9296e0cd46d108ad (diff)
[MOLECULE] Add molecule setup for kube_prometheus.yml playbook
nfs_mount_path in kube-prometheus-stack role is coerced to global value from group_vars to allow direct verifier test reuse in playbook run. Change-Id: I125355f2b65b57ae6782b9eafcb6d6b58a7444e0 Issue-ID: OOM-2908 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
Diffstat (limited to 'ansible/roles')
-rw-r--r--ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml2
-rw-r--r--ansible/roles/kube-prometheus-stack/molecule/default/tests/test_default.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml b/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
index c1eafa3b..bf9ed856 100644
--- a/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
+++ b/ansible/roles/kube-prometheus-stack/molecule/default/molecule.yml
@@ -23,6 +23,6 @@ provisioner:
all:
app_name: onap
app_data_path: "/opt/{{ app_name }}"
- nfs_mount_path: "/nfs"
+ nfs_mount_path: "/dockerdata-nfs"
verifier:
name: testinfra
diff --git a/ansible/roles/kube-prometheus-stack/molecule/default/tests/test_default.py b/ansible/roles/kube-prometheus-stack/molecule/default/tests/test_default.py
index ad2d90c3..18da24e8 100644
--- a/ansible/roles/kube-prometheus-stack/molecule/default/tests/test_default.py
+++ b/ansible/roles/kube-prometheus-stack/molecule/default/tests/test_default.py
@@ -26,7 +26,7 @@ def test_helm_values_file(host):
def test_grafana_dashboards(host):
- assert host.file('/nfs/kube-prometheus/kube-prometheus-grafana/'
+ assert host.file('/dockerdata-nfs/kube-prometheus/kube-prometheus-grafana/'
'dashboards/custom/grafana_dashboard.json').exists
- assert host.file('/nfs/kube-prometheus/kube-prometheus-grafana/'
+ assert host.file('/dockerdata-nfs/kube-prometheus/kube-prometheus-grafana/'
'dashboards/grafana_home.json').exists