summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorhagbard <vyosdev@derith.de>2019-03-08 15:16:16 -0800
committerhagbard <vyosdev@derith.de>2019-03-08 15:16:16 -0800
commit290cf96209ed2a2a9be9d7fa5da78639cca84f99 (patch)
tree0c3837a35de02aa80ee9dee97fc622491c0f87b8 /src/tests
parent0fefe3c3b9250ad2ba841287a94036119728c708 (diff)
downloadvyos-1x-290cf96209ed2a2a9be9d7fa5da78639cca84f99.tar.gz
vyos-1x-290cf96209ed2a2a9be9d7fa5da78639cca84f99.zip
[ntp] T1280 - reverting added options from that task
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test_ntp.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/tests/test_ntp.py b/src/tests/test_ntp.py
index be47c0432..1cde490b4 100644
--- a/src/tests/test_ntp.py
+++ b/src/tests/test_ntp.py
@@ -198,7 +198,7 @@ class TestNtp(TestCase):
#
driftfile /var/lib/ntp/ntp.drift
# By default, only allow ntpd to query time sources, ignore any incoming requests
- restrict default noquery nopeer notrap nomodify noquery notrust
+ restrict default noquery nopeer notrap nomodify
# Local users have unrestricted access, allowing reconfiguration via ntpdc
restrict 127.0.0.1
restrict -6 ::1
@@ -209,14 +209,8 @@ class TestNtp(TestCase):
# Server configuration for: 1.example.com
server 1.example.com iburst noselect preempt prefer
- # allow server sync
- restrict 1.example.com nomodify notrap
-
# Server configuration for: 2.example.com
server 2.example.com iburst
- # allow server sync
- restrict 2.example.com nomodify notrap
-
# Client configuration for network: 192.0.2.0/24
@@ -242,7 +236,7 @@ class TestNtp(TestCase):
ntp.generate(case['config'])
actual = fp.file.read().decode('ascii')
- # print(actual)
+ print(actual)
self.assertEqual(case['expected'], actual)
def test_apply(self):