Ejemplo n.º 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)
Ejemplo n.º 2
0
 def test_find_endpoint_with_default(self):
     service = keystone.find_endpoint(service='never-never-land',
                                      default=None)
     self.assertIsNone(service)
Ejemplo n.º 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)
Ejemplo n.º 4
0
 def test_find_endpoint(self):
     endpoint = keystone.find_endpoint()
     self.assertTrue(endpoint.id)