From 352bfd18b578dfa42a4d22638504794be8fd9453 Mon Sep 17 00:00:00 2001 From: Jack Zhang Date: Mon, 28 Oct 2024 18:00:29 +0800 Subject: [PATCH] add integration test --- roles/nvidia_gpu_exporter/test-requirements.txt | 1 - .../targets/molecule-nvidia_gpu_exporter-default/runme.sh | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) delete mode 100644 roles/nvidia_gpu_exporter/test-requirements.txt create mode 100644 tests/integration/targets/molecule-nvidia_gpu_exporter-default/runme.sh diff --git a/roles/nvidia_gpu_exporter/test-requirements.txt b/roles/nvidia_gpu_exporter/test-requirements.txt deleted file mode 100644 index 7f0b6e759..000000000 --- a/roles/nvidia_gpu_exporter/test-requirements.txt +++ /dev/null @@ -1 +0,0 @@ -bcrypt diff --git a/tests/integration/targets/molecule-nvidia_gpu_exporter-default/runme.sh b/tests/integration/targets/molecule-nvidia_gpu_exporter-default/runme.sh new file mode 100644 index 000000000..d094c3e1b --- /dev/null +++ b/tests/integration/targets/molecule-nvidia_gpu_exporter-default/runme.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash + +collection_root=$(pwd | grep -oP ".+\/ansible_collections\/\w+?\/\w+") +source "$collection_root/tests/integration/molecule.sh"