orchestration: Add test for resource_registry environment

Adds support for passing files argument to the create/update
calls in the json client, and adds a simple test of defining
a provider resource, which is a user-defined resource type,
mapped via the "resource_registry" section of the environment
file, with the filename looked up by a key in the files map.

Change-Id: I87fd1f2b1cf2c68c22d53891d99c8cd6b6b7c777
Partial-Bug: #1317095
orchestration: add test for untyped provider resources

It's also possible to specify the filename directly in the template
without adding the type alias to resource_registry, then heat looks
up the provider/nested-stack resource in the "files" map passed when
creating the stack.

Change-Id: Idce23021dd4ddcedef61ffdd39d6abb16885e1be
Partial-Bug: #1317095
Add hacking import exception for service clients

This commit adds import exceptions to the service client imports.
The service clients are imported at the class level and it would be
a major effort to change this. However, we want to be enforcing H302
everywhere else. This commit adds an exception to allow importing the
service clients as classes.

Change-Id: Ife74539fe04e97740e45325140f407fd7476e1c7
Fix test_create_show_delete_security_group_rule

test_create_show_delete_security_group_rule is validating only
icmp protocol and not tcp/udp protocols. This patch does the
necessary change.

Change-Id: I63b79e5016a718bf3af6e1194a994ec68f6c0c4e
Closes-Bug: #1319176
Enable H302 rule everywhere

This patch enables the use of the H302 hacking rule everywhere. With
one exception of the client class imports in clients.py, this
is intentionally ignored.

Change-Id: Ia0ef5e44a411ccd6e6c12f9cf64427a96e021b47
Fix alt tenant id's issue in BaseV2MemberImageTest

BaseV2MemberImageTest gets alt_tenant_id in the wrong way when tenant
isolation is off. commit 9612e81d142e88782d4faf6a85e81967b5323908
introduced getting the tenant_id from credentials instance. This case
was missed. Fixing this involves completely removing the code that
caused lp#1320079.

Change-Id: Ic8585077b876f70353202f0f47184a18bca8083d
Closes-bug: #1320079
Merge "Fix test_create_show_delete_security_group_rule"
Merge "Add hacking import exception for service clients"
Merge "Enable H302 rule everywhere"
Merge "Fix alt tenant id's issue in BaseV2MemberImageTest"
Merge "orchestration: Add test for resource_registry environment"
Merge "orchestration: add test for untyped provider resources"
Merge branch 'master' of https://github.com/openstack/tempest