Add 'project_id' field to volume resource
Change-Id: Ib2c739cfd63869f7a78e161c33f962846da9c7c0
This commit is contained in:
		| @@ -21,7 +21,8 @@ class Volume(resource2.Resource): | ||||
|     base_path = "/volumes" | ||||
|     service = block_store_service.BlockStoreService() | ||||
|  | ||||
|     _query_mapping = resource2.QueryParameters('all_tenants', 'name', 'status') | ||||
|     _query_mapping = resource2.QueryParameters('all_tenants', 'name', | ||||
|                                                'status', 'project_id') | ||||
|  | ||||
|     # capabilities | ||||
|     allow_get = True | ||||
|   | ||||
| @@ -69,6 +69,7 @@ class TestVolume(testtools.TestCase): | ||||
|         self.assertDictEqual({"name": "name", | ||||
|                               "status": "status", | ||||
|                               "all_tenants": "all_tenants", | ||||
|                               "project_id": "project_id", | ||||
|                               "limit": "limit", | ||||
|                               "marker": "marker"}, | ||||
|                              sot._query_mapping._mapping) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Joshua Phillips
					Joshua Phillips