From 0e8ed3f3afb8252fbb9e9196b115f424e066f2a8 Mon Sep 17 00:00:00 2001 From: Mahendra Paipuri Date: Thu, 29 Feb 2024 10:25:04 +0100 Subject: [PATCH] test: Fix failing tests Signed-off-by: Mahendra Paipuri --- .../molecule/alternative/tests/test_alternative.py | 2 +- roles/nvidia_dcgm_exporter/vars/main.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ceems_exporter/molecule/alternative/tests/test_alternative.py b/roles/ceems_exporter/molecule/alternative/tests/test_alternative.py index ed00e7d..983f1dd 100644 --- a/roles/ceems_exporter/molecule/alternative/tests/test_alternative.py +++ b/roles/ceems_exporter/molecule/alternative/tests/test_alternative.py @@ -43,7 +43,7 @@ def test_systemd_properties(host): p = s.systemd_properties assert p.get("ProtectHome") == "yes" assert p.get("Environment") == "EMAPS_API_TOKEN=foo" - assert p.get("AmbientCapabilities") in [None, ""] + assert p.get("AmbientCapabilities") in [None, "", "0", "False", False, "No", "no"] @pytest.mark.parametrize("socket", [ diff --git a/roles/nvidia_dcgm_exporter/vars/main.yml b/roles/nvidia_dcgm_exporter/vars/main.yml index a6f6dfc..072063d 100644 --- a/roles/nvidia_dcgm_exporter/vars/main.yml +++ b/roles/nvidia_dcgm_exporter/vars/main.yml @@ -10,5 +10,5 @@ go_arch: "{{ go_arch_map[ansible_architecture] | default(ansible_architecture) } _nvidia_dcgm_exporter_repo: NVIDIA/dcgm-exporter _github_api_headers: "{{ {'GITHUB_TOKEN': lookup('ansible.builtin.env', 'GITHUB_TOKEN')} if (lookup('ansible.builtin.env', 'GITHUB_TOKEN')) else {} }}" -_golang_download_url: https://go.dev/dl/go{{ golang_version }}.linux-{{ go_arch }}.tar.gz _golang_version: 1.21.5 +_golang_download_url: https://go.dev/dl/go{{ _golang_version }}.linux-{{ go_arch }}.tar.gz