~ubuntu-branches/ubuntu/wily/heat/wily

« back to all changes in this revision

Viewing changes to heat_integrationtests/functional/test_aws_stack.py

  • Committer: Package Import Robot
  • Author(s): Corey Bryant, Corey Bryant, James Page
  • Date: 2015-07-07 17:06:19 UTC
  • mfrom: (1.1.26) (45.1.1 vivid-proposed)
  • Revision ID: package-import@ubuntu.com-20150707170619-hra2dbjpfofpou4s
Tags: 1:5.0.0~b1-0ubuntu1
[ Corey Bryant ]
* New upstream milestone for OpenStack Liberty:
  - d/control: Align (build-)depends with upstream.
  - d/p/fix-requirements.patch: Rebased.
  - d/p/sudoers_patch.patch: Rebased.

[ James Page ]
* d/s/options: Ignore any removal of egg-info data during package clean.
* d/control: Drop MySQL and PostgreSQL related BD's, not required for unit
  testing.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
import hashlib
14
14
import json
15
15
import random
16
 
import urlparse
17
16
 
18
17
from oslo_log import log as logging
 
18
from six.moves.urllib import parse
19
19
from swiftclient import utils as swiftclient_utils
20
20
import yaml
21
21
 
103
103
        timeout = self.conf.build_timeout * 10
104
104
        tempurl = swiftclient_utils.generate_temp_url(path, timeout,
105
105
                                                      key, 'GET')
106
 
        sw_url = urlparse.urlparse(oc.url)
 
106
        sw_url = parse.urlparse(oc.url)
107
107
        return '%s://%s%s' % (sw_url.scheme, sw_url.netloc, tempurl)
108
108
 
109
109
    def test_nested_stack_create(self):
203
203
        url = self.publish_template(self.nested_name, self.nested_template)
204
204
        self.template = self.test_template.replace('the.yaml', url)
205
205
        stack_identifier = self.stack_create(template=self.template)
206
 
 
207
 
        self.client.actions.suspend(stack_id=stack_identifier)
208
 
        self._wait_for_resource_status(
209
 
            stack_identifier, 'the_nested', 'SUSPEND_COMPLETE')
210
 
 
211
 
        self.client.actions.resume(stack_id=stack_identifier)
212
 
        self._wait_for_resource_status(
213
 
            stack_identifier, 'the_nested', 'RESUME_COMPLETE')
 
206
        self.stack_suspend(stack_identifier)
 
207
        self.stack_resume(stack_identifier)