From 7836ae8bc667506cd303042c06b453d2ca89bf10 Mon Sep 17 00:00:00 2001 From: silvacarloss Date: Thu, 24 Sep 2020 00:31:36 +0000 Subject: [PATCH] Fix export location sent to manage share operation Updates the share manage tests to provide the export location path in the `export_path` share manage argument instead of sending a dict with all information regarding specific export location. Change-Id: I826d7dca38387cefe5e3ad1f6c0a47bbd3d31a5f --- manila_tempest_tests/tests/api/admin/test_share_manage.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/manila_tempest_tests/tests/api/admin/test_share_manage.py b/manila_tempest_tests/tests/api/admin/test_share_manage.py index 5cda130f..09bbdb75 100644 --- a/manila_tempest_tests/tests/api/admin/test_share_manage.py +++ b/manila_tempest_tests/tests/api/admin/test_share_manage.py @@ -85,10 +85,14 @@ class ManageNFSShareTest(base.BaseSharesAdminTest): share_ids = [si['share_id'] for si in share_instance_list] self.assertNotIn(share['id'], share_ids) + export_path = share['export_locations'][0] + if utils.is_microversion_ge(version, "2.8"): + export_path = share['export_locations'][0]['path'] + # Manage share manage_params = { 'service_host': share['host'], - 'export_path': share['export_locations'][0], + 'export_path': export_path, 'protocol': share['share_proto'], 'share_type_id': self.st['share_type']['id'], 'name': name,