Tests of codecs are included in codecs yangtools yang-data-codec-gson and yang-data-impl but we test codec on input data and also with presentation of Rest path.
* fix and add yang files for tests
* fix json files
* rename base folder of json-to-cnsn to json-to-nn
Change-Id: Id0a23e655c3ddaaeb60f8652d57a7a5d1458063a
Signed-off-by: ary <jatoth@cisco.com>
+++ /dev/null
-{
- "cont": {
- "lf":[null]
- }
-}
\ No newline at end of file
+++ /dev/null
-{
- "cont":{
- "cont1":{
- "lf11":"identity-module:iden",
- "lf12":"iden_local",
- "identityref-module:lf13":"iden_local",
- "identityref-module:lf14":"identity-module:iden_local"
- }
- }
-}
\ No newline at end of file
+++ /dev/null
-{
- "cont": {
- "lflst1":[45,55,66]
- }
-}
\ No newline at end of file
+++ /dev/null
-{
-
- "cont": {
- },
- "lst":[
- {
- }
- ]
-}
\ No newline at end of file
--- /dev/null
+{
+ "array-with-null-yang:cont": {
+ "lf":null
+ }
+}
\ No newline at end of file
--- /dev/null
+{
+ "identityref:cont":{
+ "cont1":{
+ "lf11":"identity-module:iden",
+ "lf12":"identityref-module:iden_local",
+ "identityref-module:lf13":"identityref-module:iden_local",
+ "identityref-module:lf14":"identity-module:iden"
+ }
+ }
+}
\ No newline at end of file
{
- "moduleName:cont":{
+ "cont":{
"lf1":"module<Name:value lf1",
"lf2":"module>Name:value lf2"
}
{
- "cont":{
+ "leafref-module:cont":{
"lf1":121,
"lf2":121,
"lf4":"pcc://39.39.39.39"
{
- "lst":[
+ "multiple-items:lst":[
{
"lst1": [
{
--- /dev/null
+{
+ "multiple-leaflist:lst": {
+ "lflst1":[45,55,66]
+ }
+}
\ No newline at end of file
--- /dev/null
+module multiple-items-yang {
+ namespace "multiple:items:yang";
+
+ prefix "mltitmsyg";
+ revision 2013-11-12 {
+ }
+
+ list lst {
+ list lst1 {
+ leaf lf11{
+ type string;
+ }
+ leaf-list lflst11{
+ type string;
+ }
+ container cont11{
+
+ }
+ list lst11{
+
+ }
+ }
+ }
+}
\ No newline at end of file
--- /dev/null
+module array-with-null-yang {
+ namespace "array:with:null:yang";
+
+ prefix "arwnlyn";
+ revision 2013-11-12 {
+ }
+
+ container cont{
+ leaf lf{
+ type empty;
+ }
+ leaf lf1{
+ type string;
+ }
+ leaf lf2{
+ type string;
+ }
+ leaf-list lflst1{
+ type empty;
+ }
+
+ leaf-list lflst2{
+ type string;
+ }
+ }
+}
\ No newline at end of file
{
- "lst":[
+ "simple-list:lst":[
{
"cont1":{
},
{
- "lst":[
+ "cont":[
{
},
{
--- /dev/null
+{
+
+ "lst": {
+ },
+ "lst1":[
+ {
+ }
+ ]
+}
\ No newline at end of file