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

Add basic tests in packit with RHEL #929

Draft
wants to merge 2 commits into
base: develop
Choose a base branch
from
Draft
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
13 changes: 11 additions & 2 deletions .packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ specfile_path: foreman-installer.spec

# add or remove files that should be synced
files_to_sync:
- foreman-installer.spec
- .packit.yaml
- foreman-installer.spec
- .packit.yaml

# name in upstream package repository or registry (e.g. in PyPI)
upstream_package_name: foreman-installer
Expand Down Expand Up @@ -41,6 +41,15 @@ jobs:
- https://yum.theforeman.org/releases/nightly/el9/x86_64/
- https://yum.puppet.com/puppet7/el/9/x86_64/
module_hotfixes: true
- job: tests
trigger: pull_request
targets:
rhel-8-x86_64:
distros:
- centos-stream-8
rhel-9-x86_64:
distros:
- centos-stream-9

srpm_build_deps:
- wget
Expand Down
8 changes: 8 additions & 0 deletions plans/scenario-foreman.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
summary: Verify foreman scenario
prepare:
- name: foreman-installer
how: install
package: foreman-installer
execute:
- how: tmt
script: foreman-installer --help --scenario foreman --trace
10 changes: 10 additions & 0 deletions plans/scenario-katello.fmf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
summary: Verify katello scenarios
prepare:
- name: foreman-installer-katello
how: install
package: foreman-installer-katello
execute:
- how: tmt
script: foreman-installer --help --scenario katello --trace
- how: tmt
script: foreman-installer --help --scenario foreman-proxy-content --trace