예제 #1
0
 def test_get_cinderclient_with_user_overriden(self):
     self.config(cinder_store_user_name='test_user')
     self.config(cinder_store_password='******')
     self.config(cinder_store_project_name='test_project')
     self.config(cinder_store_auth_address='test_address')
     cc = cinder.get_cinderclient(self.conf, self.context)
     self.assertIsNone(cc.client.auth_token)
     self.assertEqual('test_address', cc.client.management_url)
예제 #2
0
 def test_get_cinderclient_with_user_overriden(self):
     self.config(cinder_store_user_name='test_user')
     self.config(cinder_store_password='******')
     self.config(cinder_store_project_name='test_project')
     self.config(cinder_store_auth_address='test_address')
     cc = cinder.get_cinderclient(self.conf, self.context)
     self.assertIsNone(cc.client.auth_token)
     self.assertEqual('test_address', cc.client.management_url)
예제 #3
0
 def test_get_cinderclient(self):
     cc = cinder.get_cinderclient(self.conf, self.context)
     self.assertEqual('fake_token', cc.client.auth_token)
     self.assertEqual('http://foo/public_url', cc.client.management_url)
예제 #4
0
 def test_get_cinderclient(self):
     cc = cinder.get_cinderclient(self.conf, self.context)
     self.assertEqual('fake_token', cc.client.auth_token)
     self.assertEqual('http://foo/public_url', cc.client.management_url)