tests: Manipulating datastore without commit
This increases coverage in YangAccess datastore algorithm.
Change-Id: I17fd318e58305d01f1bd94a8ca7ff7c5252881a7
diff --git a/tests/datastore_access.cpp b/tests/datastore_access.cpp
index e9490ba..48b8f78 100644
--- a/tests/datastore_access.cpp
+++ b/tests/datastore_access.cpp
@@ -757,6 +757,12 @@
REQUIRE(std::all_of(expected.begin(), expected.end(), [items] (const auto& item) { return std::find(items.begin(), items.end(), item) != items.end(); }));
}
+ SECTION("setting and removing without commit")
+ {
+ datastore.setLeaf("/example-schema:leafInt32", 64);
+ datastore.deleteItem("/example-schema:leafInt32");
+ }
+
waitForCompletionAndBitMore(seq1);
}