def image_is_synchronized_in_target_region(context, image_name, region): """Check that the given image has been synchronized in the target node""" assert_that(context.glancesync_result, is_not(None), "Problem when executing Sync command") glancesync_assertions.image_is_synchronized_assertion(context.glancesync_result, region, image_name)
def image_is_synchronized_in_target_region(context, image_name, region): """Check that the given image has been synchronized in the target node""" assert_that(context.glancesync_result, is_not(None), "Problem when executing Sync command") glancesync_assertions.image_is_synchronized_assertion( context.glancesync_result, region, image_name)
def image_is_synchronized(context, image_name): """Check that the given image has been synchronized""" 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_synchronized_assertion(context.glancesync_result, region, image_name)
def image_is_synchronized(context, image_name): """Check that the given image has been synchronized""" 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_synchronized_assertion( context.glancesync_result, region, image_name)
def image_is_synchronized_parallel(context, image_name): """ Step: Check that the image has been synchronized in the parallel process. """ if not context.output_file_list: file_created_output_logger(context) 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_synchronized_assertion(file_content, region, image_name)
def image_is_synchronized_parallel(context, image_name): """ Step: Check that the image has been synchronized in the parallel process. """ if not context.output_file_list: file_created_output_logger(context) 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_synchronized_assertion( file_content, region, image_name)