Skip to content

Commit 1aadf0c

Browse files
committed
Package/group is upgraded and at the same time removed from group/env
1 parent 87b856a commit 1aadf0c

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

dnf-behave-tests/dnf/comps-upgrade.feature

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,3 +310,37 @@ Scenario: Upgrade nonexistent and existent group
310310
And Transaction is following
311311
| Action | Package |
312312
| group-upgrade | empty-group |
313+
314+
315+
Scenario: Upgrade group and a package that was removed from the group at the same time
316+
Given I successfully execute dnf with args "group install AB-group"
317+
And I drop repository "comps-upgrade-1"
318+
And I use repository "comps-upgrade-2"
319+
When I execute dnf with args "upgrade @AB-group A-mandatory"
320+
Then the exit code is 0
321+
And DNF Transaction is following
322+
| Action | Package |
323+
| upgrade | A-mandatory-0:2.0-1.x86_64 |
324+
| install-group | B-mandatory-0:1.0-1.x86_64 |
325+
| install-group | B-default-0:1.0-1.x86_64 |
326+
| install-group | B-conditional-true-0:1.0-1.x86_64 |
327+
| group-upgrade | AB-group |
328+
329+
330+
Scenario: Upgrade environment and a group that was removed from the environment at the same time
331+
Given I successfully execute dnf with args "group install AB-environment"
332+
And I drop repository "comps-upgrade-1"
333+
And I use repository "comps-upgrade-2"
334+
When I execute dnf with args "group upgrade AB-environment a-group"
335+
Then the exit code is 0
336+
And DNF Transaction is following
337+
| Action | Package |
338+
| upgrade | A-mandatory-0:2.0-1.x86_64 |
339+
| upgrade | A-default-0:2.0-1.x86_64 |
340+
| upgrade | A-conditional-true-0:2.0-1.x86_64 |
341+
| install-group | B-mandatory-0:1.0-1.x86_64 |
342+
| install-group | B-default-0:1.0-1.x86_64 |
343+
| install-group | B-conditional-true-0:1.0-1.x86_64 |
344+
| group-upgrade | A-group - repo#2 |
345+
| group-install | B-group |
346+
| env-upgrade | AB-environment |

0 commit comments

Comments
 (0)