From b448b28f538517556f3d35dee81dbf07d433df60 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 14 Nov 2016 18:02:07 -0500 Subject: 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. --- unit-tests.py | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'unit-tests.py') 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) -- cgit v1.2.3