Move aws nested stack tests to functional tests
- use swift to post templates to.
- move limit tests to test_stack_resource
Part of blueprint decouple-nested
Change-Id: Id11e86835addc21301b3534a559d1754a802425e
diff --git a/common/clients.py b/common/clients.py
index 965b6ab..5a4dd5a 100644
--- a/common/clients.py
+++ b/common/clients.py
@@ -18,6 +18,7 @@
import keystoneclient.v2_0.client
import neutronclient.v2_0.client
import novaclient.client
+import swiftclient
import logging
@@ -41,6 +42,7 @@
self.compute_client = self._get_compute_client()
self.network_client = self._get_network_client()
self.volume_client = self._get_volume_client()
+ self.object_client = self._get_object_client()
def _get_orchestration_client(self):
region = self.conf.region
@@ -125,3 +127,16 @@
endpoint_type=endpoint_type,
insecure=dscv,
http_log_debug=True)
+
+ def _get_object_client(self):
+ dscv = self.conf.disable_ssl_certificate_validation
+ args = {
+ 'auth_version': '2.0',
+ 'tenant_name': self.conf.tenant_name,
+ 'user': self.conf.username,
+ 'key': self.conf.password,
+ 'authurl': self.conf.auth_url,
+ 'os_options': {'endpoint_type': 'publicURL'},
+ 'insecure': dscv,
+ }
+ return swiftclient.client.Connection(**args)
diff --git a/common/test.py b/common/test.py
index 4c96567..2c09dcb 100644
--- a/common/test.py
+++ b/common/test.py
@@ -85,6 +85,7 @@
self.compute_client = self.manager.compute_client
self.network_client = self.manager.network_client
self.volume_client = self.manager.volume_client
+ self.object_client = self.manager.object_client
self.useFixture(fixtures.FakeLogger(format=_LOG_FORMAT))
def status_timeout(self, things, thing_id, expected_status,