def image_is_replaced(context, image_name):

    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.image_is_replaced_assertion(context.glancesync_result, region, image_name)
Example #2
0
def image_is_replaced(context, image_name):

    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.image_is_replaced_assertion(
                context.glancesync_result, region, image_name)
Example #3
0
def image_is_replaced_parallel(context, image_name):
    """
    Step: Warning messages are printed in logs, result of the parallel process execution: Conflict - Replace
    """
    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.image_is_replaced_assertion(file_content, region, image_name)
Example #4
0
def image_is_replaced_parallel(context, image_name):
    """
    Step: Warning messages are printed in logs, result of the parallel process execution: Conflict - Replace
    """
    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.image_is_replaced_assertion(
                file_content, region, image_name)