diff options
author | 2016-07-01 16:24:01 +0200 | |
---|---|---|
committer | 2016-07-13 11:28:29 +0200 | |
commit | 40da600c311b18c628410af5f795c25c6e248cf6 (patch) | |
tree | 15bad416d5a2d020d840b505a738ce269f01ce31 /v3po/it/test-model/src/main | |
parent | 9f6b16d6e8ade6dfa40e9bbf4196d55adf8f2fec (diff) |
Introduce integration tests to Honeycomb
+ Add writer infrastructure initial test
Change-Id: I0c1017f55c9456f145943ca6db6221555b746c8f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/it/test-model/src/main')
-rw-r--r-- | v3po/it/test-model/src/main/yang/hc-test.yang | 113 |
1 files changed, 113 insertions, 0 deletions
diff --git a/v3po/it/test-model/src/main/yang/hc-test.yang b/v3po/it/test-model/src/main/yang/hc-test.yang new file mode 100644 index 000000000..204c5c089 --- /dev/null +++ b/v3po/it/test-model/src/main/yang/hc-test.yang @@ -0,0 +1,113 @@ +module hc-test { + yang-version 1; + namespace "urn:opendaylight:params:xml:ns:yang:hc:test"; + prefix "hct"; + + revision "2015-01-05" { + description "Testing HC model with bindings"; + } + + import yang-ext { + prefix "ext"; + } + + // ORDER 3 + container simple-container { + leaf simple-container-name { + type string; + } + } + + grouping some-attributes { + leaf leaf-from-grouping { + type string; + } + + // ORDER 5 + container container-from-grouping { + leaf leaf-in-container-from-grouping { + type int32; + } + } + } + + // ORDER 9 (no real attributes though) + container container-with-list { + // ORDER 7 + list list-in-container { + key "id"; + + leaf id { + type uint32; + } + + // ORDER 8 + container container-in-list { + leaf name { + type string; + } + + // ORDER 6 + list nested-list { + key "nested-id"; + + leaf nested-id { + type string; + } + + leaf nested-name { + type string; + } + } + } + } + } + + // ORDER 4 + container container-with-choice { + leaf name { + type string; + } + + uses some-attributes; + + choice choice { + leaf c1 { + type string; + } + + leaf c2 { + type string; + } + + // ORDER: 2 + container c3 { + leaf name { + type string; + } + } + } + } + + // ORDER: 2 + augment "/hct:simple-container" { + ext:augment-identifier "simple-augment"; + + leaf simple-augment-leaf { + type string; + } + } + + // UNORDERED + augment "/hct:simple-container" { + ext:augment-identifier "complex-augment"; + + // ORDER: 1 + container complex-augment-container { + leaf some-leaf { + type string; + } + } + } + +} |