-
Notifications
You must be signed in to change notification settings - Fork 115
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 e2e test case for flatpak #17207
Conversation
tests/foreman/cli/test_flatpak.py
Outdated
remote_name = f'SAT-remote-{gen_string("alpha")}' | ||
res = host.execute( | ||
'flatpak --user remote-add --authenticator-name=org.flatpak.Authenticator.Oci ' | ||
f'{remote_name} oci+https://{sat.hostname}/pulpcore_registry/' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this the intended user flow or is this something that host registration should set up if it detects flatpak?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global registration will need to install podman and flatpak on the client and then run the remote-add. For now, we will leave it to the admins to set it up..
e136e07
to
a96198f
Compare
|
PRT Result
|
pytest_fixtures/core/contenthosts.py
Outdated
for pkg in ['podman', 'flatpak', 'dbus-x11']: | ||
res = host.execute(f'dnf -y install {pkg}') | ||
assert res.status == 0, f'{pkg} installation failed: {res.stderr}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can this be a single DNF transaction?
for pkg in ['podman', 'flatpak', 'dbus-x11']: | |
res = host.execute(f'dnf -y install {pkg}') | |
assert res.status == 0, f'{pkg} installation failed: {res.stderr}' | |
pkgs = ['podman', 'flatpak', 'dbus-x11'] | |
res = host.execute(f'dnf -y install {' '.join(pkgs)}') | |
assert res.status == 0, f'Package installation failed: {res.stderr}' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ogajduse It could be. I just wanted to keep it separate to provide more info which installation failed and why through res.stderr
. But it doesn't matter so much probably, dnf should return some meaningful info anyway.
|
PRT Result
|
Problem Statement
In Satellite 6.17 we are going to support full path for host setup and flatpak app installation on a content host, including REX templates to make it more user-friendly. We should have an E2E test case to cover all of that too.
Solution
This PR adds such a test case (and fixes two typos).
Related Issues
https://issues.redhat.com/browse/SAT-28557
https://issues.redhat.com/browse/SAT-4420
Requires
Katello/katello#11223 (in snap)
Katello/hammer-cli-katello#971 (in snap)
Katello/katello#11264
PRT test Cases example