Skip to content

Commit

Permalink
Remove legacy token handling
Browse files Browse the repository at this point in the history
  • Loading branch information
reweeden committed Jan 10, 2025
1 parent b7394ce commit d9e2af9
Show file tree
Hide file tree
Showing 3 changed files with 240 additions and 140 deletions.
20 changes: 20 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging
import os
import textwrap
from pathlib import Path

import boto3
Expand All @@ -26,6 +27,25 @@ def aws_credentials():
os.environ["AWS_DEFAULT_REGION"] = "us-east-1"


@pytest.fixture(scope="session")
def private_key():
"""Used for signing fake JWTs in unit tests"""
return textwrap.dedent(
"""
-----BEGIN PRIVATE KEY-----
MIIBVQIBADANBgkqhkiG9w0BAQEFAASCAT8wggE7AgEAAkEAzXKhtCOkUvA5POUW
ddN8G0wHTQfQg6wp7NXmID8AW0FMU5ZOhAl0l1dGWs9U83C4IA8Hqbpe/XbY8CuT
SOEWUwIDAQABAkAU5/5Wg238Vp+sd69ybAPsDy+LAimQzJszk4yoaWDS6EI1DcBV
npb7lFvGCcnUe57Lm6DhWD1EnDYhD451VrYRAiEA/8z3pXYDBSJoWA79xrsq2cze
4oYwhTWtzueU8+Mlf0kCIQDNm55qR00BUbhBO/tTP2VCC2OQd/v9I+UIcwIL9Wg8
uwIhAOpwUAe1QM9T2Y3bL3sTzxIOUbgKhC2SJNmcJUfgxl0BAiEAq+nbageV9m1q
v3i0qqWON8uoAyqfkshJf2gSJQebkXMCIFUVSih1R6FqkoP2HFOZvJiRQnfO6shL
jrhQOs2SXP05
-----END PRIVATE KEY-----
""",
)


@pytest.fixture(scope="session")
def data_path():
return Path(__file__).parent.joinpath("data").resolve()
Expand Down
Loading

0 comments on commit d9e2af9

Please sign in to comment.