Fix secretsmanager random password wrong length (#3213)
* Enhance function get_parameter by parameter name, version or labels * Fix random password with exclude characters return wrong length
This commit is contained in:
parent
252d679b27
commit
061c609a8f
2 changed files with 3 additions and 1 deletions
|
|
@ -338,6 +338,7 @@ def test_get_random_exclude_characters_and_symbols():
|
|||
PasswordLength=20, ExcludeCharacters="xyzDje@?!."
|
||||
)
|
||||
assert any(c in "xyzDje@?!." for c in random_password["RandomPassword"]) == False
|
||||
assert len(random_password["RandomPassword"]) == 20
|
||||
|
||||
|
||||
@mock_secretsmanager
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue