summaryrefslogtreecommitdiff
path: root/tempest/api
diff options
context:
space:
mode:
authorravikumar-venkatesan <ravikumar.venkatesan@hp.com>2015-02-18 11:31:38 +0000
committerravikumar-venkatesan <ravikumar.venkatesan@hp.com>2015-03-12 05:59:57 +0000
commitec4d497551eaf23e0bea2c8689d25e77123644bc (patch)
tree0b761c43ae36f58e033b9d31ee54e43a3ff18847 /tempest/api
parentdf5c744450e533e2b9516ece2b6ec52291eca82c (diff)
downloadtempest-ec4d497551eaf23e0bea2c8689d25e77123644bc.tar.gz
Testcase to create domain without description
This submission adds "test_create_domain_without_description" testcase to test_domains.py. Change-Id: I3ab22f6dc9505a7e2e65d40af30cec7276efba31
Diffstat (limited to 'tempest/api')
-rw-r--r--tempest/api/identity/admin/v3/test_domains.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tempest/api/identity/admin/v3/test_domains.py b/tempest/api/identity/admin/v3/test_domains.py
index 1f6e6513a..2ae687c40 100644
--- a/tempest/api/identity/admin/v3/test_domains.py
+++ b/tempest/api/identity/admin/v3/test_domains.py
@@ -96,3 +96,15 @@ class DomainsTestJSON(base.BaseIdentityV3AdminTest):
self.assertEqual(d_name, domain['name'])
self.assertFalse(domain['enabled'])
self.assertEqual(d_desc, domain['description'])
+
+ @test.attr(type='smoke')
+ @test.idempotent_id('2abf8764-309a-4fa9-bc58-201b799817ad')
+ def test_create_domain_without_description(self):
+ # Create domain only with name
+ d_name = data_utils.rand_name('domain-')
+ domain = self.client.create_domain(d_name)
+ self.addCleanup(self._delete_domain, domain['id'])
+ self.assertIn('id', domain)
+ expected_data = {'name': d_name, 'enabled': True}
+ self.assertIsNone(domain['description'])
+ self.assertDictContainsSubset(expected_data, domain)