def __init__(self, name, account = "DEFAULT"): self.api = ObjectStorageAPI(DATABASE_NS, DATABASE_PROXY) self.account = account self.name = name
def setUp(self): super(TestObjectStorageAPI, self).setUp() self.api = ObjectStorageAPI(self.ns, endpoint=self.uri) self.created = list()
def make_client(instance): endpoint = instance.get_endpoint('storage') client = ObjectStorageAPI(session=instance.session, endpoint=endpoint, namespace=instance.namespace) return client