public void RestoreComplete() { storeChangelogReader.Restore(); Assert.AreEqual(2, store.All().ToList().Count); var metadata = storeChangelogReader.GetMetadata(new TopicPartition(changelogTopic, 0)); Assert.IsNotNull(metadata); Assert.AreEqual(ChangelogState.COMPLETED, metadata.ChangelogState); Assert.AreEqual(1, metadata.RestoreEndOffset); Assert.AreEqual(2, metadata.TotalRestored); }
public void PutKeyExist() { var serdes = new StringSerDes(); byte[] key = serdes.Serialize("key", new SerializationContext()), value = serdes.Serialize("value", new SerializationContext()), value2 = serdes.Serialize("value2", new SerializationContext()); store.Put(new Bytes(key), value); store.Put(new Bytes(key), value2); var e = store.All().ToList(); Assert.AreEqual(1, e.Count); var v = store.Get(new Bytes(key)); Assert.AreEqual("value2", serdes.Deserialize(v, new SerializationContext())); }