summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuya Kusakabe <yuya.kusakabe@gmail.com>2018-05-19 00:04:34 +0900
committerYuya Kusakabe <yuya.kusakabe@gmail.com>2018-05-19 00:04:34 +0900
commitd5a603e6484409ba67079f20a44c4d70cf3abbfa (patch)
tree3337e0e6dcd2ee1e95dfee1db2216e50ceef92c1
parente77fa45c57162dbc7ad0e80c477612187913626e (diff)
downloadvyos-1x-d5a603e6484409ba67079f20a44c4d70cf3abbfa.tar.gz
vyos-1x-d5a603e6484409ba67079f20a44c4d70cf3abbfa.zip
host-name: fix test_apply
-rw-r--r--src/tests/test_host_name.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tests/test_host_name.py b/src/tests/test_host_name.py
index 637e56077..8c5210d5f 100644
--- a/src/tests/test_host_name.py
+++ b/src/tests/test_host_name.py
@@ -115,8 +115,8 @@ class TestHostName(TestCase):
def test_apply(self):
tests = [
{'name': 'valid_hostname',
- 'config': {"hostname": 'router', "domain": 'localdomain', "fqdn": 'vyos.localdomain'},
- 'expected': [mock.call('hostnamectl set-hostname vyos.localdomain'),
+ 'config': {"hostname": 'router', "domain": 'localdomain', "fqdn": 'router.localdomain'},
+ 'expected': [mock.call('hostnamectl set-hostname --static router.localdomain'),
mock.call('systemctl restart rsyslog.service')]}
]
for t in tests: