check content type in JSONRequestDeserializer

Fixed Bug #1187882

Change-Id: I5e8922690af1cb497366c5f09183bbccbc68f5a2
engine : autoscaling refactor Instance list->object logic

Refactor the conversion from instance list to GroupedInstance
objects, so it's not contained by the handle_delete and can be
reused (e.g for suspend)

Change-Id: Iaaf8b7568e06fa50b03348ad3bb61a7da91be127
Ports depend on the subnets in the same network.

Without establishing this implicit dependency, the following
sometimes occurs:
- Ports get assigned to instances without any IP address
- Stack delete fails as ports still exist in subnets.

Fixes bug: #1192371

Change-Id: Ifd892cef4c2eebaea5568afbd320c8865c845d70
Add editor backup files to .gitignore.

Change-Id: I004d10e61c8e192c058a5d1ba5a09f7c676d278b
Merge "engine : autoscaling refactor Instance list->object logic"
autoscaling : Fix issue when scaling to zero instances

As noted in https://review.openstack.org/#/c/34564, we lack
coverage of the scenario when MinSize is 0 and we scale down
to zero instances then try to do a delete.  We do the wrong
thing here, by creating a GroupedInstance object with name '',
and this would also result in an incorrect update to the
LoadBalancer.  Fix is to reset the resource_id to None.

Fixes bug #1195364
Change-Id: Ie3a52badf35f7e660de9a8f38635d2a09463123a
Fixup assert_has_keys.

This test helper had awkward code that didn't support users in
debugging tests, as it didn't report enough information. Additionally
some style issues were present, which I fixed up at the same time.

Fix bug 1195239.

Change-Id: If07e54ae0f2db1152dfea2012ff39b0291955dd7
Merge "Add editor backup files to .gitignore."
Merge "autoscaling : Fix issue when scaling to zero instances"
Add suspend support to InstanceGroup

Change-Id: I46baf7fd17e6701e2ce07f823fff4c8fb4dd3dfe
blueprint: stack-suspend-resume
Merge "Add suspend support to InstanceGroup"
add GET /{tenant_id}/stacks/detail to Heat API

Enables the building of a useful dashboard interface for Heat stacks
without looping through stacks returned from "/{tenant_id}/stacks/"
to fetch the detailed data.

Fixes bug #1191117

Change-Id: I06b1100873de462c69302e43259df13104cad79f
Remove comments from requirements.txt (workaround pbr bug)

Workaround for pbr bug #1191923

Change-Id: I4960216834cf624d8bcf88e7a3e7485cf5ace85f
Fixup handle_create backup restore.

The handle_create did not retrieve the volume_id
correctly and the check_create_complete
needs to handle the restoring-backup status.

Also modify and add support for restoring-backup
status test cases for success and error.
The additional FakeVolumeFromBackup will force
the inital status to be checked by the method
check_create_complete in volume.py.

Fix bug 1195403.

Change-Id: I60bf4f9f90be1058d0fb400aa3778d0448b1a898
engine : remove unnecessary default check_*_complete functions

The default behavior in _do_action is to declare COMPLETE if the
check_$action_complete is not implemented, so these default
functions returning True are not needed.

Change-Id: I2fd1b7da1d39d23abc81e1b9171b053e547b2ec6
engine : simplify resource state check

Simplify the test to check the resource is in a COMPLETE state
(other than DELETE_COMPLETE), so we don't have to update this for
every new action state which gets added

Change-Id: I91286d3d0464b1a71dafd01ac209ea7ded259875
install "_" via gettextutils

avoid using two separate sets of translation messages when
HEAT_LOCALEDIR environment variable presents.

Fixes bug #1196184

Change-Id: Ief773b9f2674909de461e2b07f1b07d3c66521cc
test_flavors passing.
9/21 tests passing.
19/21 tests passing.