Support --filters option in secretsmanager:ListSecrets (#3173)

* Feature: Support --filters opton in secretsmanager:ListSecrets

* Implement some of the secret filters

* Check listSecrets filters combine with an implicit AND operator

* Test all filter and multi-value filter and multi-word filter

* Fix matcher behavior, restructure code

* Implement remaining listSecrets filter cases

* Linter fixes

* Use contains-in-any-order assertions for test_list_secrets

* Linter fix again

* Attempt Python 2 fix for assert_items_equal

* Remove docstrings from test_list_secrets tests as they make the test reports weird

* Test and handle listSecrets filter with no values
This commit is contained in:
Chris Kilding 2020-07-31 15:31:18 +01:00 committed by GitHub
commit 943ecb7ea7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 378 additions and 58 deletions

View file

@ -57,3 +57,8 @@ class InvalidRequestException(SecretsManagerClientError):
super(InvalidRequestException, self).__init__(
"InvalidRequestException", message
)
class ValidationException(SecretsManagerClientError):
def __init__(self, message):
super(ValidationException, self).__init__("ValidationException", message)