Skip to content

Commit d54babf

Browse files
committed
Test that group list and info respect the display_order
1 parent 3e997d3 commit d54babf

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

dnf-behave-tests/dnf/comps-group-list.feature

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Scenario: All user visible groups are listed by default (installed group is not
2323
And stdout is
2424
"""
2525
ID Name Installed
26+
test-group Test Group yes
2627
empty-group Empty group no
2728
no-name-group no
28-
test-group Test Group yes
2929
"""
3030

3131
Scenario: I can list also hidden groups
@@ -38,10 +38,10 @@ Scenario: I can list also hidden groups
3838
And stdout is
3939
"""
4040
ID Name Installed
41-
empty-group Empty group no
4241
hidden-group Hidden group no
43-
no-name-group no
4442
test-group Test Group yes
43+
empty-group Empty group no
44+
no-name-group no
4545
"""
4646

4747
Scenario: I can filter listed groups by their ids (hidden groups are included)
@@ -67,9 +67,9 @@ Scenario: I can filter listed groups by their names (hidden groups are included)
6767
And stdout is
6868
"""
6969
ID Name Installed
70-
empty-group Empty group no
7170
hidden-group Hidden group no
7271
test-group Test Group yes
72+
empty-group Empty group no
7373
"""
7474

7575
Scenario: I can list only installed groups
@@ -95,9 +95,9 @@ Scenario: I can list only available groups
9595
And stdout is
9696
"""
9797
ID Name Installed
98+
test-group Test Group no
9899
empty-group Empty group no
99100
no-name-group no
100-
test-group Test Group no
101101
"""
102102

103103
Scenario: I can list only groups containing a package
@@ -110,8 +110,8 @@ Scenario: I can list only groups containing a package
110110
And stdout is
111111
"""
112112
ID Name Installed
113-
no-name-group no
114113
test-group Test Group yes
114+
no-name-group no
115115
"""
116116

117117
Scenario: I can get info about all groups (installed group is not duplicated)
@@ -123,25 +123,25 @@ Scenario: I can get info about all groups (installed group is not duplicated)
123123
"""
124124
And stdout is
125125
"""
126-
Id : empty-group
127-
Name : Empty group
128-
Description :
129-
Installed : no
130-
Order :
131-
Langonly :
132-
Uservisible : yes
133-
Repositories : comps-group-list
134-
135126
Id : test-group
136127
Name : Test Group
137128
Description : Test Group description.
138129
Installed : yes
139-
Order :
130+
Order : 4
140131
Langonly :
141132
Uservisible : yes
142133
Repositories : @System
143134
Mandatory packages : test-package
144135
136+
Id : empty-group
137+
Name : Empty group
138+
Description :
139+
Installed : no
140+
Order : 16
141+
Langonly :
142+
Uservisible : yes
143+
Repositories : comps-group-list
144+
145145
Id : no-name-group
146146
Name :
147147
Description :

dnf-behave-tests/fixtures/specs/comps-group-list/comps.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
<id>test-group</id>
66
<name>Test Group</name>
77
<description>Test Group description.</description>
8+
<display_order>4</display_order>
89
<packagelist>
910
<packagereq type="mandatory">test-package</packagereq>
1011
</packagelist>
@@ -23,6 +24,7 @@
2324
<id>hidden-group</id>
2425
<name>Hidden group</name>
2526
<description></description>
27+
<display_order>3</display_order>
2628
<uservisible>false</uservisible>
2729
<packagelist>
2830
<packagereq type="mandatory">test-package</packagereq>
@@ -33,6 +35,7 @@
3335
<id>empty-group</id>
3436
<name>Empty group</name>
3537
<description></description>
38+
<display_order>16</display_order>
3639
<packagelist>
3740
</packagelist>
3841
</group>

0 commit comments

Comments
 (0)