Resolve default implementation issue for list_keys
in Provide
#312
Labels
bug
Something isn't working
list_keys
in Provide
#312
For most of the methods on the
Provide
trait we offer a default implementation that generally just returnsPsaErrorNotSupported
. This allows developers of providers to skip the implementation of those methods in particular if they're not supported for their backend or if they haven't done the implementation work yet.However, providing these defaults doesn't always work as expected - the
list_keys
operation, for example, is service-wide so one provider not supporting it would currently break the operation for the whole service.There are two possible solutions:
list_keys
PsaErrorNotSupported
as the returned errorNeither of those really fixes the problem - developers should really implement that functionality at some point and there's no way for us to know if they've done that currently. So I also propose updating the
all_providers::normal::list_keys
test to loop through all providers returned bylist_providers
and to generate a key for each one that supportsgenerate_key
(and maybe tryimport
ifgenerate
isn't supported?). Then we can check that they were all created.The text was updated successfully, but these errors were encountered: