From bc2a0bccf5168a3ebb37bb48752be269a19a7719 Mon Sep 17 00:00:00 2001 From: vponomaryov Date: Sat, 20 Dec 2014 14:48:55 +0200 Subject: [PATCH] Improve tempest share server filtering Make sure that test_share_servers test suite uses share_network with name, because test suite depends on it and it is not set always. Change-Id: I33f06b6b7192ac2f249b90f19a6c5b045ae55c9c --- contrib/tempest/tempest/api/share/admin/test_share_servers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/tempest/tempest/api/share/admin/test_share_servers.py b/contrib/tempest/tempest/api/share/admin/test_share_servers.py index 4279ec0563..8f4ba40247 100644 --- a/contrib/tempest/tempest/api/share/admin/test_share_servers.py +++ b/contrib/tempest/tempest/api/share/admin/test_share_servers.py @@ -37,6 +37,10 @@ class ShareServersAdminTest(base.BaseSharesAdminTest): __, cls.share = cls.create_share() __, cls.share_network = cls.shares_client.get_share_network( cls.shares_client.share_network_id) + if not cls.share_network["name"]: + sn_id = cls.share_network["id"] + __, cls.share_network = cls.shares_client.update_share_network( + sn_id, name="sn_%s" % sn_id) cls.sn_name_and_id = [ cls.share_network["name"], cls.share_network["id"],