forked from rpm-software-management/ci-dnf-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommand-aliases.feature
More file actions
60 lines (55 loc) · 3 KB
/
command-aliases.feature
File metadata and controls
60 lines (55 loc) · 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
Feature: Tests for command aliases availability
Scenario: "nonexistent" is not an alias for any dnf command
When I execute dnf with args "nonexistent -h"
Then the exit code is 2
And stderr is
"""
Unknown argument "nonexistent" for command "dnf5".
It could be a command provided by a plugin, try: dnf5 install 'dnf5-command(nonexistent)'
"""
Scenario Outline: "<alias>" is an alias for "<command>"
When I execute dnf with args "<alias> -h"
Then the exit code is 0
# The exact output is now under discussion
# And stdout contains "Usage:\n.*<command>"
And stdout contains "Usage:\n"
And stdout does not contain "Unknown argument"
And stderr does not contain "Unknown argument"
Examples:
| command | alias |
| advisory | updateinfo |
| autoremove | autoremove |
| check-upgrade | check-update |
| check-upgrade | check-upgrade |
| clean | clean |
| distro-sync | distro-sync |
| downgrade | dg |
| download | download |
| downgrade | downgrade |
| environment | environment |
| group | group |
| group | grp |
| history | history |
| info | info |
| install | in |
| install | install |
| leaves | leaves |
| list | list |
| list | ls |
| makecache | mc |
| mark | mark |
| module | module |
| reinstall | rei |
| reinstall | reinstall |
| remove | remove |
| remove | rm |
| repo info | repoinfo |
| repo list | repolist |
| repoquery | repoquery |
| repoquery | rq |
| search | search |
| swap | swap |
| upgrade | up |
| upgrade | update |
| upgrade | upgrade |
| upgrade | upgrade-minimal |