aboutsummaryrefslogtreecommitdiffstats
path: root/sanitycheck/netconf/test_models
diff options
context:
space:
mode:
authorBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-04-13 11:21:40 +0200
committerBartosz Gardziejewski <bartosz.gardziejewski@nokia.com>2021-04-13 12:56:08 +0000
commit6b9990df40f2fac4184ae40fe4d0b441241da712 (patch)
treea316a8d1823951c5216f3dd9bf2bd32c772d4414 /sanitycheck/netconf/test_models
parent5e002f8d0219cc4f306d2f26708098fb84dc1218 (diff)
Update sanitycheck
Add new tests and update dmaap-simulator Signed-off-by: Bartosz Gardziejewski <bartosz.gardziejewski@nokia.com> Issue-ID: INT-1869 Change-Id: Ibaba12467983d20e95015ed09964367a2baf81b0
Diffstat (limited to 'sanitycheck/netconf/test_models')
-rw-r--r--sanitycheck/netconf/test_models/models-configuration.ini2
-rw-r--r--sanitycheck/netconf/test_models/test-model.data.xml25
-rw-r--r--sanitycheck/netconf/test_models/test-model.yang10
3 files changed, 37 insertions, 0 deletions
diff --git a/sanitycheck/netconf/test_models/models-configuration.ini b/sanitycheck/netconf/test_models/models-configuration.ini
new file mode 100644
index 0000000..1fee0aa
--- /dev/null
+++ b/sanitycheck/netconf/test_models/models-configuration.ini
@@ -0,0 +1,2 @@
+[SUBSCRIPTION]
+models = test-model
diff --git a/sanitycheck/netconf/test_models/test-model.data.xml b/sanitycheck/netconf/test_models/test-model.data.xml
new file mode 100644
index 0000000..8f30188
--- /dev/null
+++ b/sanitycheck/netconf/test_models/test-model.data.xml
@@ -0,0 +1,25 @@
+<!--
+ ============LICENSE_START=======================================================
+ Simulator
+ ================================================================================
+ Copyright (C) 2021 Nokia. All rights reserved.
+ ================================================================================
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ ============LICENSE_END=========================================================
+ -->
+
+<config xmlns="http://onap.org/test-model">
+ <itemValue1>45</itemValue1>
+ <itemValue2>37</itemValue2>
+ <itemValue3>58</itemValue3>
+</config>
diff --git a/sanitycheck/netconf/test_models/test-model.yang b/sanitycheck/netconf/test_models/test-model.yang
new file mode 100644
index 0000000..0f4e699
--- /dev/null
+++ b/sanitycheck/netconf/test_models/test-model.yang
@@ -0,0 +1,10 @@
+module test-model {
+ namespace "http://onap.org/test-model";
+ prefix config;
+ container config {
+ config true;
+ leaf itemValue1 {type uint32;}
+ leaf itemValue2 {type uint32;}
+ leaf itemValue3 {type uint32;}
+ }
+}