diff --git a/.github/workflows/qe-tests.yml b/.github/workflows/qe-tests.yml index 6103bd52917..84ab6652ad7 100644 --- a/.github/workflows/qe-tests.yml +++ b/.github/workflows/qe-tests.yml @@ -109,6 +109,19 @@ 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 #================================================================================================================================================================================================================= #