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

Update comps-groups scenarios for dnf5 #1349

Merged
merged 2 commits into from
Nov 7, 2023
Merged
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
53 changes: 32 additions & 21 deletions dnf-behave-tests/dnf/comps-group.feature
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ Scenario: Install condidional package if required package has been installed
# filesystem x86_64 3.9-2.fc29 @System 0.0 B
# Group -> Dependency
# basesystem requires filesystem (part of DNF-CI-Testgroup)
#
# TODO(emrakova) replace name DNF-CI-Testgroup with ID dnf-ci-testgroup
# and update transaction when
# https://github.com/rpm-software-management/ci-dnf-stack/issues/1344
# will be resolved
Scenario: Group remove does not remove packages required by user installed packages
Given I use repository "dnf-ci-thirdparty"
And I use repository "dnf-ci-fedora"
Expand Down Expand Up @@ -372,27 +377,29 @@ Scenario: Install an environment with empty name
| install-group | test-package-1.0-1.fc29.noarch |


# @dnf5
# TODO(nsella) different stdout
@not.with_os=rhel__ge__8
@dnf5
Scenario: List and info a group with missing packagelist
Given I use repository "comps-group-merging"
When I execute dnf with args "group list"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
Available Environment Groups:
<name-unset>
Available Groups:
Test Group
ID Name Installed
test-group Test Group no
"""
When I execute dnf with args "group info test-group"
Then stdout is
"""
<REPOSYNC>
Group: Test Group
Description: Test Group description updated.
Id : test-group
Name : Test Group
Description : Test Group description updated.
Installed : no
Order :
Langonly :
Uservisible : yes
Repositories : comps-group-merging
"""


Expand Down Expand Up @@ -429,20 +436,23 @@ Scenario: Merge groups when one has empty packagelist
"""


# @dnf5
# TODO(nsella) different stdout
@not.with_os=rhel__ge__8
@dnf5
# there is related issue
# https://github.com/rpm-software-management/dnf5/issues/724
Scenario: Merge environment with missing names containg a group with missing name
Given I use repository "comps-group"
And I use repository "comps-group-merging"
When I execute dnf with args "group info no-name-env"
When I execute dnf with args "environment info no-name-env"
Then stdout is
"""
<REPOSYNC>
Environment Group: <name-unset>
Mandatory Groups:
<name-unset>
Test Group
Id : no-name-env
Name :
Description :
Order :
Installed : False
Repositories : comps-group, comps-group-merging
Required groups : no-name-group
"""


Expand Down Expand Up @@ -545,6 +555,7 @@ Scenario: Packages that are part of another installed group are not removed

# @dnf5
# TODO(jkolarik): Cache files are now created with root-only mask
# TODO(jkolarik): Enable after resolving the https://github.com/rpm-software-management/dnf5/issues/1000
# destructive because it can create a new user on the system
@bz2030255
@destructive
Expand All @@ -562,10 +573,10 @@ Scenario: 'dnf group list -C' works for unprivileged user even when decompressed
And stdout is
"""
<REPOSYNC>
Available Groups:
DNF-CI-Testgroup
CQRlib-non-devel
SuperRipper-and-deps
ID Name Installed
cqrlib-non-devel CQRlib-non-devel no
dnf-ci-testgroup DNF-CI-Testgroup no
superripper-and-deps SuperRipper-and-deps no
"""


Expand Down
Loading