コード例 #1
0
ファイル: run.py プロジェクト: google/starthinker
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()
コード例 #2
0
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')
コード例 #3
0
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()