summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-06-05 11:26:03 +0200
committerThomas Haller <thaller@redhat.com>2018-06-05 14:31:22 +0200
commit14b3033d349e8169a439e737f5e2a0c0563654b4 (patch)
tree3e5afede3046fae3f06e515f51eed8cbeb122bc5
parente738aca848a03dd6d797cef09a124a859d831c71 (diff)
downloadNetworkManager-th/clients-tests.tar.gz
clients/tests: test `nmcli con mod` command with different localeth/clients-tests
Just to give it some variety. Also, note how the message from the server cannot be translated. Which is the case with real NetworkManager as well, and is a major usability issue.
-rw-r--r--clients/tests/test-client.check-on-disk/test_004-003.expected6
-rwxr-xr-xclients/tests/test-client.py2
2 files changed, 4 insertions, 4 deletions
diff --git a/clients/tests/test-client.check-on-disk/test_004-003.expected b/clients/tests/test-client.check-on-disk/test_004-003.expected
index a611021262..12344984b7 100644
--- a/clients/tests/test-client.check-on-disk/test_004-003.expected
+++ b/clients/tests/test-client.check-on-disk/test_004-003.expected
@@ -1,13 +1,13 @@
location: clients/tests/test-client.py:812:test_004()/3
cmd: $NMCLI connection mod con-xx1 ipv4.gateway 172.16.0.1
-lang: C
+lang: pl_PL.UTF-8
returncode: 1
stdout: 0 bytes
>>>
<<<
-stderr: 119 bytes
+stderr: 143 bytes
>>>
-Error: Failed to modify connection 'con-xx1': ipv4.gateway: gateway cannot be set if there are no addresses configured
+Błąd: zmodyfikowanie połączenia „con-xx1” się nie powiodło: ipv4.gateway: gateway cannot be set if there are no addresses configured
<<<
diff --git a/clients/tests/test-client.py b/clients/tests/test-client.py
index 230d83102e..7f0742a391 100755
--- a/clients/tests/test-client.py
+++ b/clients/tests/test-client.py
@@ -809,7 +809,7 @@ class TestNmcli(NmTestBase):
replace_stdout = replace_stdout)
self.call_nmcli(['connection', 'mod', 'con-xx1', 'ip.gateway', ''])
- self.call_nmcli(['connection', 'mod', 'con-xx1', 'ipv4.gateway', '172.16.0.1'])
+ self.call_nmcli(['connection', 'mod', 'con-xx1', 'ipv4.gateway', '172.16.0.1'], lang = 'pl')
self.call_nmcli(['connection', 'mod', 'con-xx1', 'ipv6.gateway', '::99'])
self.call_nmcli(['connection', 'mod', 'con-xx1', '802.abc', ''])
self.call_nmcli(['connection', 'mod', 'con-xx1', '802-11-wireless.band', 'a'])