Exemple #1
0
 def test_find_endpoint_by_url(self):
     url = keystone.list_endpoints()[-1].url
     endpoint = keystone.find_endpoint(url=url)
     self.assertEqual(url, endpoint.url)
Exemple #2
0
 def test_find_endpoint_with_default(self):
     service = keystone.find_endpoint(service='never-never-land',
                                      default=None)
     self.assertIsNone(service)
Exemple #3
0
 def test_find_endpoint_by_service_id(self):
     service = keystone.find_service(name='keystone')
     endpoint = keystone.find_endpoint(service_id=service.id)
     self.assertEqual(endpoint.service_id, service.id)
Exemple #4
0
 def test_find_endpoint(self):
     endpoint = keystone.find_endpoint()
     self.assertTrue(endpoint.id)