From 91a4b84f4efd3ae0358e6d6a49fa633b2a102b30 Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 16 Aug 2021 15:57:14 +0200 Subject: [PATCH] Port gating tests to standard-test-basic role Related: rhbz#1947473 Signed-off-by: Christian Heimes --- .gitignore | 1 + tests/test_ipa_yubikey.py | 2 +- tests/tests.yml | 11 +++++++---- 3 files changed, 9 insertions(+), 5 deletions(-) mode change 100644 => 100755 tests/test_ipa_yubikey.py diff --git a/.gitignore b/.gitignore index 3b213bb..cbfbd22 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ +/tests/artifacts/ /python-yubico-1.3.2.tar.gz /python-yubico-1.3.3.tar.gz diff --git a/tests/test_ipa_yubikey.py b/tests/test_ipa_yubikey.py old mode 100644 new mode 100755 index df8dda5..e97562d --- a/tests/test_ipa_yubikey.py +++ b/tests/test_ipa_yubikey.py @@ -1,4 +1,4 @@ -#!/usr/libexec/platform-python +#!/usr/bin/python3 """Simple test for APIs used by IPA's otptoken plugin """ import logging diff --git a/tests/tests.yml b/tests/tests.yml index b2e7870..d0b6fb4 100644 --- a/tests/tests.yml +++ b/tests/tests.yml @@ -3,8 +3,11 @@ tags: - classic roles: - - role: standard-test-scripts + - role: standard-test-source + - role: standard-test-basic + required_packages: + - python3-yubico tests: - - sanity.sh - files: - - test_ipa_yubikey.py + - test_ipa_yubikey: + dir: "tests" + run: ./test_ipa_yubikey.py