Skip to content

Commit

Permalink
Update comps-groups scenarios for dnf5
Browse files Browse the repository at this point in the history
  • Loading branch information
glum23 committed Aug 3, 2023
1 parent a2f616c commit c329f00
Showing 1 changed file with 32 additions and 23 deletions.
55 changes: 32 additions & 23 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 @@ -543,8 +553,7 @@ Scenario: Packages that are part of another installed group are not removed
| group-remove | Test Group |


# @dnf5
# TODO(jkolarik): Cache files are now created with root-only mask
@dnf5
# destructive because it can create a new user on the system
@bz2030255
@destructive
Expand All @@ -562,10 +571,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

0 comments on commit c329f00

Please sign in to comment.