Merge "fix undefined variable"
This commit is contained in:
commit
dfe3d12d28
@ -68,7 +68,7 @@ class Trust(kvs.Base, trust.Driver):
|
||||
try:
|
||||
ref = self.db.get('trust-%s' % trust_id)
|
||||
except exception.NotFound:
|
||||
raise exception.TrustNotFound(token_id=token_id)
|
||||
raise exception.TrustNotFound(trust_id=trust_id)
|
||||
ref['deleted'] = True
|
||||
self.db.set('trust-%s' % trust_id, ref)
|
||||
|
||||
|
@ -2139,6 +2139,12 @@ class TrustTests(object):
|
||||
self.trust_api.delete_trust(trust_id)
|
||||
self.assertIsNone(self.trust_api.get_trust(trust_id))
|
||||
|
||||
def test_delete_trust_not_found(self):
|
||||
trust_id = uuid.uuid4().hex
|
||||
self.assertRaises(exception.TrustNotFound,
|
||||
self.trust_api.delete_trust,
|
||||
trust_id)
|
||||
|
||||
def test_get_trust(self):
|
||||
new_id = uuid.uuid4().hex
|
||||
trust_data = self.create_sample_trust(new_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user