From 372f1ee08423a12e8fc72e06910b5a4283f342a9 Mon Sep 17 00:00:00 2001 From: liaozd Date: Wed, 15 Feb 2017 22:20:54 +0800 Subject: [PATCH] We intend to add 10 stack_snapshot to the test data but only got 1 the same snapshot 'id' being added to the TestDataContainer in the iteration, so we only got 1 finally. Make the 'id' different for each add() method. Change-Id: Ie62b08c4e898d6ca7c4f75808fcb4119cd92d9ec --- openstack_dashboard/test/test_data/heat_data.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openstack_dashboard/test/test_data/heat_data.py b/openstack_dashboard/test/test_data/heat_data.py index 4c779593d4..61ea1b91d1 100644 --- a/openstack_dashboard/test/test_data/heat_data.py +++ b/openstack_dashboard/test/test_data/heat_data.py @@ -492,7 +492,7 @@ def data(TEST): "creation_time": "2016-02-21T04:02:54", "status_reason": "Stack SNAPSHOT completed successfully", - "id": "01558a3b-ba05-4427-bbb4-1e4ab71cfcad" + "id": "01558a3b-ba05-4427-bbb4-1e4ab71cfca{0}".format(i) } TEST.stack_snapshot.add(snapshot_data)