Skip to content

Commit

Permalink
Introduce support for packit testing farm
Browse files Browse the repository at this point in the history
- Adapt our integration tests to be executable by packit in the testing
  farm
- Add support to execute integration tests after RPMs are built when PR
  is added/updated

Fixes: #452
Signed-off-by: Martin Perina <mperina@redhat.com>
  • Loading branch information
mwperina committed Aug 24, 2023
1 parent f5f3ff1 commit f3922f3
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 9 deletions.
21 changes: 16 additions & 5 deletions .packit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,22 @@ jobs:
trigger: pull_request
targets:
- centos-stream-9-x86_64
- fedora-rawhide-aarch64
- fedora-rawhide-i386
- fedora-rawhide-ppc64le
- fedora-rawhide-s390x
- fedora-rawhide-x86_64
# - fedora-rawhide-aarch64
# - fedora-rawhide-i386
# - fedora-rawhide-ppc64le
# - fedora-rawhide-s390x
# - fedora-rawhide-x86_64

- job: tests
trigger: pull_request
fmf_path: tests
tf_extra_params:
environments:
- tmt:
environment:
CONTAINER_USED: integration-test-packit
targets:
- centos-stream-9-x86_64

- job: copr_build
trigger: commit
Expand Down
19 changes: 19 additions & 0 deletions tests/containers/integration-test-packit
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM quay.io/bluechi/integration-test-base:latest

RUN dnf copr enable -y $PACKIT_COPR_PROJECT

RUN dnf install \
-y \
--nogpgcheck \
--nodocs \
bluechi \
bluechi-debuginfo \
bluechi-agent \
bluechi-agent-debuginfo \
bluechi-ctl \
bluechi-ctl-debuginfo \
bluechi-selinux \
python3-bluechi && \
dnf -y clean all

CMD [ "/sbin/init" ]
13 changes: 9 additions & 4 deletions tests/plans/tier0.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,15 @@ environment:
TEST_NET_RANGE: 10.10.0.0/24
MGR_PORT: 8420
prepare:
- name: Set containers setup
how: shell
script: |
bash ./scripts/tests-setup.sh
- name: Required packages
how: install
package:
- podman
- python3-pytest
- name: Set containers setup
how: shell
script: |
bash scripts/tests-setup.sh
execute:
how: tmt
report:
Expand Down

0 comments on commit f3922f3

Please sign in to comment.