summaryrefslogtreecommitdiffstats
path: root/tests/test_backend_templated.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_backend_templated.py')
-rw-r--r--tests/test_backend_templated.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_backend_templated.py b/tests/test_backend_templated.py
index 735b68b7..819cfd73 100644
--- a/tests/test_backend_templated.py
+++ b/tests/test_backend_templated.py
@@ -15,9 +15,12 @@
# under the License.
import os
+import uuid
+from keystone import exception
from keystone import test
from keystone.catalog.backends import templated as catalog_templated
+from keystone import catalog
import test_backend
import default_fixtures
@@ -50,8 +53,25 @@ class TestTemplatedCatalog(test.TestCase, test_backend.CatalogTests):
super(TestTemplatedCatalog, self).setUp()
self.opt_in_group('catalog', template_file=DEFAULT_CATALOG_TEMPLATES)
self.catalog_api = catalog_templated.TemplatedCatalog()
+ self.catalog_man = catalog.Manager()
self.load_fixtures(default_fixtures)
def test_get_catalog(self):
catalog_ref = self.catalog_api.get_catalog('foo', 'bar')
self.assertDictEqual(catalog_ref, self.DEFAULT_FIXTURE)
+
+ def test_create_endpoint_404(self):
+ self.assertRaises(exception.NotImplemented,
+ self.catalog_api.create_endpoint,
+ uuid.uuid4().hex,
+ {})
+
+ def test_get_endpoint_404(self):
+ self.assertRaises(exception.NotImplemented,
+ self.catalog_api.get_endpoint,
+ uuid.uuid4().hex)
+
+ def test_delete_endpoint_404(self):
+ self.assertRaises(exception.NotImplemented,
+ self.catalog_api.delete_endpoint,
+ uuid.uuid4().hex)