mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 14:10:36 +01:00
clients/tests: add nmcli test for activating connection
Add a test to call `nmcli con up`, and also how the activated state looks afterwards.
This commit is contained in:
parent
7224461069
commit
15071e4741
18 changed files with 592 additions and 0 deletions
16
Makefile.am
16
Makefile.am
|
|
@ -3866,6 +3866,22 @@ EXTRA_DIST += \
|
|||
clients/tests/test-client.check-on-disk/test_003-012.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-013.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-014.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-015.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-016.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-017.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-018.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-019.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-020.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-021.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-022.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-023.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-024.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-025.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-026.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-027.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-028.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-029.expected \
|
||||
clients/tests/test-client.check-on-disk/test_003-030.expected \
|
||||
\
|
||||
$(NULL)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,13 @@
|
|||
location: clients/tests/test-client.py:601:test_003()/15
|
||||
cmd: $NMCLI con up ethernet ifname eth0
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 106 bytes
|
||||
>>>
|
||||
Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/1)
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:604:test_003()/16
|
||||
cmd: $NMCLI con
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 264 bytes
|
||||
>>>
|
||||
NAME UUID TYPE DEVICE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth0
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:604:test_003()/17
|
||||
cmd: $NMCLI con
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 264 bytes
|
||||
>>>
|
||||
NAME UUID TYPE DEVICE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth0
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:604:test_003()/18
|
||||
cmd: $NMCLI con
|
||||
lang: de_DE.utf8
|
||||
returncode: 0
|
||||
stdout: 264 bytes
|
||||
>>>
|
||||
NAME UUID TYPE DEVICE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet eth0
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:607:test_003()/19
|
||||
cmd: $NMCLI -f ALL con
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 1084 bytes
|
||||
>>>
|
||||
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/3 yes eth0 activated /org/freedesktop/NetworkManager/ActiveConnection/1 --
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/1 no -- -- -- --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 never yes 0 no /org/freedesktop/NetworkManager/Settings/Connection/2 no -- -- -- --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:607:test_003()/20
|
||||
cmd: $NMCLI -f ALL con
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 1088 bytes
|
||||
>>>
|
||||
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/3 tak eth0 aktywowano /org/freedesktop/NetworkManager/ActiveConnection/1 --
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/1 nie -- -- -- --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nigdy tak 0 nie /org/freedesktop/NetworkManager/Settings/Connection/2 nie -- -- -- --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
location: clients/tests/test-client.py:607:test_003()/21
|
||||
cmd: $NMCLI -f ALL con
|
||||
lang: de_DE.utf8
|
||||
returncode: 0
|
||||
stdout: 1084 bytes
|
||||
>>>
|
||||
NAME UUID TYPE TIMESTAMP TIMESTAMP-REAL AUTOCONNECT AUTOCONNECT-PRIORITY READONLY DBUS-PATH ACTIVE DEVICE STATE ACTIVE-PATH SLAVE
|
||||
ethernet UUID-ethernet-REPLACED-REPLACED-REPL ethernet 0 nie ja 0 nein /org/freedesktop/NetworkManager/Settings/Connection/3 ja eth0 aktiviert /org/freedesktop/NetworkManager/ActiveConnection/1 --
|
||||
con-1 5fcfd6d7-1e63-3332-8826-a7eda103792d ethernet 0 nie ja 0 nein /org/freedesktop/NetworkManager/Settings/Connection/1 nein -- -- -- --
|
||||
con-xx1 UUID-con-xx1-REPLACED-REPLACED-REPLA ethernet 0 nie ja 0 nein /org/freedesktop/NetworkManager/Settings/Connection/2 nein -- -- -- --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
location: clients/tests/test-client.py:610:test_003()/22
|
||||
cmd: $NMCLI -f ALL con s ethernet
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 3516 bytes
|
||||
>>>
|
||||
connection.id: ethernet
|
||||
connection.uuid: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
connection.stable-id: --
|
||||
connection.type: 802-3-ethernet
|
||||
connection.interface-name: --
|
||||
connection.autoconnect: yes
|
||||
connection.autoconnect-priority: 0
|
||||
connection.autoconnect-retries: -1 (default)
|
||||
connection.auth-retries: -1
|
||||
connection.timestamp: 0
|
||||
connection.read-only: no
|
||||
connection.permissions: --
|
||||
connection.zone: --
|
||||
connection.master: --
|
||||
connection.slave-type: --
|
||||
connection.autoconnect-slaves: -1 (default)
|
||||
connection.secondaries: --
|
||||
connection.gateway-ping-timeout: 0
|
||||
connection.metered: unknown
|
||||
connection.lldp: default
|
||||
connection.mdns: -1 (default)
|
||||
802-3-ethernet.port: --
|
||||
802-3-ethernet.speed: 0
|
||||
802-3-ethernet.duplex: --
|
||||
802-3-ethernet.auto-negotiate: no
|
||||
802-3-ethernet.mac-address: --
|
||||
802-3-ethernet.cloned-mac-address: --
|
||||
802-3-ethernet.generate-mac-address-mask:--
|
||||
802-3-ethernet.mac-address-blacklist: --
|
||||
802-3-ethernet.mtu: auto
|
||||
802-3-ethernet.s390-subchannels: --
|
||||
802-3-ethernet.s390-nettype: --
|
||||
802-3-ethernet.s390-options: --
|
||||
802-3-ethernet.wake-on-lan: default
|
||||
802-3-ethernet.wake-on-lan-password: --
|
||||
ipv4.method: auto
|
||||
ipv4.dns: --
|
||||
ipv4.dns-search: --
|
||||
ipv4.dns-options: ""
|
||||
ipv4.dns-priority: 0
|
||||
ipv4.addresses: --
|
||||
ipv4.gateway: --
|
||||
ipv4.routes: --
|
||||
ipv4.route-metric: -1
|
||||
ipv4.route-table: 0 (unspec)
|
||||
ipv4.ignore-auto-routes: no
|
||||
ipv4.ignore-auto-dns: no
|
||||
ipv4.dhcp-client-id: --
|
||||
ipv4.dhcp-timeout: 0 (default)
|
||||
ipv4.dhcp-send-hostname: yes
|
||||
ipv4.dhcp-hostname: --
|
||||
ipv4.dhcp-fqdn: --
|
||||
ipv4.never-default: no
|
||||
ipv4.may-fail: yes
|
||||
ipv4.dad-timeout: -1 (default)
|
||||
ipv6.method: auto
|
||||
ipv6.dns: --
|
||||
ipv6.dns-search: --
|
||||
ipv6.dns-options: ""
|
||||
ipv6.dns-priority: 0
|
||||
ipv6.addresses: --
|
||||
ipv6.gateway: --
|
||||
ipv6.routes: --
|
||||
ipv6.route-metric: -1
|
||||
ipv6.route-table: 0 (unspec)
|
||||
ipv6.ignore-auto-routes: no
|
||||
ipv6.ignore-auto-dns: no
|
||||
ipv6.never-default: no
|
||||
ipv6.may-fail: yes
|
||||
ipv6.ip6-privacy: -1 (unknown)
|
||||
ipv6.addr-gen-mode: stable-privacy
|
||||
ipv6.dhcp-send-hostname: yes
|
||||
ipv6.dhcp-hostname: --
|
||||
ipv6.token: --
|
||||
proxy.method: none
|
||||
proxy.browser-only: no
|
||||
proxy.pac-url: --
|
||||
proxy.pac-script: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
location: clients/tests/test-client.py:610:test_003()/23
|
||||
cmd: $NMCLI -f ALL con s ethernet
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 3534 bytes
|
||||
>>>
|
||||
connection.id: ethernet
|
||||
connection.uuid: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
connection.stable-id: --
|
||||
connection.type: 802-3-ethernet
|
||||
connection.interface-name: --
|
||||
connection.autoconnect: tak
|
||||
connection.autoconnect-priority: 0
|
||||
connection.autoconnect-retries: -1 (default)
|
||||
connection.auth-retries: -1
|
||||
connection.timestamp: 0
|
||||
connection.read-only: nie
|
||||
connection.permissions: --
|
||||
connection.zone: --
|
||||
connection.master: --
|
||||
connection.slave-type: --
|
||||
connection.autoconnect-slaves: -1 (default)
|
||||
connection.secondaries: --
|
||||
connection.gateway-ping-timeout: 0
|
||||
connection.metered: nieznane
|
||||
connection.lldp: default
|
||||
connection.mdns: -1 (default)
|
||||
802-3-ethernet.port: --
|
||||
802-3-ethernet.speed: 0
|
||||
802-3-ethernet.duplex: --
|
||||
802-3-ethernet.auto-negotiate: nie
|
||||
802-3-ethernet.mac-address: --
|
||||
802-3-ethernet.cloned-mac-address: --
|
||||
802-3-ethernet.generate-mac-address-mask:--
|
||||
802-3-ethernet.mac-address-blacklist: --
|
||||
802-3-ethernet.mtu: automatyczne
|
||||
802-3-ethernet.s390-subchannels: --
|
||||
802-3-ethernet.s390-nettype: --
|
||||
802-3-ethernet.s390-options: --
|
||||
802-3-ethernet.wake-on-lan: default
|
||||
802-3-ethernet.wake-on-lan-password: --
|
||||
ipv4.method: auto
|
||||
ipv4.dns: --
|
||||
ipv4.dns-search: --
|
||||
ipv4.dns-options: ""
|
||||
ipv4.dns-priority: 0
|
||||
ipv4.addresses: --
|
||||
ipv4.gateway: --
|
||||
ipv4.routes: --
|
||||
ipv4.route-metric: -1
|
||||
ipv4.route-table: 0 (unspec)
|
||||
ipv4.ignore-auto-routes: nie
|
||||
ipv4.ignore-auto-dns: nie
|
||||
ipv4.dhcp-client-id: --
|
||||
ipv4.dhcp-timeout: 0 (default)
|
||||
ipv4.dhcp-send-hostname: tak
|
||||
ipv4.dhcp-hostname: --
|
||||
ipv4.dhcp-fqdn: --
|
||||
ipv4.never-default: nie
|
||||
ipv4.may-fail: tak
|
||||
ipv4.dad-timeout: -1 (default)
|
||||
ipv6.method: auto
|
||||
ipv6.dns: --
|
||||
ipv6.dns-search: --
|
||||
ipv6.dns-options: ""
|
||||
ipv6.dns-priority: 0
|
||||
ipv6.addresses: --
|
||||
ipv6.gateway: --
|
||||
ipv6.routes: --
|
||||
ipv6.route-metric: -1
|
||||
ipv6.route-table: 0 (unspec)
|
||||
ipv6.ignore-auto-routes: nie
|
||||
ipv6.ignore-auto-dns: nie
|
||||
ipv6.never-default: nie
|
||||
ipv6.may-fail: tak
|
||||
ipv6.ip6-privacy: -1 (unknown)
|
||||
ipv6.addr-gen-mode: stable-privacy
|
||||
ipv6.dhcp-send-hostname: tak
|
||||
ipv6.dhcp-hostname: --
|
||||
ipv6.token: --
|
||||
proxy.method: none
|
||||
proxy.browser-only: nie
|
||||
proxy.pac-url: --
|
||||
proxy.pac-script: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,90 @@
|
|||
location: clients/tests/test-client.py:610:test_003()/24
|
||||
cmd: $NMCLI -f ALL con s ethernet
|
||||
lang: de_DE.utf8
|
||||
returncode: 0
|
||||
stdout: 3531 bytes
|
||||
>>>
|
||||
connection.id: ethernet
|
||||
connection.uuid: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
connection.stable-id: --
|
||||
connection.type: 802-3-ethernet
|
||||
connection.interface-name: --
|
||||
connection.autoconnect: ja
|
||||
connection.autoconnect-priority: 0
|
||||
connection.autoconnect-retries: -1 (default)
|
||||
connection.auth-retries: -1
|
||||
connection.timestamp: 0
|
||||
connection.read-only: nein
|
||||
connection.permissions: --
|
||||
connection.zone: --
|
||||
connection.master: --
|
||||
connection.slave-type: --
|
||||
connection.autoconnect-slaves: -1 (default)
|
||||
connection.secondaries: --
|
||||
connection.gateway-ping-timeout: 0
|
||||
connection.metered: unbekannt
|
||||
connection.lldp: default
|
||||
connection.mdns: -1 (default)
|
||||
802-3-ethernet.port: --
|
||||
802-3-ethernet.speed: 0
|
||||
802-3-ethernet.duplex: --
|
||||
802-3-ethernet.auto-negotiate: nein
|
||||
802-3-ethernet.mac-address: --
|
||||
802-3-ethernet.cloned-mac-address: --
|
||||
802-3-ethernet.generate-mac-address-mask:--
|
||||
802-3-ethernet.mac-address-blacklist: --
|
||||
802-3-ethernet.mtu: auto
|
||||
802-3-ethernet.s390-subchannels: --
|
||||
802-3-ethernet.s390-nettype: --
|
||||
802-3-ethernet.s390-options: --
|
||||
802-3-ethernet.wake-on-lan: default
|
||||
802-3-ethernet.wake-on-lan-password: --
|
||||
ipv4.method: auto
|
||||
ipv4.dns: --
|
||||
ipv4.dns-search: --
|
||||
ipv4.dns-options: ""
|
||||
ipv4.dns-priority: 0
|
||||
ipv4.addresses: --
|
||||
ipv4.gateway: --
|
||||
ipv4.routes: --
|
||||
ipv4.route-metric: -1
|
||||
ipv4.route-table: 0 (unspec)
|
||||
ipv4.ignore-auto-routes: nein
|
||||
ipv4.ignore-auto-dns: nein
|
||||
ipv4.dhcp-client-id: --
|
||||
ipv4.dhcp-timeout: 0 (default)
|
||||
ipv4.dhcp-send-hostname: ja
|
||||
ipv4.dhcp-hostname: --
|
||||
ipv4.dhcp-fqdn: --
|
||||
ipv4.never-default: nein
|
||||
ipv4.may-fail: ja
|
||||
ipv4.dad-timeout: -1 (default)
|
||||
ipv6.method: auto
|
||||
ipv6.dns: --
|
||||
ipv6.dns-search: --
|
||||
ipv6.dns-options: ""
|
||||
ipv6.dns-priority: 0
|
||||
ipv6.addresses: --
|
||||
ipv6.gateway: --
|
||||
ipv6.routes: --
|
||||
ipv6.route-metric: -1
|
||||
ipv6.route-table: 0 (unspec)
|
||||
ipv6.ignore-auto-routes: nein
|
||||
ipv6.ignore-auto-dns: nein
|
||||
ipv6.never-default: nein
|
||||
ipv6.may-fail: ja
|
||||
ipv6.ip6-privacy: -1 (unknown)
|
||||
ipv6.addr-gen-mode: stable-privacy
|
||||
ipv6.dhcp-send-hostname: ja
|
||||
ipv6.dhcp-hostname: --
|
||||
ipv6.token: --
|
||||
proxy.method: none
|
||||
proxy.browser-only: nein
|
||||
proxy.pac-url: --
|
||||
proxy.pac-script: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
location: clients/tests/test-client.py:613:test_003()/25
|
||||
cmd: $NMCLI -f ALL dev s eth0
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 880 bytes
|
||||
>>>
|
||||
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
|
||||
wlan0 wifi unavailable /org/freedesktop/NetworkManager/Devices/2 -- -- --
|
||||
wlan1 wifi unavailable /org/freedesktop/NetworkManager/Devices/3 -- -- --
|
||||
wlan1 wifi unavailable /org/freedesktop/NetworkManager/Devices/4 -- -- --
|
||||
eth0 ethernet unavailable /org/freedesktop/NetworkManager/Devices/1 ethernet UUID-ethernet-REPLACED-REPLACED-REPL /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
|
||||
<<<
|
||||
stderr: 24 bytes
|
||||
>>>
|
||||
Unknown parameter: eth0
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
location: clients/tests/test-client.py:613:test_003()/26
|
||||
cmd: $NMCLI -f ALL dev s eth0
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 884 bytes
|
||||
>>>
|
||||
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
|
||||
wlan0 wifi niedostępne /org/freedesktop/NetworkManager/Devices/2 -- -- --
|
||||
wlan1 wifi niedostępne /org/freedesktop/NetworkManager/Devices/3 -- -- --
|
||||
wlan1 wifi niedostępne /org/freedesktop/NetworkManager/Devices/4 -- -- --
|
||||
eth0 ethernet niedostępne /org/freedesktop/NetworkManager/Devices/1 ethernet UUID-ethernet-REPLACED-REPLACED-REPL /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
|
||||
<<<
|
||||
stderr: 24 bytes
|
||||
>>>
|
||||
Nieznany parametr: eth0
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
location: clients/tests/test-client.py:613:test_003()/27
|
||||
cmd: $NMCLI -f ALL dev s eth0
|
||||
lang: de_DE.utf8
|
||||
returncode: 0
|
||||
stdout: 904 bytes
|
||||
>>>
|
||||
DEVICE TYPE STATE DBUS-PATH CONNECTION CON-UUID CON-PATH
|
||||
wlan0 wifi nicht verfügbar /org/freedesktop/NetworkManager/Devices/2 -- -- --
|
||||
wlan1 wifi nicht verfügbar /org/freedesktop/NetworkManager/Devices/3 -- -- --
|
||||
wlan1 wifi nicht verfügbar /org/freedesktop/NetworkManager/Devices/4 -- -- --
|
||||
eth0 ethernet nicht verfügbar /org/freedesktop/NetworkManager/Devices/1 ethernet UUID-ethernet-REPLACED-REPLACED-REPL /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
|
||||
<<<
|
||||
stderr: 28 bytes
|
||||
>>>
|
||||
Unbekannter Parameter: eth0
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
location: clients/tests/test-client.py:616:test_003()/28
|
||||
cmd: $NMCLI -f ALL dev show eth0
|
||||
lang: C
|
||||
returncode: 0
|
||||
stdout: 1487 bytes
|
||||
>>>
|
||||
GENERAL.DEVICE: eth0
|
||||
GENERAL.TYPE: ethernet
|
||||
GENERAL.NM-TYPE: NMDeviceEthernet
|
||||
GENERAL.VENDOR: --
|
||||
GENERAL.PRODUCT: --
|
||||
GENERAL.DRIVER: virtual
|
||||
GENERAL.DRIVER-VERSION: --
|
||||
GENERAL.FIRMWARE-VERSION: --
|
||||
GENERAL.HWADDR: 72:41:AB:90:41:5D
|
||||
GENERAL.MTU: 0
|
||||
GENERAL.STATE: 20 (unavailable)
|
||||
GENERAL.REASON: 0 (No reason given)
|
||||
GENERAL.UDI: /sys/devices/virtual/eth0
|
||||
GENERAL.IP-IFACE: --
|
||||
GENERAL.IS-SOFTWARE: no
|
||||
GENERAL.NM-MANAGED: yes
|
||||
GENERAL.AUTOCONNECT: yes
|
||||
GENERAL.FIRMWARE-MISSING: no
|
||||
GENERAL.NM-PLUGIN-MISSING: no
|
||||
GENERAL.PHYS-PORT-ID: --
|
||||
GENERAL.CONNECTION: ethernet
|
||||
GENERAL.CON-UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
GENERAL.METERED: unknown
|
||||
CAPABILITIES.CARRIER-DETECT: no
|
||||
CAPABILITIES.SPEED: 100 Mb/s
|
||||
CAPABILITIES.IS-SOFTWARE: no
|
||||
CAPABILITIES.SRIOV: no
|
||||
WIRED-PROPERTIES.CARRIER: off
|
||||
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
location: clients/tests/test-client.py:616:test_003()/29
|
||||
cmd: $NMCLI -f ALL dev show eth0
|
||||
lang: pl_PL.UTF-8
|
||||
returncode: 0
|
||||
stdout: 1510 bytes
|
||||
>>>
|
||||
GENERAL.DEVICE: eth0
|
||||
GENERAL.TYPE: ethernet
|
||||
GENERAL.NM-TYPE: NMDeviceEthernet
|
||||
GENERAL.VENDOR: --
|
||||
GENERAL.PRODUCT: --
|
||||
GENERAL.DRIVER: virtual
|
||||
GENERAL.DRIVER-VERSION: --
|
||||
GENERAL.FIRMWARE-VERSION: --
|
||||
GENERAL.HWADDR: 72:41:AB:90:41:5D
|
||||
GENERAL.MTU: 0
|
||||
GENERAL.STATE: 20 (niedostępne)
|
||||
GENERAL.REASON: 0 (Nie podano przyczyny)
|
||||
GENERAL.UDI: /sys/devices/virtual/eth0
|
||||
GENERAL.IP-IFACE: --
|
||||
GENERAL.IS-SOFTWARE: nie
|
||||
GENERAL.NM-MANAGED: tak
|
||||
GENERAL.AUTOCONNECT: tak
|
||||
GENERAL.FIRMWARE-MISSING: nie
|
||||
GENERAL.NM-PLUGIN-MISSING: nie
|
||||
GENERAL.PHYS-PORT-ID: --
|
||||
GENERAL.CONNECTION: ethernet
|
||||
GENERAL.CON-UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
GENERAL.METERED: nieznane
|
||||
CAPABILITIES.CARRIER-DETECT: nie
|
||||
CAPABILITIES.SPEED: 100 Mb/s
|
||||
CAPABILITIES.IS-SOFTWARE: nie
|
||||
CAPABILITIES.SRIOV: nie
|
||||
WIRED-PROPERTIES.CARRIER: wyłączone
|
||||
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -0,0 +1,42 @@
|
|||
location: clients/tests/test-client.py:616:test_003()/30
|
||||
cmd: $NMCLI -f ALL dev show eth0
|
||||
lang: de_DE.utf8
|
||||
returncode: 0
|
||||
stdout: 1509 bytes
|
||||
>>>
|
||||
GENERAL.DEVICE: eth0
|
||||
GENERAL.TYPE: ethernet
|
||||
GENERAL.NM-TYPE: NMDeviceEthernet
|
||||
GENERAL.VENDOR: --
|
||||
GENERAL.PRODUCT: --
|
||||
GENERAL.DRIVER: virtual
|
||||
GENERAL.DRIVER-VERSION: --
|
||||
GENERAL.FIRMWARE-VERSION: --
|
||||
GENERAL.HWADDR: 72:41:AB:90:41:5D
|
||||
GENERAL.MTU: 0
|
||||
GENERAL.STATE: 20 (nicht verfügbar)
|
||||
GENERAL.REASON: 0 (Kein Grund angegeben)
|
||||
GENERAL.UDI: /sys/devices/virtual/eth0
|
||||
GENERAL.IP-IFACE: --
|
||||
GENERAL.IS-SOFTWARE: nein
|
||||
GENERAL.NM-MANAGED: ja
|
||||
GENERAL.AUTOCONNECT: ja
|
||||
GENERAL.FIRMWARE-MISSING: nein
|
||||
GENERAL.NM-PLUGIN-MISSING: nein
|
||||
GENERAL.PHYS-PORT-ID: --
|
||||
GENERAL.CONNECTION: ethernet
|
||||
GENERAL.CON-UUID: UUID-ethernet-REPLACED-REPLACED-REPL
|
||||
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
|
||||
GENERAL.METERED: unbekannt
|
||||
CAPABILITIES.CARRIER-DETECT: nein
|
||||
CAPABILITIES.SPEED: 100 Mb/s
|
||||
CAPABILITIES.IS-SOFTWARE: nein
|
||||
CAPABILITIES.SRIOV: nein
|
||||
WIRED-PROPERTIES.CARRIER: aus
|
||||
CONNECTIONS.AVAILABLE-CONNECTION-PATHS: --
|
||||
|
||||
<<<
|
||||
stderr: 0 bytes
|
||||
>>>
|
||||
|
||||
<<<
|
||||
|
|
@ -598,6 +598,23 @@ class TestNmcli(NmTestBase):
|
|||
replace_stdout = replace_stdout,
|
||||
sort_lines_stdout = True)
|
||||
|
||||
self.call_nmcli(['con', 'up', 'ethernet', 'ifname', 'eth0'])
|
||||
|
||||
self.call_nmcli_l(['con'],
|
||||
replace_stdout = replace_stdout)
|
||||
|
||||
self.call_nmcli_l(['-f', 'ALL', 'con'],
|
||||
replace_stdout = replace_stdout)
|
||||
|
||||
self.call_nmcli_l(['-f', 'ALL', 'con', 's', 'ethernet'],
|
||||
replace_stdout = replace_stdout)
|
||||
|
||||
self.call_nmcli_l(['-f', 'ALL', 'dev', 's', 'eth0'],
|
||||
replace_stdout = replace_stdout)
|
||||
|
||||
self.call_nmcli_l(['-f', 'ALL', 'dev', 'show', 'eth0'],
|
||||
replace_stdout = replace_stdout)
|
||||
|
||||
###############################################################################
|
||||
|
||||
def main():
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue