Currently, the addCar and addPerson methods create multiple cars/people in tight...
authorShaleen Saxena <ssaxena@brocade.com>
Wed, 22 Jul 2015 15:32:57 +0000 (08:32 -0700)
committerShaleen Saxena <ssaxena@brocade.com>
Wed, 22 Jul 2015 16:11:14 +0000 (09:11 -0700)
commit4de145931a3529897725203f7624c6d2c51f2442
tree17138cc6f0025b779e1a51cf4d7ba9a51e741b8e
parent4edbf43792fd209f9eeef74f2a23732b1eada48d
Currently, the addCar and addPerson methods create multiple cars/people in tight loops. These
loops do not check the results of the individual post operations. In case of cluster failures,
each post operation may take up to 5 minutes to timeout. Hence, these loops could take many
hours to complete.

The fix is to add an additional 'expected' parameter to these methods. This is a list of possible
results expected by the post operation. If any post operation does not match any of the 'expected'
values, then the loop will exit and raise an exception. This way the loop will wait for only
few minutes instead of hours.

Please note that this 'expected' parameter is optional. If it is not provided, then the old
behavior is preserved.

The other changes are to pass the expected values from various AddCar and AddPerson test cases.

Change-Id: I7375979de90f64c3ce70cfe4f3f6634d0aeac8e2
Signed-off-by: Shaleen Saxena <ssaxena@brocade.com>
test/csit/libraries/ClusterKeywords.txt
test/csit/libraries/CrudLibrary.py
test/csit/suites/controller/Clustering_Datastore/140_recovery_restart_follower.robot