Gnocchi resource list returns empty - add a sleep before it.

Change-Id: I799331dd2d000b81c77a9b9ad78b8cd91452bc00
This commit is contained in:
Idan Hefetz 2018-11-01 15:22:14 +00:00 committed by Ifat Afek
parent ff69d62f3f
commit fba72798a6
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.
import time
from oslo_log import log as logging
from vitrage_tempest_plugin.tests import utils
@ -111,6 +112,7 @@ class TestAodhAlarm(BaseAlarmsTest):
try:
# Action
nova_utils.create_instances(num_instances=self.NUM_INSTANCE)
time.sleep(20)
aodh_utils.create_aodh_resources_threshold_alarm(
resource_id=self._find_instance_resource_id())