Browse Source

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
changes/51/778551/1
Martin Kopec 2 months ago
parent
commit
a935d258d5
1 changed files with 1 additions and 6 deletions
  1. +1
    -6
      config_tempest/services/placement.py

+ 1
- 6
config_tempest/services/placement.py 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


Loading…
Cancel
Save