Fix placement endpoint discovery

Placement's endpoints are not versioned (don't contain /<version>
in the URLs opposite to services such as compute or volume)
and therefore we don't have to call no_port_cut_url or do_get
method *with* top_level set to True whose take care of cutting
the URls after the version (including the version).
python-tempestconf is able to discover the endpoint and as it's
not versioned, we don't need to do any further processing.

Story: 2008679
Task: 41980
Change-Id: Id3c270fa4a0b09c19edf6c0c9dba48a2235d1907
This commit is contained in:
Martin Kopec 2021-03-03 18:47:12 +00:00
parent 61e47a2b13
commit a935d258d5
1 changed files with 1 additions and 6 deletions

View File

@ -13,17 +13,12 @@
# License for the specific language governing permissions and limitations
# under the License.
import json
from config_tempest.services.base import VersionedService
class PlacementService(VersionedService):
def set_versions(self):
url, top_level = self.no_port_cut_url()
body = self.do_get(url, top_level=top_level,
top_level_path='placement')
self.versions_body = json.loads(body)
super(PlacementService, self).set_versions(top_level=False)
def set_default_tempest_options(self, conf):
# set microversions