diff --git a/.fmf/version b/.fmf/version new file mode 100644 index 0000000..d00491f --- /dev/null +++ b/.fmf/version @@ -0,0 +1 @@ +1 diff --git a/.packit.yaml b/.packit.yaml new file mode 100644 index 0000000..e702ca6 --- /dev/null +++ b/.packit.yaml @@ -0,0 +1,13 @@ +--- +jobs: + - job: tests + trigger: pull_request + branch: main + targets: + - fedora-rawhide + skip_build: true + tf_extra_params: + environments: + - tmt: + context: + target_PR_branch: main diff --git a/plans/packit-ci.fmf b/plans/packit-ci.fmf new file mode 100644 index 0000000..9d2523d --- /dev/null +++ b/plans/packit-ci.fmf @@ -0,0 +1,41 @@ +summary: common test plan for CI + + +prepare: + - how: shell + script: + - systemctl disable --now dnf-makecache.service || true + - systemctl disable --now dnf-makecache.timer || true + - dnf makecache + +environment: + OPERATOR_NAME: "keylime" + OPERATOR_NAMESPACE: "attestation-operator" + +discover: + - name: Configure_test_system + how: fmf + url: https://github.com/RedHat-SP-Security/common-cloud-orchestration + ref: main + test: + - /Setup/setup_local_cluster + - name: Run_tests + how: fmf + url: https://github.com/RedHat-SP-Security/attestation-operator-tests + ref: main + test: + - /Setup/install_operator + - /Sanity + - /Setup/clean_cluster + +adjust: + - when: distro == rhel-9 or distro == centos-stream-9 + prepare+: + - how: shell + script: + - dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm https://dl.fedoraproject.org/pub/epel/epel-next-release-latest-9.noarch.rpm + + +execute: + how: tmt +