Commit ce30f3f0 authored by Kirill Smelkov's avatar Kirill Smelkov

master/testAutostart: Make sure to verify cluster actually reaches RUNNING state

Upon #storage reaching #autostart, with autostart being on, by
definition if recovery / verification phases can be completed, the
cluster should change its state to RUNNING.

The corresponding test (introduced in 58774fb6 "master: new option to
automatically start a new cluster") was not checking that.
parent 31574dcc
...@@ -1152,6 +1152,8 @@ class Test(NEOThreadedTest): ...@@ -1152,6 +1152,8 @@ class Test(NEOThreadedTest):
getClusterState = cluster.neoctl.getClusterState getClusterState = cluster.neoctl.getClusterState
self.assertEqual(ClusterStates.RECOVERING, getClusterState()) self.assertEqual(ClusterStates.RECOVERING, getClusterState())
cluster.storage_list[2].start() cluster.storage_list[2].start()
self.tic()
self.assertEqual(ClusterStates.RUNNING, getClusterState())
cluster = NEOCluster(storage_count=3, autostart=3) cluster = NEOCluster(storage_count=3, autostart=3)
try: try:
cluster.startCluster = startCluster cluster.startCluster = startCluster
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment