Currently, the addCar and addPerson methods create multiple cars/people in tight... 00/24400/2
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)
commit10105981349e15d5722685a66a931f7fc71a10a3
tree279600cbddef0420aeae90876b86c246e2b89d96
parentab88a80387898e5c712a5fc44f5a0883f8178db7
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