-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
complete partitioners tests; improve TASK4.md
- Loading branch information
alesavin
committed
Apr 4, 2018
1 parent
c888f66
commit 01be879
Showing
9 changed files
with
115 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
...tion-tests/src/test/java/ru/csc/bdse/kv/AbstractPartitionedKeyValueApiHttpClientTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
package ru.csc.bdse.kv; | ||
|
||
import org.junit.Test; | ||
|
||
/** | ||
* Test have to be implemented | ||
* | ||
* @author alesavin | ||
*/ | ||
public abstract class AbstractPartitionedKeyValueApiHttpClientTest { | ||
|
||
/* | ||
protected abstract KeyValueApi newCluster1(); | ||
protected abstract KeyValueApi newCluster2(); | ||
// Stream.generate(() -> RandomStringUtils.randomAlphanumeric(10)).limit(1000).collect(Collectors.toSet()); | ||
protected abstract Set<String> keys(); | ||
protected abstract float expectedKeysLossProportion(); | ||
protected abstract float expectedUndeletedKeysProportion(); | ||
private KeyValueApi cluster1 = newCluster1(); | ||
private KeyValueApi cluster2 = newCluster2(); | ||
private Set<String> keys = keys(); | ||
*/ | ||
|
||
@Test | ||
public void put1000KeysAndReadItCorrectlyOnCluster1() { | ||
// TODO put 1000 keys to storage ant read it | ||
} | ||
|
||
@Test | ||
public void readKeysFromCluster2AndCheckLossProportion() { | ||
// TODO read all keys from cluster2 and made some statistics (related to expectedKeysLossProportion) | ||
} | ||
|
||
@Test | ||
public void deleteAllKeysFromCluster2() { | ||
// TODO try to delete all keys on cluster2 | ||
} | ||
|
||
@Test | ||
public void readKeysFromCluster1AfterDeletionAtCluster2() { | ||
// TODO read all keys from cluster1, made some statistics (related to expectedUndeletedKeysProportion) | ||
} | ||
} | ||
|
||
|
43 changes: 0 additions & 43 deletions
43
...-integration-tests/src/test/java/ru/csc/bdse/kv/PartitionedKeyValueApiHttpClientTest.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.