summaryrefslogtreecommitdiffstats
path: root/infra/test-utils/test-api
diff options
context:
space:
mode:
Diffstat (limited to 'infra/test-utils/test-api')
-rw-r--r--infra/test-utils/test-api/asciidoc/Readme.adoc3
-rw-r--r--infra/test-utils/test-api/pom.xml41
-rw-r--r--infra/test-utils/test-api/src/main/yang/hc-data.yang71
3 files changed, 115 insertions, 0 deletions
diff --git a/infra/test-utils/test-api/asciidoc/Readme.adoc b/infra/test-utils/test-api/asciidoc/Readme.adoc
new file mode 100644
index 000000000..2add76702
--- /dev/null
+++ b/infra/test-utils/test-api/asciidoc/Readme.adoc
@@ -0,0 +1,3 @@
+= test-api
+
+Overview of test-api \ No newline at end of file
diff --git a/infra/test-utils/test-api/pom.xml b/infra/test-utils/test-api/pom.xml
new file mode 100644
index 000000000..77db6a9b8
--- /dev/null
+++ b/infra/test-utils/test-api/pom.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ ~ Copyright (c) 2016 Cisco and/or its affiliates.
+ ~
+ ~ 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.
+ -->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+ <parent>
+ <artifactId>api-parent</artifactId>
+ <groupId>io.fd.honeycomb.common</groupId>
+ <version>1.16.12-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+
+ <groupId>io.fd.honeycomb.infra.test</groupId>
+ <artifactId>test-api</artifactId>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.opendaylight.mdsal.model</groupId>
+ <artifactId>yang-ext</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.opendaylight.controller</groupId>
+ <artifactId>sal-binding-broker-impl</artifactId>
+ </dependency>
+ </dependencies>
+</project> \ No newline at end of file
diff --git a/infra/test-utils/test-api/src/main/yang/hc-data.yang b/infra/test-utils/test-api/src/main/yang/hc-data.yang
new file mode 100644
index 000000000..a817a249f
--- /dev/null
+++ b/infra/test-utils/test-api/src/main/yang/hc-data.yang
@@ -0,0 +1,71 @@
+module hc-data{
+
+ yang-version 1;
+ namespace "urn:opendaylight:params:xml:ns:yang:hc:data";
+ prefix "hc-d-i";
+
+ revision "2015-01-05" {
+ description "Testing HC model for test data injection";
+ }
+
+ import yang-ext {
+ prefix "ext";
+ }
+
+ container simple-container{
+ list simple-list{
+ key name;
+ leaf name{
+ type string;
+ }
+ container cont-under-list{
+ leaf nested-name{
+ type string;
+ }
+ }
+ }
+
+ container nested-container{
+ leaf name{
+ type string;
+ }
+ }
+
+ container nested-container-with-list{
+ list nested-list{
+ key name;
+ leaf name{
+ type string;
+ }
+ }
+ }
+
+ choice simple-choice{
+ case first-case{
+ leaf name{
+ type string;
+ }
+ }
+
+ case second-case{
+ container case-container{
+ leaf name{
+ type string;
+ }
+ }
+ }
+ }
+
+ container augmented-container{
+
+ }
+ }
+
+ augment /hc-d-i:simple-container/hc-d-i:augmented-container{
+ ext:augment-identifier "aug-container-augmentation";
+
+ leaf name-in-augment{
+ type string;
+ }
+ }
+} \ No newline at end of file