]> review.fuel-infra Code Review - openstack-build/heat-build.git/commit
Fix flaky unit test
authorZane Bitter <zbitter@redhat.com>
Fri, 1 Mar 2013 14:24:19 +0000 (15:24 +0100)
committerZane Bitter <zbitter@redhat.com>
Fri, 1 Mar 2013 14:24:19 +0000 (15:24 +0100)
commit7f1bb4a3f5b148f0894f7f22a8fa6abe65e000b1
tree0055494665688b3cb09bbe88c1bee48506bea391
parent8147ce785e0636e05fa64ce0b287e732d32a8dd7
Fix flaky unit test

This was failing intermittently during the gate tests because there was no
dependency in the template for the Instance on the WaitConditionHandle, nor
for the WaitCondition on the Instance, so the order in which resources
would be created was somewhat random.

This patch fixes the test template, and tests updating the metadata should
occur *during* creation of the stack, as well after, to replicate a real
wait condition (which won't finish creation until the metadata update
occurs).

Change-Id: I26b5590a9ee90d205bd9f2e31bcb74e68065ac25
Signed-off-by: Zane Bitter <zbitter@redhat.com>
heat/tests/test_metadata_refresh.py