2
0
mirror of https://github.com/openkmip/pykmip synced 2025-12-30 15:13:38 +00:00

Add Revoke operation support for pie client

This commit is contained in:
Hao Shen
2017-03-31 09:43:49 -07:00
parent e26e0748af
commit 74075d502c
5 changed files with 237 additions and 9 deletions

View File

@@ -50,6 +50,12 @@ class DummyKmipClient(api.KmipClient):
def activate(self, uid):
super(DummyKmipClient, self).activate(uid)
def revoke(self, revocation_reason, uid, revocation_message,
compromise_occurrence_date):
super(DummyKmipClient, self).revoke(
revocation_reason, uid, revocation_message,
compromise_occurrence_date)
def destroy(self, uid):
super(DummyKmipClient, self).destroy(uid)
@@ -127,6 +133,13 @@ class TestKmipClient(testtools.TestCase):
dummy = DummyKmipClient()
dummy.activate('uid')
def test_revoke(self):
"""
Test that the revoke method can be called without error.
"""
dummy = DummyKmipClient()
dummy.revoke('reason', 'uid', 'message', 'date')
def test_destroy(self):
"""
Test that the destroy method can be called without error.