Browse Source

Fix share endpoint discovery

Share's endpoints are versioned so we have to call
no_port_cut_url method for properly parsing the endpoint.

Change-Id: I54855f44e87a46a72da704413b1b78857858c9a7
changes/57/781857/1
Martin Kopec 1 year ago
parent
commit
bd97ede0a5
  1. 6
      config_tempest/services/share.py

6
config_tempest/services/share.py

@ -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:

Loading…
Cancel
Save