From 222300381ab63109729ae760a7866536fb5dec2f Mon Sep 17 00:00:00 2001 From: Jan Kolarik Date: Mon, 22 Apr 2024 11:38:54 +0000 Subject: [PATCH] Test for repo.includepkgs behavior when installing local RPM --- dnf-behave-tests/dnf/excludes-includes.feature | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/dnf-behave-tests/dnf/excludes-includes.feature b/dnf-behave-tests/dnf/excludes-includes.feature index f47bcc133..02b64839d 100644 --- a/dnf-behave-tests/dnf/excludes-includes.feature +++ b/dnf-behave-tests/dnf/excludes-includes.feature @@ -133,3 +133,14 @@ Scenario: Install RPMs that are in includepkgs in main conf and NOT in excludepk And Transaction is following | Action | Package | | install | flac-libs-0:1.3.2-8.fc29.x86_64 | + + +@bz2275530 +Scenario: Install local RPM when repository includepkgs are restricted + Given I use repository "dnf-ci-fedora" + And I successfully execute dnf with args "download http-parser" + When I execute dnf with args "install http-parser-2.4.0-1.fc29.x86_64.rpm --setopt=dnf-ci-fedora.includepkgs=pkg*" + Then the exit code is 0 + And Transaction is following + | Action | Package | + | install | http-parser-0:2.4.0-1.fc29.x86_64 |