The heat_integrationtests.functional.test_os_wait_condition Module

class heat_integrationtests.functional.test_os_wait_condition.OSWaitCondition(*args, **kwargs)[source]

Bases: heat_integrationtests.functional.functional_base.FunctionalTestsBase

setUp()[source]
template = '\nheat_template_version: 2013-05-23\nparameters:\n flavor:\n type: string\n image:\n type: string\n network:\n type: string\n timeout:\n type: number\n default: 60\nresources:\n instance1:\n type: OS::Nova::Server\n properties:\n flavor: {get_param: flavor}\n image: {get_param: image}\n networks:\n - network: {get_param: network}\n user_data_format: RAW\n user_data:\n str_replace:\n template: \'#!/bin/sh\n\n wc_notify --data-binary \'\'{"status": "SUCCESS"}\'\'\n\n # signals with reason\n\n wc_notify --data-binary \'\'{"status": "SUCCESS", "reason":\n "signal2"}\'\'\n\n # signals with data\n\n wc_notify --data-binary \'\'{"status": "SUCCESS", "reason":\n "signal3", "data": "data3"}\'\'\n\n wc_notify --data-binary \'\'{"status": "SUCCESS", "reason":\n "signal4", "data": "data4"}\'\'\n\n # check signals with the same number\n\n wc_notify --data-binary \'\'{"status": "SUCCESS", "id": "5"}\'\'\n\n wc_notify --data-binary \'\'{"status": "SUCCESS", "id": "5"}\'\'\n\n # loop for 20 signals without reasons and data\n\n for i in `seq 1 20`; do wc_notify --data-binary \'\'{"status":\n "SUCCESS"}\'\' & done\n\n wait\n \'\n params:\n wc_notify:\n get_attr: [wait_handle, curl_cli]\n\n wait_condition:\n type: OS::Heat::WaitCondition\n depends_on: instance1\n properties:\n count: 12\n handle: {get_resource: wait_handle}\n timeout: {get_param: timeout}\n\n wait_handle:\n type: OS::Heat::WaitConditionHandle\n\noutputs:\n curl_cli:\n value:\n get_attr: [wait_handle, curl_cli]\n wc_data:\n value:\n get_attr: [wait_condition, data]\n'
test_create_stack_with_multi_signal_waitcondition()[source]