X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-distributed-datastore%2Fsrc%2Ftest%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fcluster%2Fdatastore%2FDatastoreContextIntrospectorTest.java;h=924f1de1ff4730627fdb4e19717666c3f083279b;hb=546cd1fd100dbaa36908b22c2f422320dbd8c4b2;hp=aab9322e9a89ea2a14da21298790325799b108a6;hpb=7cb260aeb0738104e3bee8a086de9e2e5f77b7e0;p=controller.git diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospectorTest.java b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospectorTest.java index aab9322e9a..924f1de1ff 100644 --- a/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospectorTest.java +++ b/opendaylight/md-sal/sal-distributed-datastore/src/test/java/org/opendaylight/controller/cluster/datastore/DatastoreContextIntrospectorTest.java @@ -23,8 +23,9 @@ import static org.opendaylight.mdsal.common.api.LogicalDatastoreType.OPERATIONAL import java.util.HashMap; import java.util.Map; import org.junit.Test; -import org.opendaylight.binding.runtime.spi.BindingRuntimeHelpers; import org.opendaylight.mdsal.binding.dom.codec.impl.BindingCodecContext; +import org.opendaylight.mdsal.binding.runtime.spi.BindingRuntimeHelpers; +import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.distributed.datastore.provider.rev140612.DataStoreProperties.ExportOnRecovery; import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.controller.config.distributed.datastore.provider.rev140612.DataStorePropertiesContainer; /** @@ -70,12 +71,10 @@ public class DatastoreContextIntrospectorTest { properties.put("shard-election-timeout-factor", "21"); properties.put("shard-batched-modification-count", "901"); properties.put("transactionCreationInitialRateLimit", "200"); - properties.put("MaxShardDataChangeExecutorPoolSize", "41"); - properties.put("Max-Shard-Data-Change Executor-Queue Size", "1111"); - properties.put(" max shard data change listener queue size", "2222"); - properties.put("mAx-shaRd-data-STORE-executor-quEUe-size", "3333"); properties.put("persistent", "false"); properties.put("initial-payload-serialized-buffer-capacity", "600"); + properties.put("export-on-recovery", "json"); + properties.put("recovery-json-dump", "persistence-export"); boolean updated = introspector.update(properties); assertTrue("updated", updated); @@ -99,6 +98,8 @@ public class DatastoreContextIntrospectorTest { assertEquals(901, context.getShardBatchedModificationCount()); assertEquals(200, context.getTransactionCreationInitialRateLimit()); assertEquals(600, context.getInitialPayloadSerializedBufferCapacity()); + assertEquals("persistence-export", context.getRecoveryExportBaseDir()); + assertEquals(ExportOnRecovery.Json, context.getExportOnRecovery()); assertFalse(context.isPersistent()); properties.put("shard-transaction-idle-timeout-in-minutes", "32"); @@ -154,7 +155,6 @@ public class DatastoreContextIntrospectorTest { properties.put("shard-snapshot-data-threshold-percentage", "101"); // bad - must be 0-100 properties.put("shard-snapshot-data-threshold", "-1"); // bad - must be > 0 properties.put("shard-initialization-timeout-in-seconds", "-1"); // bad - must be > 0 - properties.put("max-shard-data-change-executor-pool-size", "bogus"); // bad - NaN properties.put("unknownProperty", "1"); // bad - invalid property name final boolean updated = introspector.update(properties);