From 611c876566c337b3a5dc989b58a7bc8ec76137a7 Mon Sep 17 00:00:00 2001 From: Gaurav Swami Date: Mon, 26 Apr 2021 20:10:10 +0530 Subject: [PATCH] Added fix for upstream pipeline failure https://gitlab.com/dogtagpki/pki/-/pipelines/291988444 Signed-off-by: Gaurav Swami --- .github/workflows/qe-tests.yml | 12 ++++++++++++ tests/dogtag/pytest-ansible/.gitlab-ci.yml | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/qe-tests.yml b/.github/workflows/qe-tests.yml index 6103bd52917..3dca857c8e9 100644 --- a/.github/workflows/qe-tests.yml +++ b/.github/workflows/qe-tests.yml @@ -109,6 +109,18 @@ jobs: -qsvvv \ tests/dogtag/pytest-ansible/pytest/sanity/test_role_users.py + - name: Run SCEP test + run: | + pip3 install -r tests/dogtag/pytest-ansible/requirements.txt + pip3 install -e tests/dogtag/pytest-ansible + pytest-3 \ + --ansible-host-pattern master \ + --ansible-inventory inventory \ + --ansible-module-path tests/dogtag/pytest-ansible/common-modules \ + --junit-xml pki_cert_scep_1664435_junit.xml \ + -qsvvv \ + tests/dogtag/pytest-ansible/pytest/ca/scep/test_bug_1664435_pki_ca_scep_enrollment.py + - name: Gather artifacts if: always() run: | diff --git a/tests/dogtag/pytest-ansible/.gitlab-ci.yml b/tests/dogtag/pytest-ansible/.gitlab-ci.yml index 36a3e62dc79..089944ac238 100644 --- a/tests/dogtag/pytest-ansible/.gitlab-ci.yml +++ b/tests/dogtag/pytest-ansible/.gitlab-ci.yml @@ -250,7 +250,7 @@ topo-00-BZ-1664435-ca-scep-gs: stage: tier2-other script: - ansible-playbook -u fedora --become -i $HOSTFILE $PYTEST_DIR/installation/main.yml --extra-vars "topology=topology-00" -vv | sed 's/\\n/\n/g' - - py.test --html=$CI_PROJECT_DIR/${CI_JOB_NAME}_html_report.html --self-contained-html --ansible-user=fedora --ansible-become --ansible-inventory $HOSTFILE --ansible-host-pattern master --ansible-playbook-inventory $HOSTFILE --ansible-playbook-directory $PYTEST_DIR/pytest/ca/bugzilla/ $PYTEST_DIR/pytest-ansible/pytest/ca/scep/test_bug_1664435_pki_ca_scep_enrollment.py -qsvv --junitxml $CI_PROJECT_DIR/BZ_1664435_junit.xml + - py.test --html=$CI_PROJECT_DIR/${CI_JOB_NAME}_html_report.html --self-contained-html --ansible-user=fedora --ansible-become --ansible-inventory $HOSTFILE --ansible-host-pattern master $PYTEST_DIR/pytest/ca/scep/test_bug_1664435_pki_ca_scep_enrollment.py -q -s --junitxml $CI_PROJECT_DIR/BZ_1664435_junit.xml -qsvv #================================================================================================================================================================================================================= #