diff --git a/dnf-behave-tests/dnf/updateinfo.feature b/dnf-behave-tests/dnf/updateinfo.feature index 3afadb553..2cb40ee90 100644 --- a/dnf-behave-tests/dnf/updateinfo.feature +++ b/dnf-behave-tests/dnf/updateinfo.feature @@ -52,18 +52,6 @@ Scenario: advisory summary (when there's nothing to report) """ -@not.with_dnf=5 -Scenario: advisory --summary when there's nothing to report (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - When I execute dnf with args "advisory --summary" - Then the exit code is 0 - And dnf4 stdout is - """ - - """ - - Scenario: advisory summary --available (when there is an available update) When I execute dnf with args "install glibc flac" Then the exit code is 0 @@ -86,22 +74,6 @@ Scenario: advisory summary --available (when there is an available update) """ -@not.with_dnf=5 -Scenario: updateinfo --summary available when there is an available update (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - Given I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo --summary available" - Then the exit code is 0 - And dnf4 stdout is - """ - - Updates Information Summary: available - 1 Bugfix notice(s) - 1 Enhancement notice(s) - """ - - # @dnf5daemon Scenario: advisory info When I execute dnf with args "install glibc flac" @@ -160,52 +132,6 @@ Scenario: advisory info """ -@not.with_dnf=5 -Scenario: updateinfo --info (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - Given I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo --info --available" - Then the exit code is 0 - And dnf4 stdout matches line by line - """ - - =============================================================================== - flac enhacements - =============================================================================== - Update ID: FEDORA-2999:002-02 - Type: enhancement - Updated: 2019-01-1\d \d\d:00:00 - Description: Enhance some stuff - Severity: Moderate - - =============================================================================== - glibc bug fix - =============================================================================== - Update ID: FEDORA-2018-318f184000 - Type: bugfix - Updated: 2019-01-1\d \d\d:00:00 - Bugs: 222 - 222 - CVEs: 2999 - : CVE-2999 - Description: Fix some stuff - Severity: none - """ - - -@not.with_dnf=5 -Scenario: updateinfo info security (when there's nothing to report) (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - Given I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo info security" - Then the exit code is 0 - And stdout is - """ - - """ - - # @dnf5daemon Scenario: advisory info security (when there's nothing to report) When I execute dnf with args "install glibc flac" @@ -226,12 +152,6 @@ Scenario: advisory list Given I use repository "dnf-ci-fedora-updates" When I execute dnf with args "advisory list" Then the exit code is 0 - And dnf4 stdout is - """ - - FEDORA-2999:002-02 enhancement flac-1.3.3-8.fc29.x86_64 - FEDORA-2018-318f184000 bugfix glibc-2.28-26.fc29.x86_64 - """ And dnf5 stdout is """ @@ -241,21 +161,6 @@ Scenario: advisory list """ -@not.with_dnf=5 -Scenario: updateinfo --list (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - Given I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo --list" - Then the exit code is 0 - And dnf4 stdout is - """ - - FEDORA-2999:002-02 enhancement flac-1.3.3-8.fc29.x86_64 - FEDORA-2018-318f184000 bugfix glibc-2.28-26.fc29.x86_64 - """ - - # @dnf5daemon Scenario: advisory list all security Given I use repository "dnf-ci-fedora-updates-testing" @@ -363,20 +268,6 @@ Examples: | | FEDORA-2018-318f184000 | -@not.with_dnf=5 -Scenario: updateinfo list updates plus --advisory (dnf4 compat) - When I execute dnf with args "install glibc flac" - Then the exit code is 0 - Given I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "--advisory FEDORA-2018-318f184000 updateinfo list updates" - Then the exit code is 0 - And stdout is - """ - - FEDORA-2018-318f184000 bugfix glibc-2.28-26.fc29.x86_64 - """ - - # @dnf5daemon Scenario: advisory info When I execute dnf with args "install glibc flac" @@ -462,29 +353,6 @@ Scenario: advisory lists advisories referencing CVE """ -@not.with_dnf=5 -@bz1750528 -Scenario Outline: updateinfo lists advisories referencing CVE (dnf4 compat) - Given I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo " - Then the exit code is 0 - And stdout is - """ - - 2999 bugfix glibc-2.28-26.fc29.x86_64 - CVE-2999 bugfix glibc-2.28-26.fc29.x86_64 - """ - -Examples: - | options | - | --list --with-cve | - # yum compatibility - | list cves | - | list --with-cve | - | --list cves | - - Scenario: advisory lists advisories referencing bugzilla Given I successfully execute dnf with args "install glibc flac" And I use repository "dnf-ci-fedora-updates" @@ -498,26 +366,6 @@ Scenario: advisory lists advisories referencing bugzilla """ -@not.with_dnf=5 -Scenario Outline: updateinfo lists advisories referencing bugzilla (dnf4 compat) - Given I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo " - Then the exit code is 0 - And stdout is - """ - - 222 bugfix glibc-2.28-26.fc29.x86_64 - """ - -Examples: - | options | - | --list --with-bz | - # yum compatibility - | list bugzillas | - | list bzs | - - @bz1728004 Scenario: advisory show of the running kernel after a kernel update # install older kernel @@ -563,127 +411,6 @@ Scenario: advisory show of the running kernel after a kernel update """ -@not.with_dnf=5 -Scenario Outline: updateinfo lists advisories using direct commands (yum compat) - Given I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "" - Then the exit code is 0 - And stdout is - """ - - FEDORA-2999:002-02 enhancement flac-1.3.3-8.fc29.x86_64 - FEDORA-2018-318f184000 bugfix glibc-2.28-26.fc29.x86_64 - """ - -Examples: - | command | - | list-sec | - | list-security | - | list-updateinfo | - - -@not.with_dnf=5 -Scenario Outline: updateinfo shows info for advisories using direct commands (yum compat) - Given I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "" - Then the exit code is 0 - And stdout matches line by line - """ - - =============================================================================== - flac enhacements - =============================================================================== - Update ID: FEDORA-2999:002-02 - Type: enhancement - Updated: 2019-01-1\d \d\d:00:00 - Description: Enhance some stuff - Severity: Moderate - - =============================================================================== - glibc bug fix - =============================================================================== - Update ID: FEDORA-2018-318f184000 - Type: bugfix - Updated: 2019-01-1\d \d\d:00:00 - Bugs: 222 - 222 - CVEs: 2999 - : CVE-2999 - Description: Fix some stuff - Severity: none - """ - -Examples: - | command | - | info-sec | - | info-security | - | info-updateinfo | - - -@not.with_dnf=5 -Scenario: updateinfo shows summary for advisories using direct commands (yum compat) - Given I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "summary-updateinfo" - Then the exit code is 0 - And stdout is - """ - - Updates Information Summary: available - 1 Bugfix notice(s) - 1 Enhancement notice(s) - """ - - -@not.with_dnf=5 -@bz1801092 -Scenario: updateinfo lists advisories referencing CVE with dates in verbose mode (DNF version) - Given I set dnf command to "dnf" - And I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo -v --list --with-cve" - Then the exit code is 0 - And stdout matches line by line - """ - DNF version: .* - cachedir: .* - User-Agent: constructed: .* - repo: using cache for: dnf-ci-fedora - dnf-ci-fedora: using metadata from .* - repo: downloading from remote: dnf-ci-fedora-updates - dnf-ci-fedora-updates test repository .* MB/s | .* - dnf-ci-fedora-updates: using metadata from .* - - 2999 bugfix glibc-2.28-26.fc29.x86_64 2019-01-1\d \d\d:00:00 - CVE-2999 bugfix glibc-2.28-26.fc29.x86_64 2019-01-1\d \d\d:00:00 - """ - - -@not.with_dnf=5 -@bz1801092 -Scenario: updateinfo lists advisories referencing CVE with dates in verbose mode (YUM version) - Given I set dnf command to "yum" - And I successfully execute dnf with args "install glibc flac" - And I use repository "dnf-ci-fedora-updates" - When I execute dnf with args "updateinfo -v --list --with-cve" - Then the exit code is 0 - And stdout matches line by line - """ - YUM version: .* - cachedir: .* - User-Agent: constructed: .* - repo: using cache for: dnf-ci-fedora - dnf-ci-fedora: using metadata from .* - repo: downloading from remote: dnf-ci-fedora-updates - dnf-ci-fedora-updates test repository .* MB/s | .* - dnf-ci-fedora-updates: using metadata from .* - - 2999 bugfix glibc-2.28-26.fc29.x86_64 2019-01-1\d \d\d:00:00 - CVE-2999 bugfix glibc-2.28-26.fc29.x86_64 2019-01-1\d \d\d:00:00 - """ - - @bz1801092 Scenario: advisory lists advisories referencing CVE with dates Given I successfully execute dnf with args "install glibc flac" @@ -852,11 +579,6 @@ Given I use repository "security-upgrade" And I execute dnf with args "install C-1-1" When I execute dnf with args "updateinfo list --updates" Then the exit code is 0 - And dnf4 stdout is - """ - - DNF-D-2022-9 security D-1-1.fc29.x86_64 - """ And dnf5 stdout is """ @@ -892,11 +614,6 @@ Given I use repository "security-upgrade" And I execute dnf with args "install change-arch-noarch-1-1.noarch" When I execute dnf with args "updateinfo list --updates" Then the exit code is 0 - And dnf4 stdout is - """ - - DNF-2019-4 security change-arch-noarch-2-2.fc29.x86_64 - """ And dnf5 stdout is """