Reproduce YANGTOOLS-1445 76/103276/1
authorSangwook Ha <sangwook.ha@verizon.com>
Tue, 12 Jul 2022 22:26:01 +0000 (15:26 -0700)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 16 Nov 2022 18:59:24 +0000 (19:59 +0100)
commit280b0ccf630a7d3cb8f81f4afc06d0c4f63d981d
tree9b66fb49e1cffc680e1dc138142d1cb22c510ccb
parent73d204cbb6811f6c9e531c0590b4d3d9d4532db1
Reproduce YANGTOOLS-1445

Building effective model fails when unique statement is used in a
grouping used by another grouping.

Add a test case (the third one) to reproduce the issue. There is no
issue when the unique statement is used in a single grouping like the
first two test cases.

JIRA: YANGTOOLS-1445
Change-Id: Idadfb6e8fc0bf724f0ff770d9fe986692e4b30eb
Signed-off-by: Sangwook Ha <sangwook.ha@verizon.com>
(cherry picked from commit 4bfd28bd20bcdb401b8a612ffbd6eadf8ca4b904)
parser/yang-parser-rfc7950/src/test/java/org/opendaylight/yangtools/yang/stmt/YT1445Test.java [new file with mode: 0644]
parser/yang-parser-rfc7950/src/test/resources/bugs/YT1445/list-grouping/foo.yang [new file with mode: 0644]
parser/yang-parser-rfc7950/src/test/resources/bugs/YT1445/nested-grouping/foo.yang [new file with mode: 0644]
parser/yang-parser-rfc7950/src/test/resources/bugs/YT1445/top-level-grouping/foo.yang [new file with mode: 0644]