Gaurav Agrawal
Committed by Gerrit Code Review

YANG: Junit testcases for restricions resolution

Change-Id: I35b8a579f924af50a5e2192bdac36dc94784198e
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
length "0..100";
}
}
typedef hello {
type string;
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello;
}
typedef hello {
type string {
length "0..100";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
length "min..20 | 200..max";
}
}
typedef hello {
type string {
length "0..100 | 101..200 | 201..300";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
length "min..20 | 201..max";
}
}
typedef hello {
type string {
length "0..100 | 101..200 | 201..300";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-z]";
pattern "[A-Z]";
length "min..20 | 201..max";
}
}
typedef hello {
type string {
pattern "[0-9]";
pattern "[\n]";
length "0..100 | 101..200 | 201..300";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-z]";
pattern "[A-Z]";
length "min..20 | 100..max";
}
}
typedef hello {
type string {
pattern "[0-9]";
pattern "[\n]";
length "0..100 | 101..200 | 201..300";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-z]";
pattern "[A-Z]";
length "min..20 | 100..max";
}
}
typedef hello {
type string {
pattern "[0-9]";
pattern "[\n]";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-z]";
pattern "[A-Z]";
}
}
typedef hello {
type string {
pattern "[0-9]";
pattern "[\n]";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-zA-Z]";
}
}
typedef hello {
type string;
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
pattern "[a-zA-Z]";
}
}
typedef hello {
type string {
pattern "[0-9]";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello;
}
typedef hello {
type string {
pattern "[a-zA-Z]";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
range "1..4 | 10..20";
}
}
typedef hello {
type int32;
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
range "min..4 | min..max";
}
}
typedef hello {
type int32 {
range "1..4 | 10..20";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
range "min..4 | 10..max";
}
}
typedef hello {
type int32 {
range "1..4 | 10..20";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello;
}
typedef hello {
type string {
range "1..4 | 10..20";
}
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello {
range "1..4 | 10..20";
}
}
typedef hello {
type string;
}
}
module Test {
yang-version 1;
namespace http://huawei.com;
prefix Ant;
leaf invalid-interval {
type hello;
}
typedef hello {
type int32 {
range "1..4 | 10..20";
}
}
}