InMemorySnapshotStore.clear();
}
- private void initEmptyDatastores() {
+ private void initEmptyDatastores() throws Exception {
leaderTestKit = new IntegrationTestKit(leaderSystem, leaderDatastoreContextBuilder);
- leaderDistributedDataStore = (DistributedDataStore) leaderTestKit.setupDistributedDataStore(
+ leaderDistributedDataStore = leaderTestKit.setupDistributedDataStore(
"config", MODULE_SHARDS_CONFIG, "empty-modules.conf", true,
SchemaContextHelper.distributedShardedDOMDataTreeSchemaContext());
- operDistributedDatastore = (DistributedDataStore) leaderTestKit.setupDistributedDataStore(
+ operDistributedDatastore = leaderTestKit.setupDistributedDataStore(
"operational", MODULE_SHARDS_CONFIG, "empty-modules.conf",true,
SchemaContextHelper.distributedShardedDOMDataTreeSchemaContext());
}
// top level shard at TEST element, with subshards on each outer-list map entry
- @Ignore("https://bugs.opendaylight.org/show_bug.cgi?id=8116")
@Test
+ @Ignore
public void testMultipleShardLevels() throws Exception {
initEmptyDatastores();
leaderShardFactory.registerListener(mockedDataTreeListener, Collections.singletonList(TEST_ID),
true, Collections.emptyList());
- // need 6 invocations, first initial thats from the parent shard, and then each individual subshard
- verify(mockedDataTreeListener, timeout(20000).times(6)).onDataTreeChanged(captorForChanges.capture(),
+ verify(mockedDataTreeListener, timeout(35000).atLeast(2)).onDataTreeChanged(captorForChanges.capture(),
captorForSubtrees.capture());
verifyNoMoreInteractions(mockedDataTreeListener);
final List<Map<DOMDataTreeIdentifier, NormalizedNode<?, ?>>> allSubtrees = captorForSubtrees.getAllValues();