diff --git a/heat/api/openstack/v1/stacks.py b/heat/api/openstack/v1/stacks.py index 8dac99d68..8eaa8be26 100644 --- a/heat/api/openstack/v1/stacks.py +++ b/heat/api/openstack/v1/stacks.py @@ -171,6 +171,7 @@ class StackController(object): def _index(self, req, tenant_safe=True): filter_whitelist = { + 'id': 'mixed', 'status': 'mixed', 'name': 'mixed', 'action': 'mixed', diff --git a/heat/tests/test_api_openstack_v1.py b/heat/tests/test_api_openstack_v1.py index ac7811aec..7a26c0cc3 100644 --- a/heat/tests/test_api_openstack_v1.py +++ b/heat/tests/test_api_openstack_v1.py @@ -435,6 +435,7 @@ class StackControllerTest(ControllerTest, common.HeatTestCase): def test_index_whitelist_filter_params(self, mock_call, mock_enforce): self._mock_enforce_setup(mock_enforce, 'index', True) params = { + 'id': 'fake id', 'status': 'fake status', 'name': 'fake name', 'action': 'fake action', @@ -453,7 +454,8 @@ class StackControllerTest(ControllerTest, common.HeatTestCase): self.assertIn('filters', engine_args) filters = engine_args['filters'] - self.assertEqual(6, len(filters)) + self.assertEqual(7, len(filters)) + self.assertIn('id', filters) self.assertIn('status', filters) self.assertIn('name', filters) self.assertIn('action', filters)