예제 #1
0
def delete_bucket_contents():
    """
    Documentation goes here

    """
    i = 0
    for key in s3._get_bucket().get_all_keys():
        i = i + 1
        key.delete()

    logging.critical('Deleted %d objects from S3' % i)
    return i
예제 #2
0
def delete_bucket_contents():
    """
    Documentation goes here

    """
    i = 0
    for key in s3._get_bucket().get_all_keys():
        i = i + 1
        key.delete()
    
    logging.critical('Deleted %d objects from S3' % i)
    return i
예제 #3
0
    def test_create_infra(self):
        from donomo.archive.utils import s3, sqs

        self.assert_(sqs._get_queue() is not None)
        self.assert_(s3._get_bucket() is not None)