Skip to content

Commit

Permalink
updateinfo.feature: remove left-over dnf4 tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kontura committed Aug 1, 2024
1 parent 3d2acf5 commit a3e7b59
Showing 1 changed file with 0 additions and 283 deletions.
283 changes: 0 additions & 283 deletions dnf-behave-tests/dnf/updateinfo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""
<REPOSYNC>
"""


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
Expand All @@ -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
"""
<REPOSYNC>
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"
Expand Down Expand Up @@ -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
"""
<REPOSYNC>
===============================================================================
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
"""
<REPOSYNC>
"""


# @dnf5daemon
Scenario: advisory info security (when there's nothing to report)
When I execute dnf with args "install glibc flac"
Expand All @@ -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
"""
<REPOSYNC>
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
"""
<REPOSYNC>
Expand All @@ -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
"""
<REPOSYNC>
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"
Expand Down Expand Up @@ -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
"""
<REPOSYNC>
FEDORA-2018-318f184000 bugfix glibc-2.28-26.fc29.x86_64
"""


# @dnf5daemon
Scenario: advisory info <advisory>
When I execute dnf with args "install glibc flac"
Expand Down Expand Up @@ -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 <options>"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
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"
Expand All @@ -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 <options>"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
222 bugfix glibc-2.28-26.fc29.x86_64
"""

Examples:
| options |
| --list --with-bz |
# yum compatibility
| list bugzillas |
| list bzs |


@bz1728004
Scenario: advisory show <advisory> of the running kernel after a kernel update
# install older kernel
Expand Down Expand Up @@ -563,127 +411,6 @@ Scenario: advisory show <advisory> 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 "<command>"
Then the exit code is 0
And stdout is
"""
<REPOSYNC>
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 "<command>"
Then the exit code is 0
And stdout matches line by line
"""
<REPOSYNC>
===============================================================================
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
"""
<REPOSYNC>
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 .*
<REPOSYNC>
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 .*
<REPOSYNC>
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"
Expand Down Expand Up @@ -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
"""
<REPOSYNC>
DNF-D-2022-9 security D-1-1.fc29.x86_64
"""
And dnf5 stdout is
"""
<REPOSYNC>
Expand Down Expand Up @@ -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
"""
<REPOSYNC>
DNF-2019-4 security change-arch-noarch-2-2.fc29.x86_64
"""
And dnf5 stdout is
"""
<REPOSYNC>
Expand Down

0 comments on commit a3e7b59

Please sign in to comment.