...
The following test cases used and modified the standard stores model seen above.
Key
**Green cell for case number indicates that groovy test in YangTextSchemaSourceSetSpec.groovy 'Building a valid YangTextSchemaSourceSet using #filenameCase filename) passes
Case # | Description | JAVA object | Notes |
1 | - extension defined in the module
- extension used inside container statement before all other substatements
- extension contained argument
Code Block |
---|
| module stores {
yang-version 1.1;
...
extension sync-flag{
description "This extension allows to tag nodes with a sync flag";
argument "value";
}
typedef year {...}
container bookstore {
book-store:sync-flag "on";
...
leaf bookstore-name {...}
list books {..}
...
} |
| Image Added | - extension declared after all other substatements of container still passed
|
2 | - extension defined in the module
- extension used inside a leaf statement (child of a container) before all other substatements
- extension contained argument
Code Block |
---|
| module stores {
yang-version 1.1;
...
extension sync-flag{
description "This extension allows to tag nodes with a sync flag";
argument "value";
}
typedef year {...}
container bookstore {
...
leaf bookstore-name {
book-store:sync-flag "on";
}
list books {..}
...
} |
| Image Added | - Extension declared after type-statement inside leaf statement (child of container) still passed
|
3 |
|
|
|