summaryrefslogtreecommitdiff
path: root/tests/unittests/config/test_cc_ntp.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/config/test_cc_ntp.py')
-rw-r--r--tests/unittests/config/test_cc_ntp.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/unittests/config/test_cc_ntp.py b/tests/unittests/config/test_cc_ntp.py
index 62c9b3fb..52221c11 100644
--- a/tests/unittests/config/test_cc_ntp.py
+++ b/tests/unittests/config/test_cc_ntp.py
@@ -830,6 +830,17 @@ class TestNTPSchema:
"ntp.pools: 123 is not of type 'array'.*"
"ntp.servers: 'non-array' is not of type 'array'",
),
+ (
+ {
+ "ntp": {
+ "peers": [123],
+ "allow": ["www.example.com", None],
+ }
+ },
+ "Cloud config schema errors: "
+ "ntp.allow.1: None is not of type 'string',*"
+ ", ntp.peers.0: 123 is not of type 'string'",
+ ),
),
)
@skipUnlessJsonSchema()