def setUp(self): # Ignore warnings based on https://github.com/boto/boto3/issues/454 for now # Needs to be set per tests as its reset between integration tests warnings.filterwarnings(action="ignore", message="unclosed", category=ResourceWarning) self.set_deployment_name(lmbr_aws_test_support.unique_name()) self.set_resource_group_name(lmbr_aws_test_support.unique_name('rg')) self.prepare_test_environment("cloud_gem_framework_test") self.register_for_shared_resources()
def setUp(self): self.set_deployment_name(lmbr_aws_test_support.unique_name()) self.set_resource_group_name(lmbr_aws_test_support.unique_name('icr')) self.prepare_test_environment( "cloud_gem_framework_custom_resource_test")
# import itertools import json import subprocess import os import time import urllib from resource_manager.test import lmbr_aws_test_support from resource_manager.test import base_stack_test from cgf_utils import custom_resource_utils import cgf_service_client import test_constant _LAMBDA_NAME = lmbr_aws_test_support.unique_name("VerTestType") _LAMBDA_FILE_NAME = "VersioningTest" _TEST_TYPE_NAME = lmbr_aws_test_support.unique_name("Custom::CR") _TEST_PHYSICAL_ID = "Foo" _TEST_INSTANCE_A = "TestInstanceA" _TEST_RESOURCE_TYPE = lmbr_aws_test_support.unique_name("TRT") class IntegrationTest_CloudGemFramework_CustomResourceHandlers( base_stack_test.BaseStackTestCase): def __init__(self, *args, **kwargs): super(IntegrationTest_CloudGemFramework_CustomResourceHandlers, self).__init__(*args, **kwargs) self.lambda_code_path = [ "project-code", "lambda-code", _LAMBDA_NAME, "resource_types" ]
def setUp(self): self.set_deployment_name(lmbr_aws_test_support.unique_name()) self.set_resource_group_name(lmbr_aws_test_support.unique_name('sapi')) self.prepare_test_environment("cloud_gem_framework_service_api_test") self.register_for_shared_resources()
def setUp(self): self.set_deployment_name(lmbr_aws_test_support.unique_name()) self.set_resource_group_name(lmbr_aws_test_support.unique_name('rg')) self.prepare_test_environment("cloud_gem_external_resource_test") self.register_for_shared_resources()