Treat instance like object in _validate_instance_group_policy

The _validate_instance_group_policy method gets passed an
instance object but was treating it like a primitive dict,
so this changes it to use dot notation when accessing
fields on the instance object.

Updates the existing test to pass an instance object.

Part of blueprint compute-manager-objects-juno

Change-Id: Icbe9fa06ad8f1b32a556241ec7b3269b1fcd5cd2
Remove final use of glance_stubs

Removes the final piece of glance_stubs from the image unit tests.

Change-Id: I0db3b6c83edaf91466e85d423ce75b3e75fd3517
Closes-bug: #1293938
Merge "Treat instance like object in _validate_instance_group_policy"
Merge "Remove final use of glance_stubs"