Add extended test scaffold for Basic Raft Cluster
This commit is contained in:
parent
8ac52c2dd8
commit
497b309379
|
@ -0,0 +1,3 @@
|
|||
* testbasictimers - 503 milliseconds, 739 microseconds, and 790 nanoseconds
|
||||
* testbasicstatemachine - 1 millisecond, 551 microseconds, and 593 nanoseconds
|
||||
* testbasiccluster - 1 millisecond, 333 microseconds, and 100 nanoseconds
|
|
@ -17,11 +17,24 @@ proc basicClusterMain*() =
|
|||
|
||||
suite "Basic Raft Cluster Tests":
|
||||
|
||||
test "Test Basic Raft Cluster Init (5 nodes)":
|
||||
test "Basic Raft Cluster Init (5 nodes)":
|
||||
for i in 0..4:
|
||||
nodesIds[i] = genUUID()
|
||||
|
||||
cluster = BasicRaftClusterInit(nodesIds)
|
||||
check cluster.nodes.len == 5
|
||||
|
||||
test "Generate Random Client SmCommands Queue":
|
||||
discard
|
||||
|
||||
test "Start Basic Raft Cluster And wait it to converge (Elect a Leader)":
|
||||
discard
|
||||
|
||||
test "Simulate Basic Raft Cluster Client SmCommands Execution / Log Replication":
|
||||
discard
|
||||
|
||||
test "Evaluate results":
|
||||
discard
|
||||
|
||||
if isMainModule:
|
||||
basicClusterMain()
|
Loading…
Reference in New Issue