The test model specifies the top-level container as structural, yet the
tests expect it to exist when empty. Mark the container as presence,
restoring behavior expected by tests.
Change-Id: Ided99720468a8bee14d5c66342e524450f5a9050
Signed-off-by: Robert Varga <rovarga@cisco.com>
}
container cars {
+ presence "expected to exist when empty";
list car {
key name;
leaf name {
}
container test {
+ presence "needs to be present when empty";
+
leaf name {
type string;
}
}
container test2 {
+ presence "needs to be present when empty";
}
-}
\ No newline at end of file
+}
}
container people {
+ presence "expected to exist when empty";
list person {
key name;
leaf name {
}
container test {
+ presence "needs to be present when empty";
+
list outer-list {
key id;
leaf id {
container test2 {
}
-}
\ No newline at end of file
+}
}
container test {
+ presence "needs to be present when empty";
+
list outer-list {
key id;
leaf id {
}
}
}
-}
\ No newline at end of file
+}