Gaurav Agrawal
Committed by Gerrit Code Review

YANG: Junit testcases for restricions resolution

Change-Id: I35b8a579f924af50a5e2192bdac36dc94784198e
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + length "0..100";
8 + }
9 + }
10 + typedef hello {
11 + type string;
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello;
7 + }
8 + typedef hello {
9 + type string {
10 + length "0..100";
11 + }
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + length "min..20 | 200..max";
8 + }
9 + }
10 + typedef hello {
11 + type string {
12 + length "0..100 | 101..200 | 201..300";
13 + }
14 + }
15 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + length "min..20 | 201..max";
8 + }
9 + }
10 + typedef hello {
11 + type string {
12 + length "0..100 | 101..200 | 201..300";
13 + }
14 + }
15 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-z]";
8 + pattern "[A-Z]";
9 + length "min..20 | 201..max";
10 + }
11 + }
12 + typedef hello {
13 + type string {
14 + pattern "[0-9]";
15 + pattern "[\n]";
16 + length "0..100 | 101..200 | 201..300";
17 + }
18 + }
19 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-z]";
8 + pattern "[A-Z]";
9 + length "min..20 | 100..max";
10 + }
11 + }
12 + typedef hello {
13 + type string {
14 + pattern "[0-9]";
15 + pattern "[\n]";
16 + length "0..100 | 101..200 | 201..300";
17 + }
18 + }
19 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-z]";
8 + pattern "[A-Z]";
9 + length "min..20 | 100..max";
10 + }
11 + }
12 + typedef hello {
13 + type string {
14 + pattern "[0-9]";
15 + pattern "[\n]";
16 + }
17 + }
18 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-z]";
8 + pattern "[A-Z]";
9 + }
10 + }
11 + typedef hello {
12 + type string {
13 + pattern "[0-9]";
14 + pattern "[\n]";
15 + }
16 + }
17 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-zA-Z]";
8 + }
9 + }
10 + typedef hello {
11 + type string;
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + pattern "[a-zA-Z]";
8 + }
9 + }
10 + typedef hello {
11 + type string {
12 + pattern "[0-9]";
13 + }
14 + }
15 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello;
7 + }
8 + typedef hello {
9 + type string {
10 + pattern "[a-zA-Z]";
11 + }
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + range "1..4 | 10..20";
8 + }
9 + }
10 + typedef hello {
11 + type int32;
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + range "min..4 | min..max";
8 + }
9 + }
10 + typedef hello {
11 + type int32 {
12 + range "1..4 | 10..20";
13 + }
14 + }
15 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + range "min..4 | 10..max";
8 + }
9 + }
10 + typedef hello {
11 + type int32 {
12 + range "1..4 | 10..20";
13 + }
14 + }
15 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello;
7 + }
8 + typedef hello {
9 + type string {
10 + range "1..4 | 10..20";
11 + }
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello {
7 + range "1..4 | 10..20";
8 + }
9 + }
10 + typedef hello {
11 + type string;
12 + }
13 +}
1 +module Test {
2 + yang-version 1;
3 + namespace http://huawei.com;
4 + prefix Ant;
5 + leaf invalid-interval {
6 + type hello;
7 + }
8 + typedef hello {
9 + type int32 {
10 + range "1..4 | 10..20";
11 + }
12 + }
13 +}