Esempio n. 1
0
def no_images_are_sync(context):
    """Check that there aren't synchronized images in the execution of GlanceSync"""

    assert_that(context.glancesync_result, is_not(None), "Problem when executing Sync command")

    for region in context.glance_manager_list:
        if region != context.master_region_name:
            glancesync_assertions.no_images_are_sync_assertion(context.glancesync_result, region)
def no_images_are_sync(context):
    """Check that there aren't synchronized images in the execution of GlanceSync"""

    assert_that(context.glancesync_result, is_not(None),
                "Problem when executing Sync command")

    for region in context.glance_manager_list:
        if region != context.master_region_name:
            glancesync_assertions.no_images_are_sync_assertion(
                context.glancesync_result, region)
Esempio n. 3
0
def no_images_are_sync_parallel(context):
    """
    Step: No images have been synchronized in the parallel process.
    """
    assert_that(context.glancesync_result, is_not(None),
                "Problem when executing Sync command")

    for region in context.glance_manager_list:
        if region != context.master_region_name:
            output_files = [file for file in context.output_file_list if region in file]
            file_content = obtain_out_file_content(context, output_files, region)
            glancesync_assertions.no_images_are_sync_assertion(file_content, region)
Esempio n. 4
0
def no_images_are_sync_parallel(context):
    """
    Step: No images have been synchronized in the parallel process.
    """
    assert_that(context.glancesync_result, is_not(None),
                "Problem when executing Sync command")

    for region in context.glance_manager_list:
        if region != context.master_region_name:
            output_files = [
                file for file in context.output_file_list if region in file
            ]
            file_content = obtain_out_file_content(context, output_files,
                                                   region)
            glancesync_assertions.no_images_are_sync_assertion(
                file_content, region)