Skip to content

Commit

Permalink
Enable install-exclude tests for dnf5
Browse files Browse the repository at this point in the history
  • Loading branch information
m-blaha committed Nov 24, 2023
1 parent 6fb2d86 commit de08615
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions dnf-behave-tests/dnf/install-exclude.feature
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
@dnf5
Feature: Install RPMs with --exclude


@dnf5
Scenario: Install an RPM that is excluded
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "install filesystem --exclude filesystem"
Then the exit code is 1
And Transaction is empty

# @dnf5
# TODO(nsella) different stderr

@bz1756473
Scenario: Install an RPM that requires excluded RPM
Given I use repository "dnf-ci-fedora"
Expand All @@ -18,22 +17,20 @@ Scenario: Install an RPM that requires excluded RPM
And Transaction is empty
And stderr is
"""
Error:
Problem: package filesystem-3.9-2.fc29.x86_64 requires setup, but none of the providers can be installed
Failed to resolve the transaction:
Problem: package filesystem-3.9-2.fc29.x86_64 requires setup, but none of the providers can be installed
- conflicting requests
- package setup-2.12.1-1.fc29.noarch is filtered out by exclude filtering
"""


@dnf5
Scenario: Install RPMs while excluding part of them
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "install setup filesystem --exclude filesystem"
Then the exit code is 1
And Transaction is empty


@dnf5
Scenario: Install RPMs while excluding part of them (strict=false)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "install setup filesystem --exclude filesystem --setopt=strict=false"
Expand All @@ -43,7 +40,6 @@ Scenario: Install RPMs while excluding part of them (strict=false)
| install | setup-0:2.12.1-1.fc29.noarch |


@dnf5
Scenario: Install RPMs while excluding another RPM
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "install filesystem --exclude glibc"
Expand Down

0 comments on commit de08615

Please sign in to comment.