Identity V3: create_domain() must return a description field

There once was a situation where the `description` field was not
returned if a domain was created without a description. This is
not longer the case so adjust the assertions.

Change-Id: Ie201495b8701eb0977ae3404bcb95cd546336bd6
This commit is contained in:
Jordan Pittier 2017-04-23 12:47:31 +02:00
parent 4f97537a51
commit 9b198e6078

View File

@ -152,11 +152,7 @@ class DomainsTestJSON(base.BaseIdentityV3AdminTest):
self.addCleanup(self._delete_domain, domain['id'])
self.assertIn('id', domain)
expected_data = {'name': d_name, 'enabled': True}
# TODO(gmann): there is bug in keystone liberty version where
# description is not being returned if it is not being passed in
# request. Bug#1649245. Once bug is fixed then we can enable the below
# check.
# self.assertEqual('', domain['description'])
self.assertEqual('', domain['description'])
self.assertDictContainsSubset(expected_data, domain)