Skip to content

Commit

Permalink
update parameters of static key combinatorics
Browse files Browse the repository at this point in the history
  • Loading branch information
alsugiliazova committed Dec 6, 2024
1 parent 198d123 commit 8a3c109
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions jwt_authentication/tests/static_key/combinatorial_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,11 +232,16 @@ def jwt_authentication_combinatorics(self):
"Ed25519",
]
user_names = [f"user1_{getuid()}", f"user2_{getuid()}"]
token_secrets = ["secret_1", "secret_2"]
validator_secrets = ["secret_1", "secret_2", None]
token_secrets = ["combinatorial_secret_1", "combinatorial_secret_2"]
validator_secrets = ["combinatorial_secret_1", "combinatorial_secret_2", None]
config_static_key_in_base64_values = ["true", "false", None]
static_key_in_base64_values = ["true", "false", None]
expiration_minutes = [5, -5, None]
expiration_minutes = [60 * 5, -5, None]
if self.context.stress:
expiration_minutes = [
-5,
None,
] # since test might take a long time and token can expire

with And("create public and private keys for validators"):
keys = create_key_pairs(algorithms=key_pair_algorithms)
Expand Down

0 comments on commit 8a3c109

Please sign in to comment.