def warning_message_checksum_conflict(context, image_name): """Check that warning messages are shown in the result of the GlanceSync execution""" 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.warning_message_checksum_conflict_assertion( context.glancesync_result, region, image_name)
def warning_message_checksum_conflict(context, image_name): """Check that warning messages are shown in the result of the GlanceSync execution""" 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.warning_message_checksum_conflict_assertion( context.glancesync_result, region, image_name )
def warning_message_checksum_conflict_parallel(context, image_name): """ Step: Warning messages are printed in logs, result of the parallel process execution: Conflicts """ 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.warning_message_checksum_conflict_assertion(file_content, region, image_name)
def warning_message_checksum_conflict_parallel(context, image_name): """ Step: Warning messages are printed in logs, result of the parallel process execution: Conflicts """ 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.warning_message_checksum_conflict_assertion( file_content, region, image_name)