summaryrefslogtreecommitdiff
path: root/openstack_dashboard/dashboards/project/images/tests.py
diff options
context:
space:
mode:
authorwangliangyu <wangliangyu@gohighsec.com>2018-02-26 18:05:25 +0800
committerAkihiro Motoki <amotoki@gmail.com>2018-11-06 22:06:52 +0000
commit5f4057f8b5ebc9909f153f85875c131701f00fd1 (patch)
tree68bca6737fb942950b54690c8474d046010af816 /openstack_dashboard/dashboards/project/images/tests.py
parentfa3f856f0247ddf8d643d84d5c3bfe10a09b0ab3 (diff)
downloadhorizon-5f4057f8b5ebc9909f153f85875c131701f00fd1.tar.gz
Show snapshots list correctly when launching instance
In launch instance modal, when a user selects 'Instance Snapshots', not all snapshots are listed. The snapshots which are created from an instance with new volume or an instance created from volume or volume snapshot don't have 'image_type' but 'block_device_mapping'. So, judging only by image_type is not enough. Change-Id: I7e175b6a7260ca3d82560427a8f742f8cfa35565 Closes-Bug: #1627619
Diffstat (limited to 'openstack_dashboard/dashboards/project/images/tests.py')
-rw-r--r--openstack_dashboard/dashboards/project/images/tests.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/project/images/tests.py b/openstack_dashboard/dashboards/project/images/tests.py
index 938ca8262..e93f5597d 100644
--- a/openstack_dashboard/dashboards/project/images/tests.py
+++ b/openstack_dashboard/dashboards/project/images/tests.py
@@ -111,7 +111,7 @@ class ImagesAndSnapshotsTests(BaseImagesTestCase):
self.assertTemplateUsed(res, INDEX_TEMPLATE)
self.assertIn('images_table', res.context)
snaps = res.context['images_table']
- self.assertEqual(len(snaps.get_rows()), 3)
+ self.assertEqual(len(snaps.get_rows()), 4)
row_actions = snaps.get_row_actions(snaps.data[0])