Exemplo n.º 1
0
 def _test_version_list(self, endpoint):
     api = utils.FakeAPI(fake_responses, endpoint=endpoint)
     mgr = versions.VersionManager(api)
     api_versions = mgr.list()
     expect = [
         ('GET', 'https://example.com', {}, None),
     ]
     self.assertEqual(expect, api.calls)
     self.assertThat(api_versions, matchers.HasLength(1))
Exemplo n.º 2
0
 def setUp(self):
     super(ServiceManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = services.ServiceManager(self.api)
Exemplo n.º 3
0
 def setUp(self):
     super(RegistryManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = registries.RegistryManager(self.api)
Exemplo n.º 4
0
 def setUp(self):
     super(ImageManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = images.ImageManager(self.api)
 def setUp(self):
     super(ContainerManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = containers.ContainerManager(self.api)
Exemplo n.º 6
0
 def setUp(self):
     super(QuotaManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = quotas.QuotaManager(self.api)
 def setUp(self):
     super(VersionManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = versions.VersionManager(self.api)
Exemplo n.º 8
0
 def setUp(self):
     super(AZManagerTest, self).setUp()
     self.api = utils.FakeAPI(fake_responses)
     self.mgr = az.AvailabilityZoneManager(self.api)