Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Add packit to run end-to-end tests #370

Merged
merged 1 commit into from
May 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .fmf/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
9 changes: 9 additions & 0 deletions .packit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
jobs:
- job: tests
trigger: pull_request
metadata:
targets:
- fedora-stable
- fedora-rawhide
- centos-stream-9-x86_64
skip_build: true
32 changes: 32 additions & 0 deletions packit-ci.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/e2e:

summary: run keylime e2e tests

prepare:
how: shell
script:
- rm -f /etc/yum.repos.d/tag-repository.repo
- ln -s $(pwd) /var/tmp/rust-keylime_sources

discover:
how: fmf
url: https://github.com/RedHat-SP-Security/keylime-tests
ref: main
test:
- /setup/configure_tpm_emulator
- /setup/install_upstream_keylime
- /setup/install_upstream_rust_keylime
- /functional/basic-attestation-on-localhost
- /functional/basic-attestation-without-mtls
- /functional/basic-attestation-with-unpriviledged-agent
- /functional/keylime_tenant-commands-on-localhost

adjust:
# prepare step adjustments
- prepare+:
script+:
- yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm
when: distro == centos-stream-9

execute:
how: tmt