def storage_exists(config, task): print('TEST: storage_exists') if object_exists( config, task['auth'], '%s:%s' % (task['storage']['bucket'], task['storage']['file'])): if task.get('delete', False): object_delete( config, task['auth'], '%s:%s' % (task['storage']['bucket'], task['storage']['file'])) test_passed() else: test_failed()
def storage_exists(): if object_exists( project.task['auth'], '%s:%s' % (project.task['storage']['bucket'], project.task['storage']['file'])): if project.task.get('delete', False): object_delete( project.task['auth'], '%s:%s' % (project.task['storage']['bucket'], project.task['storage']['file'])) print('PASSED') else: print('FAILED')
def storage_exists(): if object_exists( project.task['auth'], '%s:%s' % (project.task['storage']['bucket'], project.task['storage']['file'])): if project.task.get('delete', False): object_delete( project.task['auth'], '%s:%s' % (project.task['storage']['bucket'], project.task['storage']['file'])) test_passed() else: test_failed()