summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRadomir Dopieralski <openstack@dopieralski.pl>2022-06-28 17:17:31 +0200
committerTatiana Ovchinnikova <t.v.ovtchinnikova@gmail.com>2023-02-17 20:24:09 +0000
commit63169f021da6a2f576a477150922c05a7daa19b0 (patch)
treedc61faf52316141f0933b045c0b2218b5c9d2c27
parent98685ed5b7776ea52f3032faee7d77a9864d3132 (diff)
downloadhorizon-63169f021da6a2f576a477150922c05a7daa19b0.tar.gz
Add setup and teardown to the volumes pagination tests
For now just delete the old volumes at the start Change-Id: I013da554f58e1638178d3655459c9742fd7f85ba (cherry picked from commit 81edf08676f2651f4343498c23d93b000fca7127)
-rw-r--r--openstack_dashboard/test/integration_tests/tests/test_volumes.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/openstack_dashboard/test/integration_tests/tests/test_volumes.py b/openstack_dashboard/test/integration_tests/tests/test_volumes.py
index 95108134b..ab38bfbd8 100644
--- a/openstack_dashboard/test/integration_tests/tests/test_volumes.py
+++ b/openstack_dashboard/test/integration_tests/tests/test_volumes.py
@@ -101,6 +101,15 @@ class TestVolumesBasic(helpers.TestCase):
12) Delete created volumes
"""
volumes_page = self.home_pg.go_to_project_volumes_volumespage()
+
+ # delete any old instances
+ garbage = volumes_page.volumes_table.get_column_data(
+ name_column='Name')
+ if garbage:
+ volumes_page.delete_volumes(garbage)
+ self.assertTrue(
+ volumes_page.find_message_and_dismiss(messages.INFO))
+
count = 3
items_per_page = 1
volumes_names = ["{0}_{1}".format(self.VOLUME_NAME, i) for i in