Merge "Fix share endpoint discovery"

This commit is contained in:
Zuul 2021-03-26 09:54:13 +00:00 committed by Gerrit Code Review
commit 233fca29a5

View File

@ -23,6 +23,12 @@ from tempest.lib import exceptions
class ShareService(VersionedService):
def set_versions(self):
url, top_level = self.no_port_cut_url()
body = self.do_get(url, top_level=top_level)
self.versions_body = json.loads(body)
self.versions = self.deserialize_versions(self.versions_body)
def get_share_pools(self, detail=False):
url = self.service_url + '/scheduler-stats/pools'
if detail: