--- /dev/null
+/*
+ * Copyright (c) 2020 PANTHEON.tech, s.r.o. and others. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under the
+ * terms of the Eclipse Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/epl-v10.html
+ */
+package org.opendaylight.mdsal.binding.generator.impl;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import java.util.List;
+import org.junit.Test;
+import org.opendaylight.mdsal.binding.model.api.Type;
+import org.opendaylight.yangtools.yang.test.util.YangParserTestUtils;
+
+public class Mdsal531Test extends AbstractOpaqueTest {
+ @Test
+ public void augmentGroupingTest() {
+ final List<Type> types = DefaultBindingGenerator.generateFor(
+ YangParserTestUtils.parseYangResourceDirectory("/mdsal-531"));
+ assertNotNull(types);
+ assertEquals(10, types.size());
+ }
+}
--- /dev/null
+module foo {
+ yang-version 1.1;
+ namespace "a";
+ prefix a;
+ import bar { prefix b;}
+
+ grouping foo {
+ container bar {
+ leaf foo {
+ type string;
+ }
+ uses software-operation-state;
+ }
+
+ grouping software-operation-state {
+
+ leaf bar2 {
+ type empty;
+ }
+ uses next-operation-group;
+ }
+
+ grouping next-operation-group {
+ list next-operation {
+ key order;
+ config false;
+ // ui:group-ref "current-operation-group";
+ leaf order {
+ description "A logical sequence number of operations to be done.";
+ type uint8;
+ }
+
+ leaf operation-type {
+ description "Type of software action launched on the device.";
+ type string;
+
+ }
+
+ leaf software-name {
+ description "Name of the software on which the operation was performed. For download operations, the leaf only records the software name and not the complete URL.";
+ type string;
+ }
+ } // list next-operation
+ }
+ }
+
+ augment "/b:fooo" {
+ uses a:foo;
+ }
+}