From 48c5db78d3d1b3c35f843d7e6664efb6bf8c2e9a Mon Sep 17 00:00:00 2001 From: Bas Meijer Date: Thu, 10 Sep 2020 20:03:48 +0200 Subject: [PATCH] Adding basic test --- molecule/default/tests/test_git.yml | 4 ++++ molecule/default/verify.yml | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 molecule/default/tests/test_git.yml diff --git a/molecule/default/tests/test_git.yml b/molecule/default/tests/test_git.yml new file mode 100644 index 0000000..cf863af --- /dev/null +++ b/molecule/default/tests/test_git.yml @@ -0,0 +1,4 @@ +--- +command: + git --version: + exit-status: 0 diff --git a/molecule/default/verify.yml b/molecule/default/verify.yml index c9e1545..421dbfa 100644 --- a/molecule/default/verify.yml +++ b/molecule/default/verify.yml @@ -37,6 +37,8 @@ register: test_files - name: Execute Goss tests + environment: + PATH: '/opt/rh/rh-git218/root/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' command: "{{ goss_dst }} -g {{ item }} validate -f {{ goss_format }}" register: test_results with_items: "{{ test_files.stdout_lines }}"