Add action tests
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 12 Jul 2018 14:56:51 +0000 (16:56 +0200)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 19 Jun 2024 00:41:24 +0000 (10:41 +1000)
This adds a very basic test, which uncovered a failure to deal
with actions being multiply-inherited -- and fixes that issue.

Also a test model is added, so higher-layer components can be
tested.

Change-Id: I775341e2860e06f360fd4c6c6f6449e96ed92c64
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-test-model/src/main/yang/actions.yang [new file with mode: 0644]

diff --git a/binding/mdsal-binding-test-model/src/main/yang/actions.yang b/binding/mdsal-binding-test-model/src/main/yang/actions.yang
new file mode 100644 (file)
index 0000000..4ea4a54
--- /dev/null
@@ -0,0 +1,30 @@
+module actions {
+    yang-version 1.1;
+    prefix act;
+    namespace "urn:odl:actions";
+
+    container cont {
+        action foo {
+        
+        }
+    }
+
+    grouping grp {
+        action bar {
+
+        }
+    }
+
+    grouping other {
+        uses grp;
+    }
+
+    container grpcont {
+        uses grp;
+    }
+
+    container othercont {
+        uses other;
+    }
+}
+