Add test case for custom interface parameters
- update test pillars
- update schemas
Related Prod: PROD-30096
Change-Id: I5796bee1226d725a857f70c2ed874999d58b3994
diff --git a/ntp/schemas/client.yaml b/ntp/schemas/client.yaml
index cf43ae2..373ea81 100644
--- a/ntp/schemas/client.yaml
+++ b/ntp/schemas/client.yaml
@@ -40,6 +40,12 @@
patternProperties:
"^[0-9]*$":
$ref: "#/definitions/_ntp:common:stratum"
+ interface:
+ description: |
+ Set of interface parameters.
+ type: object
+ items:
+ $ref: "#/definitions/_ntp:common:interface"
auth:
description: |
Support of ntp auth.
@@ -93,3 +99,14 @@
type: string
trustedkey:
type: boolean
+ _ntp:common:interface:
+ description: |
+ Define exactly one interface action and its value
+ type: object
+ additionalProperties: false
+ required: [action, value]
+ properties:
+ action:
+ type: string
+ value:
+ type: string
diff --git a/ntp/schemas/server.yaml b/ntp/schemas/server.yaml
index 0ae5b8e..416f69d 100644
--- a/ntp/schemas/server.yaml
+++ b/ntp/schemas/server.yaml
@@ -59,6 +59,12 @@
patternProperties:
"^[0-9]*$":
$ref: "#/definitions/_ntp:common:stratum"
+ interface:
+ description: |
+ Set of interface parameters.
+ type: object
+ items:
+ $ref: "#/definitions/_ntp:common:interface"
auth:
description: |
Support of ntp auth.
@@ -168,4 +174,14 @@
type: string
trustedkey:
type: boolean
-
+ _ntp:common:interface:
+ description: |
+ Define exactly one interface action and its value
+ type: object
+ additionalProperties: false
+ required: [action, value]
+ properties:
+ action:
+ type: string
+ value:
+ type: string
diff --git a/tests/pillar/client.sls b/tests/pillar/client.sls
index fd770b7..a313c5f 100644
--- a/tests/pillar/client.sls
+++ b/tests/pillar/client.sls
@@ -5,3 +5,7 @@
strata:
- ntp.cesnet.cz
- pool.ntp.org
+ interface:
+ test:
+ action: action
+ value: value
diff --git a/tests/pillar/server.sls b/tests/pillar/server.sls
index b623e0c..08713b4 100644
--- a/tests/pillar/server.sls
+++ b/tests/pillar/server.sls
@@ -17,3 +17,7 @@
strata:
- ntp.cesnet.cz
- pool.ntp.org
+ interface:
+ test:
+ action: action
+ value: value
\ No newline at end of file