Exemple #1
0
def resource_manager_v1_test_python_path(*args):
    path = [path_utils.resource_manager_v1_path()]
    path.extend(
        path_utils.resolve_imports(
            path_utils.gem_common_code_path('CloudGemFramework',
                                            gem_version_directory='v1'),
            path_utils.resource_manager_v1_path()))
    path.append(path_utils.resource_manager_v1_lib_path())
    path.append(path_utils.python_aws_sdk_path())
    path.append(path_utils.resource_manager_v1_test_path())
    path.extend(args)
    return path
Exemple #2
0
def integration_test_python_path(*args):
    path = [
        path_utils.python_aws_sdk_path(),
        path_utils.resource_manager_v1_path(),
        path_utils.resource_manager_v1_lib_path(),
        path_utils.resource_manager_v1_test_path()
    ]
    if args:
        path.extend(args)
    return path
    path.extend(args)
    path.append(path_utils.python_aws_sdk_path())
    return path

GROUP_EXCLUSIVE = -1

unit_test_suites = {

    'CloudGemFramework ResourceManager': {
        'group': GROUP_EXCLUSIVE,
        'environment': {
            'PYTHONPATH': resource_manager_v1_test_python_path(),
            'LYMETRICS': 'TEST'
        },
        'command': python_unittest_command( 
            top_level_directory_path = path_utils.resource_manager_v1_path(), 
            search_start_directory_path = path_utils.resource_manager_v1_test_path(), 
            pattern='test_unit_lmbr_aws.py' 
        )
    },

    'CloudGemFramework ResourceManager CommonCodeImport': {
        'group': 1,
        'environment': {
            'PYTHONPATH': resource_manager_v1_test_python_path(
                 path_utils.gem_common_code_path('CloudGemFramework', 'Utils', gem_version_directory='v1'))
        },
        'command': python_unittest_command(
            top_level_directory_path = path_utils.resource_manager_v1_path(),
            search_start_directory_path = path_utils.resource_manager_v1_test_path(),
            pattern='test_unit_common_code_import.py'