diff options
author | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-19 00:04:34 +0900 |
---|---|---|
committer | Yuya Kusakabe <yuya.kusakabe@gmail.com> | 2018-05-19 00:04:34 +0900 |
commit | d5a603e6484409ba67079f20a44c4d70cf3abbfa (patch) | |
tree | 3337e0e6dcd2ee1e95dfee1db2216e50ceef92c1 /src/tests/test_host_name.py | |
parent | e77fa45c57162dbc7ad0e80c477612187913626e (diff) | |
download | vyos-1x-d5a603e6484409ba67079f20a44c4d70cf3abbfa.tar.gz vyos-1x-d5a603e6484409ba67079f20a44c4d70cf3abbfa.zip |
host-name: fix test_apply
Diffstat (limited to 'src/tests/test_host_name.py')
-rw-r--r-- | src/tests/test_host_name.py | 4 |
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: |