From f15aed916c69b0766c7bed2dc7fe534f48b97ac9 Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Thu, 14 Jul 2016 10:41:49 +0200 Subject: HONEYCOMB-122: Reader registry integration tests Add IT test for read infrastructure + some additional unit tests + Make Read/Write Factory autoCloseable Change-Id: I6eab8e6df2c2132af01cea0a9c4b9bece7dc9b74 Signed-off-by: Maros Marsalek --- v3po/it/test-model/src/main/yang/hc-test.yang | 32 ++++++++++++++++++--------- 1 file changed, 21 insertions(+), 11 deletions(-) (limited to 'v3po/it/test-model/src') diff --git a/v3po/it/test-model/src/main/yang/hc-test.yang b/v3po/it/test-model/src/main/yang/hc-test.yang index 204c5c089..e13b5001f 100644 --- a/v3po/it/test-model/src/main/yang/hc-test.yang +++ b/v3po/it/test-model/src/main/yang/hc-test.yang @@ -11,7 +11,8 @@ module hc-test { prefix "ext"; } - // ORDER 3 + // WRITE ORDER 3 + // READ ORDER 1 container simple-container { leaf simple-container-name { type string; @@ -23,7 +24,7 @@ module hc-test { type string; } - // ORDER 5 + // WRITE ORDER 5 container container-from-grouping { leaf leaf-in-container-from-grouping { type int32; @@ -31,25 +32,31 @@ module hc-test { } } - // ORDER 9 (no real attributes though) + // WRITE ORDER 9 (no real attributes though) + // READ ORDER 2 container container-with-list { - // ORDER 7 + // WRITE ORDER 7 + // READ ORDER 2.1 list list-in-container { key "id"; + ordered-by "user"; leaf id { type uint32; } - // ORDER 8 + // WRITE ORDER 8 + // READ ORDER 2.1.1 container container-in-list { leaf name { type string; } - // ORDER 6 + // WRITE ORDER 6 + // READ ORDER 2.1.1.1 list nested-list { key "nested-id"; + ordered-by "user"; leaf nested-id { type string; @@ -63,7 +70,7 @@ module hc-test { } } - // ORDER 4 + // WRITE ORDER 4 container container-with-choice { leaf name { type string; @@ -80,7 +87,7 @@ module hc-test { type string; } - // ORDER: 2 + // WRITE ORDER: 2 container c3 { leaf name { type string; @@ -89,7 +96,8 @@ module hc-test { } } - // ORDER: 2 + // WRITE ORDER: 2 + // READ ORDER 1.1 augment "/hct:simple-container" { ext:augment-identifier "simple-augment"; @@ -98,11 +106,13 @@ module hc-test { } } - // UNORDERED + // WRITE UNORDERED + // READ ORDER 1.2 augment "/hct:simple-container" { ext:augment-identifier "complex-augment"; - // ORDER: 1 + // WRITE ORDER: 1 + // READ ORDER 1.2.1 container complex-augment-container { leaf some-leaf { type string; -- cgit 1.2.3-korg