diff options
author | Rob Austein <sra@hactrn.net> | 2016-11-14 18:02:07 -0500 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2016-11-14 18:02:07 -0500 |
commit | b448b28f538517556f3d35dee81dbf07d433df60 (patch) | |
tree | 42e9868767e80b2707d559fbcab442030a096e19 /unit-tests.py | |
parent | d6e9917d07ddb0a5f8218fecdcd8bda3a1104912 (diff) |
More API cleanup: remove hal_rpc_pkey_list().
hal_rpc_pkey_list() was a simplistic solution that worked when the
keystore only supported a handful of keys and we needed a quick
temporary solution in time for a workshop. It doesn't handle large
numbers of keys well, and while we could fix that, all of its
functionality is now available via more robust API functions, so
simplifying the API by deleting it seems best.
Since this change required mucking with dispatch vectors yet again, it
converts them to use C99 "designated initializer" syntax.
Diffstat (limited to 'unit-tests.py')
-rw-r--r-- | unit-tests.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/unit-tests.py b/unit-tests.py index 2b2433d..8ae9c74 100644 --- a/unit-tests.py +++ b/unit-tests.py @@ -508,17 +508,6 @@ class TestPKeyList(TestCaseLoggedIn): k.set_attributes(dict((i, a) for i, a in enumerate((str(obj.keytype), str(obj.fn2))))) return uuids - def ks_list(self, flags): - uuids = self.load_keys(flags) - self.assertLessEqual(len(uuids), len(set(hsm.pkey_list(flags = flags)))) - self.assertLessEqual(uuids, set(hsm.pkey_match(flags = flags))) - - def test_ks_list_volatile(self): - self.ks_list(0) - - def test_ks_list_token(self): - self.ks_list(HAL_KEY_FLAG_TOKEN) - def match(self, flags, **kwargs): uuids = kwargs.pop("uuids", None) kwargs.update(flags = flags) |