-
Notifications
You must be signed in to change notification settings - Fork 9
/
nmtui_ethernet.feature
224 lines (195 loc) · 9.41 KB
/
nmtui_ethernet.feature
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
@nmtui
Feature: Ethernet TUI tests
Background:
* Prepare virtual terminal environment
@nmtui_ethernet_create_default_connection
Scenario: nmtui - ethernet - create default connection
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Confirm the connection settings
Then "ethernet" is visible with command "nmcli -f NAME con sh -a"
Then "IP4.ADDRESS\[1\]:\s+1" is visible with command "nmcli con show ethernet" in "30" seconds
Then "IP4.GATEWAY:\s+1" is visible with command "nmcli con show ethernet" in "5" seconds
@nmtui_ethernet_create_device_bound_connection
Scenario: nmtui - ethernet - create device bound connection
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Confirm the connection settings
Then "inet 192" is visible with command "ip a s eth1" in "60" seconds
Then "eth1\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device"
@nmtui_ethernet_create_connection_wo_autoconnect
Scenario: nmtui - ethernet - create connection without autoconnect
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Ensure "Automatically connect" is not checked
* Confirm the connection settings
Then "ethernet\s+--\s+no" is visible with command "nmcli -f NAME,DEVICE,ACTIVE connection"
@nmtui_ethernet_activate_connection
Scenario: nmtui - ethernet - activate connection
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Ensure "Automatically connect" is not checked
* Confirm the connection settings
* "ethernet\s+--\s+no" is visible with command "nmcli -f NAME,DEVICE,ACTIVE connection"
* Come back to main screen
* Choose to "Activate a connection" from main screen
* Select connection "ethernet" in the list
* Choose to "<Activate>" a connection
Then "inet 192" is visible with command "ip a s eth1" in "60" seconds
Then "eth1\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device"
@testeth7_disconnect
@nmtui_ethernet_activate_connection_specific_device
Scenario: nmtui - ethernet - activate connection on specific device
* Execute "nmcli con up testeth7"
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Ensure "Automatically connect" is not checked
* Confirm the connection settings
* "ethernet\s+--\s+no" is visible with command "nmcli -f NAME,DEVICE,ACTIVE connection"
* Come back to main screen
* Choose to "Activate a connection" from main screen
* Select connection "testeth7" in the list
* Select connection "ethernet" in the list
* Choose to "<Activate>" a connection
Then "eth7\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device" in "60" seconds
Then "inet 192" is visible with command "ip a s eth7"
@nmtui_ethernet_deactivate_connection
Scenario: nmtui - ethernet - deactivate connection
* Add "ethernet" connection named "ethernet" for device "eth1" with options "autoconnect no"
* Bring "up" connection "ethernet"
* Start nmtui
* Choose to "Activate a connection" from main screen
* Select connection "ethernet" in the list
* Choose to "<Deactivate>" a connection
Then "ethernet\s+--\s+no" is visible with command "nmcli -f NAME,DEVICE,ACTIVE connection"
Then "inet 192" is not visible with command "ip a s eth1"
@nmtui_ethernet_delete_connection_down
Scenario: nmtui - ethernet - delete nonactive connection
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet1"
* Set "Device" field to "eth1"
* Ensure "Automatically connect" is not checked
* Confirm the connection settings
* "ethernet1\s+--\s+no" is visible with command "nmcli -f NAME,DEVICE,ACTIVE connection"
* Select connection "ethernet1" in the list
* Choose to "<Delete>" a connection
* Press "Delete" button in the dialog
Then "ethernet1" is not visible with command "nmcli connection"
@nmtui_ethernet_delete_connection_up
Scenario: nmtui - ethernet - delete active connection
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet1"
* Set "Device" field to "eth1"
* Ensure "Automatically connect" is checked
* Confirm the connection settings
* "eth1\s+ethernet\s+connected" is visible with command "nmcli device" in "60" seconds
* Select connection "ethernet1" in the list
* Choose to "<Delete>" a connection
* Press "Delete" button in the dialog
Then "ethernet1" is not visible with command "nmcli con"
@ifcfg-rh @restore_eth1_mtu
@nmtui_ethernet_set_mtu
Scenario: nmtui - ethernet - set mtu
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Come in "ETHERNET" category
* Set "MTU" field to "128"
* Confirm the connection settings
Then "MTU=128" is visible with command "cat /etc/sysconfig/network-scripts/ifcfg-ethernet"
Then "mtu 128" is visible with command "ip a s eth1" in "60" seconds
@ifcfg-rh
@nmtui_ethernet_mac_spoofing
Scenario: nmtui - ethernet - mac spoofing
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Come in "ETHERNET" category
* Set "Cloned MAC address" field to "f0:de:aa:fb:bb:cc"
* Confirm the connection settings
Then "ether f0:de:aa:fb:bb:cc" is visible with command "ip a" in "60" seconds
Then "MACADDR=F0:DE:AA:FB:BB:CC" is visible with command "cat /etc/sysconfig/network-scripts/ifcfg-ethernet"
@rhbz1372799
@ethernet @ifcfg-rh
@ver+=1.4.0
@nmtui_ethernet_mac_removal
Scenario: nmtui - ethernet - mac removal
* Start nmtui
* Choose to "Edit a connection" from main screen
* Choose to "<Add>" a connection
* Choose the connection type "Ethernet"
* Set "Profile name" field to "ethernet"
* Set "Device" field to "eth1"
* Come in "ETHERNET" category
* Set "Cloned MAC address" field to "f1:de:aa:fb:bb:cc"
* Come back to the top of editor
* Empty the field "Cloned MAC address"
* Confirm the connection settings
* Wait for "5" seconds
Then ".*Unable to add new connection.*" is not visible on screen
Then "ether f1:de:aa:fb:bb:cc" is not visible with command "ip a"
Then "MACADDR=F1:DE:AA:FB:BB:CC" is not visible with command "cat /etc/sysconfig/network-scripts/ifcfg-ethernet"
@nmtui_ethernet_static_ipv4
Scenario: nmtui - ethernet - static IPv4 configuration
* Prepare new connection of type "Ethernet" named "ethernet"
* Set "Device" field to "eth1"
* Set "IPv4 CONFIGURATION" category to "Manual"
* Come in "IPv4 CONFIGURATION" category
* In "Addresses" property add "192.168.1.10/24"
* Confirm the connection settings
Then "inet 192.168.1.10/24" is visible with command "ip a s eth1" in "10" seconds
Then "eth1\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device"
@nmtui_ethernet_static_ipv6
Scenario: nmtui - ethernet - static IPv6 configuration
* Prepare new connection of type "Ethernet" named "ethernet"
* Set "Device" field to "eth1"
* Set "IPv6 CONFIGURATION" category to "Manual"
* Come in "IPv6 CONFIGURATION" category
* In "Addresses" property add "2607:f0d0:1002:51::4/64"
* Confirm the connection settings
Then "eth1\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device" in "20" seconds
Then "inet6 2607:f0d0:1002:51::4/64" is visible with command "ip a s eth1" in "10" seconds
@nmtui_ethernet_static_combined
Scenario: nmtui - ethernet - static IPv4 and IPv6 combined
* Prepare new connection of type "Ethernet" named "ethernet"
* Set "Device" field to "eth1"
* Set "IPv4 CONFIGURATION" category to "Manual"
* Come in "IPv4 CONFIGURATION" category
* In "Addresses" property add "192.168.1.10/24"
* Set "IPv6 CONFIGURATION" category to "Manual"
* Come in "IPv6 CONFIGURATION" category
* In "Addresses" property add "2607:f0d0:1002:51::4/64"
* Confirm the connection settings
Then "inet 192.168.1.10/24" is visible with command "ip a" in "10" seconds
Then "inet6 2607:f0d0:1002:51::4/64" is visible with command "ip a" in "10" seconds
Then "eth1\s+ethernet\s+connected\s+ethernet" is visible with command "nmcli device"