Inventory api changes
NSXT team modified the query string name Change-Id: I2e894cd30d27ff332aa729b04c3706450ebd61fd
This commit is contained in:
parent
a05156dfb9
commit
1d6b9f27a1
@ -2221,7 +2221,7 @@ class InventoryTestCase(BaseTestResource):
|
||||
self.CONTAINER_CLUSTER,
|
||||
'ContainerApplication')
|
||||
base_url = 'https://1.2.3.4/api/v1/fabric/container-applications'
|
||||
surfix = '?cluster_id=%s' % self.CONTAINER_CLUSTER
|
||||
surfix = '?container_cluster_id=%s' % self.CONTAINER_CLUSTER
|
||||
test_client.assert_json_call(
|
||||
'get', mocked_resource,
|
||||
base_url + surfix,
|
||||
|
@ -772,7 +772,7 @@ class Inventory(utils.NsxLibApiBase):
|
||||
if not resource_type:
|
||||
msg = "null resource type is not supported"
|
||||
raise exceptions.ResourceNotFound(details=msg)
|
||||
request_url = "%s?cluster_id=%s" % (
|
||||
request_url = "%s?container_cluster_id=%s" % (
|
||||
self.get_path(self._get_path_for_resource(resource_type)),
|
||||
cluster_id)
|
||||
return self.client.url_get(request_url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user