summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests')
-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: