summaryrefslogtreecommitdiffstats
path: root/infra/translate-utils/src/test/resources
diff options
context:
space:
mode:
Diffstat (limited to 'infra/translate-utils/src/test/resources')
-rw-r--r--infra/translate-utils/src/test/resources/expected-persisted-output.txt8
-rw-r--r--infra/translate-utils/src/test/resources/test-persistence.yang22
2 files changed, 30 insertions, 0 deletions
diff --git a/infra/translate-utils/src/test/resources/expected-persisted-output.txt b/infra/translate-utils/src/test/resources/expected-persisted-output.txt
new file mode 100644
index 000000000..f0f5902e2
--- /dev/null
+++ b/infra/translate-utils/src/test/resources/expected-persisted-output.txt
@@ -0,0 +1,8 @@
+{
+ "test-persistence:top-container": {
+ "string": "testing"
+ },
+ "test-persistence:top-container2": {
+ "string": "testing"
+ }
+} \ No newline at end of file
diff --git a/infra/translate-utils/src/test/resources/test-persistence.yang b/infra/translate-utils/src/test/resources/test-persistence.yang
new file mode 100644
index 000000000..6dca9f2d5
--- /dev/null
+++ b/infra/translate-utils/src/test/resources/test-persistence.yang
@@ -0,0 +1,22 @@
+module test-persistence {
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:test:persistence";
+ prefix "tp";
+
+ revision "2015-01-05" {
+ description "Initial revision";
+ }
+
+ container top-container {
+ leaf string {
+ type string;
+ }
+ }
+
+ container top-container2 {
+ leaf string {
+ type string;
+ }
+ }
+
+}