Do not enforce augments in unsupported nodes
[yangtools.git] / parser / yang-parser-rfc7950 / src / test / java / org / opendaylight / yangtools / yang / stmt / YT1393Test.java
index 1e3976209d3fd73d75e39eefc2cbca46a373f004..ffe8d8b3b20d198c51c6dfa89ebcc1e4d79fcdae 100644 (file)
@@ -37,4 +37,12 @@ public class YT1393Test {
             .orElseThrow();
         assertEquals(5, module.effectiveSubstatements().size());
     }
+
+    @Test
+    public void testUsesAugmentInUnsupportedByFeatures() throws Exception {
+        final var module = StmtTestUtils.parseYangSource("/bugs/YT1393/xyzzy.yang", Set.of())
+            .findModuleStatement(QName.create("xyzzy", "xyzzy"))
+            .orElseThrow();
+        assertEquals(3, module.effectiveSubstatements().size());
+    }
 }