]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Tests: Harden fake_notifier asserts
authorEric Harney <eharney@redhat.com>
Tue, 10 Mar 2015 20:34:16 +0000 (16:34 -0400)
committerEric Harney <eharney@redhat.com>
Wed, 11 Mar 2015 14:19:09 +0000 (14:19 +0000)
commitd1b03bf268303d05f1067239fd3f7e87498fe091
treeb153b0e00c152cf042474bd2f0d238b165e21a98
parent51016ce02441a3153e5962c7a6a6339c28987a4c
Tests: Harden fake_notifier asserts

This is a continuation of
8740e063 - Make test_create_delete_snapshot more robust

The same issue cropped up for me in
test_create_consistencygroup_from_src().

Add some more specific asserts to try to reveal what
is going wrong here.  The idea is to assert more
specific things (examining individual notifications)
before more general asserts (count of notifications) when
possible, to fail the test on the check that will provide
the most information back.

Related-Bug: #1412513

Change-Id: I267bd5933247f69f220a7be871a63e4db9eb9a80
cinder/tests/test_volume.py