Fix volume v2 capabilities/scheduler-stats tests to test v2 APIs
Currently capabilities/scheduler-stats tests for volume v2 APIs are making call to v1 API instead of v2. Because api_version is missing in respective service clients. This commit fix the issue by specifying the api_version as v2 on service clients to make API call on v2 endpoints. Closes-Bug: #1667354 Change-Id: I9002c5ef8b4641597561d2b909bf5914ab8d9995
This commit is contained in:
parent
b88c0df7b5
commit
49f99e7ece
|
@ -0,0 +1,7 @@
|
|||
---
|
||||
fixes:
|
||||
- |
|
||||
Fix below volume v2 service clients to make v2 API call: Bug#1667354
|
||||
|
||||
- SchedulerStatsClient
|
||||
- CapabilitiesClient
|
|
@ -19,6 +19,7 @@ from tempest.lib.common import rest_client
|
|||
|
||||
|
||||
class CapabilitiesClient(rest_client.RestClient):
|
||||
api_version = "v2"
|
||||
|
||||
def show_backend_capabilities(self, host):
|
||||
"""Shows capabilities for a storage back end.
|
||||
|
|
|
@ -19,6 +19,7 @@ from tempest.lib.common import rest_client
|
|||
|
||||
|
||||
class SchedulerStatsClient(rest_client.RestClient):
|
||||
api_version = "v2"
|
||||
|
||||
def list_pools(self, detail=False):
|
||||
"""List all the volumes pools (hosts).
|
||||
|
|
Loading…
Reference in New Issue