25becbcbf4
This adds options to skip scenario and functional tests. You can either skip the complete set of tests or list of specific tests. Following new config options are added: `skip_scenario_tests` - Skip all scenario tests `skip_functional_tests` - Skip all functional tests `skip_functional_test_list` - List of functional tests to skip `skip_scenario_test_list` - List of scenario tests to skip `skip_test_stack_action_list` - List of actions in tests to skip Change-Id: I7a5233f5db1f065ccee5a97408c72203c108a656 Depends-On: I25c5e853f0499b88f2803b077d19e132140908f1
77 lines
2.4 KiB
Python
77 lines
2.4 KiB
Python
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
from heat_integrationtests.functional import functional_base
|
|
|
|
|
|
class ParallelDeploymentsTest(functional_base.FunctionalTestsBase):
|
|
template = '''
|
|
heat_template_version: "2013-05-23"
|
|
parameters:
|
|
flavor:
|
|
type: string
|
|
image:
|
|
type: string
|
|
network:
|
|
type: string
|
|
resources:
|
|
server:
|
|
type: OS::Nova::Server
|
|
properties:
|
|
image: {get_param: image}
|
|
flavor: {get_param: flavor}
|
|
user_data_format: SOFTWARE_CONFIG
|
|
networks: [{network: {get_param: network} }]
|
|
config:
|
|
type: OS::Heat::SoftwareConfig
|
|
properties:
|
|
config: hi!
|
|
dep1:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config: {get_resource: config}
|
|
server: {get_resource: server}
|
|
signal_transport: NO_SIGNAL
|
|
dep2:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config: {get_resource: config}
|
|
server: {get_resource: server}
|
|
signal_transport: NO_SIGNAL
|
|
dep3:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config: {get_resource: config}
|
|
server: {get_resource: server}
|
|
signal_transport: NO_SIGNAL
|
|
dep4:
|
|
type: OS::Heat::SoftwareDeployment
|
|
properties:
|
|
config: {get_resource: config}
|
|
server: {get_resource: server}
|
|
signal_transport: NO_SIGNAL
|
|
'''
|
|
|
|
def setUp(self):
|
|
super(ParallelDeploymentsTest, self).setUp()
|
|
|
|
def test_fail(self):
|
|
parms = {'flavor': self.conf.minimal_instance_type,
|
|
'network': self.conf.fixed_network_name,
|
|
'image': self.conf.minimal_image_ref}
|
|
stack_identifier = self.stack_create(
|
|
parameters=parms,
|
|
template=self.template)
|
|
stack = self.client.stacks.get(stack_identifier)
|
|
server_metadata = self.client.resources.metadata(stack.id, 'server')
|
|
self.assertEqual(4, len(server_metadata['deployments']))
|