Skip to content

Commit

Permalink
add integration test
Browse files Browse the repository at this point in the history
Signed-off-by: Jack Zhang <jack4zhang@gmail.com>
  • Loading branch information
zhan9san committed Oct 28, 2024
1 parent 7e862f9 commit 60aeef8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions roles/nvidia_gpu_exporter/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ nvidia_gpu_exporter_binary_install_dir: "/usr/local/bin"
nvidia_gpu_exporter_system_group: "nvidia-gpu-exp"
nvidia_gpu_exporter_system_user: "{{ nvidia_gpu_exporter_system_group }}"

nvidia_gpu_exporter_config_dir: "/etc/nvidia_gpu_exporter"
# Local path to stash the archive and its extraction
nvidia_gpu_exporter_local_cache_path: "/tmp/nvidia_gpu_exporter-{{ ansible_system | lower }}-{{ _nvidia_gpu_exporter_go_ansible_arch }}/{{ nvidia_gpu_exporter_version }}"
3 changes: 3 additions & 0 deletions roles/nvidia_gpu_exporter/meta/argument_specs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ argument_specs:
nvidia_gpu_exporter_local_cache_path:
description: "Local path to stash the archive and its extraction"
default: "/tmp/nvidia_gpu_exporter-{{ ansible_system | lower }}-{{ _nvidia_gpu_exporter_go_ansible_arch }}/{{ nvidia_gpu_exporter_version }}"
nvidia_gpu_exporter_config_dir:
description: "Path to directory with nvidia_gpu_exporter configuration"
default: "/etc/nvidia_gpu_exporter"
1 change: 1 addition & 0 deletions roles/nvidia_gpu_exporter/tasks/configure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
vars:
_common_system_user: "{{ nvidia_gpu_exporter_system_user }}"
_common_system_group: "{{ nvidia_gpu_exporter_system_group }}"
_common_config_dir: "{{ nvidia_gpu_exporter_config_dir }}"
tags:
- nvidia_gpu_exporter
- configure
Expand Down
1 change: 0 additions & 1 deletion roles/nvidia_gpu_exporter/test-requirements.txt

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

collection_root=$(pwd | grep -oP ".+\/ansible_collections\/\w+?\/\w+")
source "$collection_root/tests/integration/molecule.sh"

0 comments on commit 60aeef8

Please sign in to comment.