From 0c9e83db6a322cc163dafbb9b1c27268ef15d175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ale=C5=A1=20Mat=C4=9Bj?= Date: Fri, 10 May 2024 10:22:28 +0200 Subject: [PATCH] Add tests for `--providers-of=..` with `--installed` Requires: https://github.com/rpm-software-management/dnf5/pull/1481 --- dnf-behave-tests/dnf/repoquery/deps.feature | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/dnf-behave-tests/dnf/repoquery/deps.feature b/dnf-behave-tests/dnf/repoquery/deps.feature index 106b1be72..72b2eeaf4 100644 --- a/dnf-behave-tests/dnf/repoquery/deps.feature +++ b/dnf-behave-tests/dnf/repoquery/deps.feature @@ -85,6 +85,23 @@ Scenario: repoquery --providers-of=requires --recursive NAME-VERSION middle2-1:2.0-1.x86_64 """ +Scenario: repoquery --providers-of=requires --installed NAME when nothing is installed + When I execute dnf with args "repoquery --providers-of=requires --installed middle3" + Then the exit code is 0 + And stdout is empty + +Scenario: repoquery --providers-of=requires --installed NAME +Given I successfully execute dnf with args "install middle3" + When I execute dnf with args "repoquery --providers-of=requires middle3 --installed " + Then the exit code is 0 + And stdout is + """ + bottom1-1:1.0-1.x86_64 + bottom3-1:2.0-1.x86_64 + bottom4-1:1.0-1.x86_64 + bottom5-1:1.0-1.x86_64 + """ + # missing --tree option @xfail Scenario: repoquery --requires --resolve --recursive --tree NAME-VERSION