Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop enabling of dnf5 plugins #1492

Merged
merged 1 commit into from
Apr 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/dnf-automatic/reboot.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Feature: dnf-automatic reboots

Background:
Given I enable plugin "automatic"
And I use repository "simple-base"
Given I use repository "simple-base"
And I successfully execute dnf with args "install labirinto"
And I use repository "simple-updates"

Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/dnf-automatic/update.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Feature: dnf-automatic performs update


Background:
Given I enable plugin "automatic"
And I use repository "simple-base"
Given I use repository "simple-base"


Scenario: dnf-automatic can update package
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/fileprovides.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Feature: Adding file provides tests

Scenario: Run repoclosure with already created cache without filelists
Given I enable plugin "repoclosure"
And I use repository "fileprovides"
Given I use repository "fileprovides"
# We run repoquery --whatprovides to trigger generation of file provides (calling make_provides_ready())
# This command doesn't require filelists.xml
And I successfully execute dnf with args "repoquery --whatprovides htop"
Expand Down
3 changes: 0 additions & 3 deletions dnf-behave-tests/dnf/plugins-core/builddep-conflicts.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@
@not.with_dnf=4
Feature: Tests for BuildConflicts support in builddep command

Background: Enable builddep plugin
Given I enable plugin "builddep"


# `with-build-conflict` package BuildConflicts with `weak-dependency` and
# BuildRequires `build-requirement-a` which in turn Recommends `weak-dependency`
Expand Down
5 changes: 2 additions & 3 deletions dnf-behave-tests/dnf/plugins-core/builddep-modularity.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Feature: Tests for builddep command on modular system

Background: Enable builddep plugin
Given I enable plugin "builddep"
And I use repository "dnf-ci-fedora"
Background:
Given I use repository "dnf-ci-fedora"

# dnf-ci-fedora-modular repo:
# module ninja:master [d] contains ninja-build-0:1.8.2-4.module_1991+4e5efe2f.x86_64
Expand Down
29 changes: 13 additions & 16 deletions dnf-behave-tests/dnf/plugins-core/builddep.feature
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
# Unknown argument "builddep" for command "microdnf"
@dnf5
Feature: dnf builddep command


Background: Enable builddep plugin
Given I enable plugin "builddep"


@not.with_dnf=5
Scenario: Dnf builddep can use spec file from a remote location
Given I use repository "dnf-ci-fedora"
And I create directory "/remotedir"
Expand All @@ -30,7 +27,7 @@ Scenario: Dnf builddep can use spec file from a remote location
| install | filesystem-0:3.9-2.fc29.x86_64 |
| install-dep | setup-0:2.12.1-1.fc29.noarch |

@dnf5

Scenario: Builddep with simple dependency (spec)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep {context.dnf.fixturesdir}/specs/dnf-ci-thirdparty/SuperRipper-1.0-1.spec"
Expand All @@ -39,7 +36,7 @@ Scenario: Builddep with simple dependency (spec)
| Action | Package |
| install | lame-libs-0:3.100-4.fc29.x86_64 |

@dnf5

Scenario: Builddep with simple dependency (spec) + define
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep {context.dnf.fixturesdir}/specs/dnf-ci-thirdparty/SuperRipper-1.0-1.spec --define 'buildrequires flac'"
Expand All @@ -48,7 +45,7 @@ Scenario: Builddep with simple dependency (spec) + define
| Action | Package |
| install | flac-0:1.3.2-8.fc29.x86_64 |

@dnf5

Scenario: Builddep with simple dependency (srpm)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep {context.dnf.fixturesdir}/repos/dnf-ci-thirdparty/src/SuperRipper-1.0-1.src.rpm"
Expand All @@ -57,7 +54,7 @@ Scenario: Builddep with simple dependency (srpm)
| Action | Package |
| install | lame-libs-0:3.100-4.fc29.x86_64 |

@dnf5

@not.with_os=rhel__eq__7
Scenario: Builddep with rich dependency
Given I use repository "dnf-ci-fedora"
Expand All @@ -68,7 +65,7 @@ Scenario: Builddep with rich dependency
| install | flac-0:1.3.2-8.fc29.x86_64 |
| install | lame-libs-0:3.100-4.fc29.x86_64 |

@dnf5

Scenario: Builddep with simple dependency (files-like provide)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep {context.dnf.fixturesdir}/specs/dnf-ci-thirdparty/SuperRipper-1.0-1.spec --define 'buildrequires /etc/ld.so.conf'"
Expand All @@ -77,7 +74,7 @@ Scenario: Builddep with simple dependency (files-like provide)
| Action | Package |
| install | glibc-0:2.28-9.fc29.x86_64 |

@dnf5

Scenario: Builddep with simple dependency (non-existent)
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep {context.dnf.fixturesdir}/specs/dnf-ci-thirdparty/SuperRipper-1.0-1.spec --define 'buildrequires flac = 15'"
Expand All @@ -91,7 +88,7 @@ Scenario: Builddep with simple dependency (non-existent)
--skip-unavailable to skip unavailable packages
"""

@dnf5

@bz1724668
Scenario: Builddep on SPEC with non-available Source0
Given I create file "{context.dnf.installroot}/missingSource.spec" with
Expand Down Expand Up @@ -124,7 +121,7 @@ Scenario: Builddep on SPEC with non-available Source0
Failed to parse some inputs.
"""

@dnf5

@bz1758459
Scenario: I exclude the highest verion of a package and call dnf builddep with --best
Given I use repository "dnf-ci-fedora-updates"
Expand All @@ -148,7 +145,7 @@ Scenario: I exclude the highest verion of a package and call dnf builddep with -
| Action | Package |
| install | flac-0:1.3.3-2.fc29.x86_64 |

@dnf5

@bz1628634
Scenario: Builddep with unavailable build dependency
Given I use repository "dnf-ci-fedora"
Expand All @@ -171,15 +168,15 @@ Scenario: Builddep with unavailable build dependency
| Action | Package |
| install | lame-libs-0:3.100-4.fc29.x86_64 |

@dnf5

@bz2077820
Scenario: Builddep using macros with source rpm
Given I use repository "dnf-ci-fedora"
When I execute dnf with args "builddep -D 'dummy_param 1' {context.dnf.fixturesdir}/repos/dnf-ci-thirdparty/src/SuperRipper-1.0-1.src.rpm"
Then the exit code is 0
And stderr contains "Warning: -D or --define arguments have no meaning for source rpm packages."

@dnf5

Scenario: Builddep where package BuildRequires a pkg spec that contains glob characters
Given I use repository "builddep"
When I execute dnf with args "builddep requires-glob"
Expand Down
5 changes: 2 additions & 3 deletions dnf-behave-tests/dnf/plugins-core/changelog.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
Feature: dnf changelog command


Background: Enable changelog plugin
Given I enable plugin "changelog"
And I use repository "dnf-ci-changelog"
Background:
Given I use repository "dnf-ci-changelog"


Scenario: Listing changelogs since given date
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/plugins-core/copr.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
Feature: Test the COPR plugin

Background:
Given I enable plugin "copr"
And I create directory "/{context.dnf.tempdir}/copr"
Given I create directory "/{context.dnf.tempdir}/copr"
And I start http server "copr" at "{context.dnf.tempdir}/copr"
And I create and substitute file "//etc/dnf/plugins/copr.conf" with
"""
Expand Down
6 changes: 2 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/debug-dump.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Feature: Test for debug plugin - dumping


Scenario: dnf debug-dump dumps file with configuration
Given I enable plugin "debug"
And I use repository "debug-plugin"
Given I use repository "debug-plugin"
And I successfully execute dnf with args "install kernel-4.19.1 kernel-4.20.1"
When I execute dnf with args "debug-dump {context.dnf.tempdir}/dump.txt"
Then the exit code is 0
Expand Down Expand Up @@ -52,8 +51,7 @@ Scenario: dnf debug-dump dumps file with configuration


Scenario: dnf debug-dump with --norepos skips dumping repositories contents
Given I enable plugin "debug"
And I use repository "debug-plugin"
Given I use repository "debug-plugin"
And I successfully execute dnf with args "install kernel-4.19.1 kernel-4.20.1"
When I execute dnf with args "debug-dump --norepos {context.dnf.tempdir}/dump.txt"
Then the exit code is 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Feature: Test for debug plugin - restoring obsoleted package


Scenario: Restoring obsoleted package
Given I enable plugin "debug"
And I use repository "debug-plugin"
Given I use repository "debug-plugin"
And I successfully execute dnf with args "install test-obsoleted-1"
And I successfully execute dnf with args "debug-dump {context.dnf.tempdir}/dump.txt"
When I execute dnf with args "update"
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/plugins-core/debug-restore.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Feature: Test for debug plugin - restoring


Background: install some packages and create dump file
Given I enable plugin "debug"
And I use repository "debug-plugin"
Given I use repository "debug-plugin"
And I successfully execute dnf with args "install kernel-4.19.1 kernel-4.20.1"
And I successfully execute dnf with args "install test-replace-2"
And I successfully execute dnf with args "debug-dump {context.dnf.tempdir}/dump.txt"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ Feature: Tests for the debuginfo-install plugin

Background:
Given I use repository "debuginfo-install"
And I enable plugin "debuginfo-install"

@bz1585137
Scenario: reports an error for a non-existent package
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/plugins-core/download-debuginfo.feature
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Feature: dnf download --debuginfo command


Background:
Given I enable plugin "download"
And I set working directory to "{context.dnf.tempdir}"
Given I set working directory to "{context.dnf.tempdir}"


Scenario: Download a debuginfo for an RPM that doesn't exist
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/plugins-core/download-source.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Feature: dnf download --srpm command


Background:
Given I enable plugin "download"
And I use repository "dnf-ci-fedora" as http
Given I use repository "dnf-ci-fedora" as http
And I set working directory to "{context.dnf.tempdir}"


Expand Down
5 changes: 2 additions & 3 deletions dnf-behave-tests/dnf/plugins-core/enable-plugins.feature
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Feature: Tests for report nonexisting plugin

Background: Enable builddep plugin
Given I enable plugin "builddep"
And I use repository "dnf-ci-fedora"
Background:
Given I use repository "dnf-ci-fedora"

@bz1673289 @bz1467304
Scenario: Report nonexisting plugin to disable
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Feature: dnf groups-manager command errors


Background: Enable groups-manager plugin
Given I enable plugin "groups_manager"


Scenario: groups-manager reports xml parsing errors
When I execute dnf with args "groups-manager --load={context.dnf.fixturesdir}/data/groups-manager/comps_syntax_error.xml"
Then the exit code is 1
Expand Down
4 changes: 0 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/groups-manager.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Feature: dnf groups-manager command


Background: Enable groups-manager plugin
Given I enable plugin "groups_manager"


Scenario Outline: groups-manager can read <filename> file
Given I copy file "{context.dnf.fixturesdir}/data/groups-manager/comps_a.xml" to "/{context.dnf.tempdir}/comps_a.xml"
And I compress file "/{context.dnf.tempdir}/comps_a.xml" using "gz"
Expand Down
1 change: 0 additions & 1 deletion dnf-behave-tests/dnf/plugins-core/modulesync.feature
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ Feature: Test for modulesync command
Background:
Given I use repository "dnf-ci-fedora-modular"
And I use repository "dnf-ci-fedora"
And I enable plugin "modulesync"


Scenario: I can download a module
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
Feature: Add package to needs-restarting using config files

Background:
Given I enable plugin "needs_restarting"
And I use repository "needs-restarting"
Given I use repository "needs-restarting"
And I move the clock backward to "before boot-up"
And I execute dnf with args "install wget abcde"
And I move the clock forward to "2 hours"
Expand Down
3 changes: 1 addition & 2 deletions dnf-behave-tests/dnf/plugins-core/needs-restarting.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
Feature: Reboot hint

Background:
Given I enable plugin "needs_restarting"
And I use repository "dnf-ci-fedora"
Given I use repository "dnf-ci-fedora"
And I move the clock backward to "before boot-up"
And I execute dnf with args "install lame kernel basesystem glibc wget lz4"
And I move the clock forward to "the present"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ Feature: Test the security filters for offline-upgrade commands


Background:
Given I enable plugin "system-upgrade"
And I use repository "dnf-ci-fedora"
Given I use repository "dnf-ci-fedora"


@bz1939975
Expand Down
5 changes: 2 additions & 3 deletions dnf-behave-tests/dnf/plugins-core/repoclosure.feature
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ Feature: Repoclosure command tests


# we need to override the default value for the `best` config option
Background: Enable builddep plugin
Given I enable plugin "repoclosure"
And I configure dnf with
Background:
Given I configure dnf with
| key | value |
| best | False |

Expand Down
4 changes: 0 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/repomanage.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Feature: Tests for repomanage command


Background:
Given I enable plugin "repomanage"


Scenario: basic functionality of repomanage --new
Given I copy repository "dnf-ci-thirdparty-updates" for modification
When I execute dnf with args "repomanage --new {context.dnf.repos[dnf-ci-thirdparty-updates].path}"
Expand Down
4 changes: 0 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/reposync-local.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Feature: Tests for reposync command with local repository


Background:
Given I enable plugin "reposync"


Scenario: Base functionality of reposync on local repository
Given I use repository "dnf-ci-thirdparty-updates"
When I execute dnf with args "reposync --download-path={context.dnf.tempdir}"
Expand Down
4 changes: 0 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/reposync-xattrs.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
Feature: Reposync does not re-download the package


Background: Enable reposync plugin
Given I enable plugin "reposync"


@bz1931904
Scenario: Different checksum type does not cause package re-download
Given I copy repository "simple-base" for modification
Expand Down
4 changes: 0 additions & 4 deletions dnf-behave-tests/dnf/plugins-core/reposync.feature
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Feature: Tests for reposync command


Background:
Given I enable plugin "reposync"


Scenario: Base functionality of reposync
Given I use repository "dnf-ci-thirdparty-updates" as http
When I execute dnf with args "reposync --download-path={context.dnf.tempdir}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ Feature: Test the system-upgrade plugin with comps


Background:
Given I enable plugin "system_upgrade"
And I use repository "system-upgrade-comps-f$releasever"
Given I use repository "system-upgrade-comps-f$releasever"


@bz2054235
Expand Down
Loading
Loading