Example #1
0
 def setUp(self):
     self.fake_endpoint = "http://1.2.3.4:8000"
     self.api = FakeStorageApi("NS", endpoint=self.fake_endpoint)
     self.account = "test"
     self.container = "fake"
     self.headers = {"x-req-id": random_str(32)}
     self.policy = "THREECOPIES"
     self.uri_base = self.fake_endpoint + "/v3.0/NS"
Example #2
0
 def setUp(self):
     self.fake_endpoint = "http://1.2.3.4:8000"
     self.api = FakeStorageApi("NS", endpoint=self.fake_endpoint)
     self.account = "test"
     self.container = "fake"
     reqid = random_str(32)
     self.headers = {REQID_HEADER: reqid}
     self.common_kwargs = {'headers': self.headers, 'reqid': reqid}
     self.policy = "THREECOPIES"
     self.uri_base = self.fake_endpoint + "/v3.0/NS"
 def setUp(self):
     self.fake_endpoint = "http://1.2.3.4:8000"
     self.api = FakeStorageApi("NS", endpoint=self.fake_endpoint)
     self.account = "test_container_client"
     self.container = "fake_container"