use of com.yahoo.athenz.zts.store.impl.ZMSFileChangeLogStore in project athenz by yahoo.
the class ZMSFileChangeLogStoreTest method testFullRefreshSupport.
@Test
public void testFullRefreshSupport() {
ZMSFileChangeLogStore fstore = new ZMSFileChangeLogStore(FSTORE_PATH, null, null);
assertTrue(fstore.supportsFullRefresh());
}
use of com.yahoo.athenz.zts.store.impl.ZMSFileChangeLogStore in project athenz by yahoo.
the class ZMSFileChangeLogStoreTest method deleteNonExistent.
@Test
public void deleteNonExistent() {
ZMSFileChangeLogStore fstore = new ZMSFileChangeLogStore(FSTORE_PATH, null, null);
fstore.delete("test1");
assertTrue(true);
}
use of com.yahoo.athenz.zts.store.impl.ZMSFileChangeLogStore in project athenz by yahoo.
the class ZMSFileChangeLogStoreTest method scanHidden.
@Test
public void scanHidden() {
ZMSFileChangeLogStore fstore = new ZMSFileChangeLogStore(FSTORE_PATH, null, null);
Struct data = new Struct();
data.put("key", "val1");
fstore.put("test1", JSON.bytes(data));
data = new Struct();
data.put("key", "val1");
fstore.put(".test2", JSON.bytes(data));
data = new Struct();
data.put("key", "val1");
fstore.put(".test3", JSON.bytes(data));
List<String> ls = fstore.scan();
assertEquals(ls.size(), 1);
assertTrue(ls.contains("test1"));
}
Aggregations