From d5a603e6484409ba67079f20a44c4d70cf3abbfa Mon Sep 17 00:00:00 2001 From: Yuya Kusakabe Date: Sat, 19 May 2018 00:04:34 +0900 Subject: host-name: fix test_apply --- src/tests/test_host_name.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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: -- cgit v1.2.3