forked from rpm-software-management/ci-dnf-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstick-to-vendor.feature
More file actions
64 lines (59 loc) · 2.3 KB
/
Copy pathstick-to-vendor.feature
File metadata and controls
64 lines (59 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Feature: DNF allow_vendor_change option in dnf.conf
Background:
Given I use repository "dnf-ci-vendor-1"
And I create and substitute file "/etc/dnf/dnf.conf" with
"""
[main]
allow_vendor_change=False
"""
And I successfully execute dnf with args "install vendor"
Then the exit code is 0
And Transaction is following
| Action | Package |
| install | vendor-1.0-1.x86_64 |
Given I successfully execute rpm with args "-qi vendor"
Then the exit code is 0
And stdout contains "Vendor : First Vendor"
@bz1788371
Scenario: Upgrade sticks to vendor
Given I use repository "dnf-ci-vendor-1-updates"
Given I use repository "dnf-ci-vendor-2-updates"
When I execute dnf with args "upgrade vendor"
Then the exit code is 0
And Transaction is following
| Action | Package |
| upgrade | vendor-1.1-1.x86_64 |
Given I successfully execute rpm with args "-qi vendor"
Then the exit code is 0
And stdout contains "Vendor : First Vendor"
@bz1788371
Scenario: No upgrade if same vendor not found
Given I use repository "dnf-ci-vendor-2-updates"
When I execute dnf with args "upgrade vendor"
Then the exit code is 0
And Transaction is empty
Given I successfully execute rpm with args "-qi vendor"
Then the exit code is 0
And stdout contains "Vendor : First Vendor"
@bz1788371
Scenario: Downgrade is unable to resolve transaction
Given I use repository "dnf-ci-vendor-1-updates"
When I execute dnf with args "upgrade vendor"
Given I drop repository "dnf-ci-vendor-1"
Given I use repository "dnf-ci-vendor-2"
When I execute dnf with args "downgrade vendor"
Then the exit code is 1
And Transaction is empty
And stdout is empty
And stderr is
"""
<REPOSYNC>
Failed to resolve the transaction:
Problem: problem with installed package
- cannot install both vendor-1.0-1.x86_64 from dnf-ci-vendor-2 and vendor-1.1-1.x86_64 from @System
- cannot install both vendor-1.0-1.x86_64 from dnf-ci-vendor-2 and vendor-1.1-1.x86_64 from dnf-ci-vendor-1-updates
- conflicting requests
You can try to add to command line:
--setopt=allow_vendor_change=true to allow changing package vendors
--skip-broken to skip uninstallable packages
"""