Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ services:
core:
# Uses `$SUPERTOKENS_CORE_VERSION` when available, else latest
image: supertokens/supertokens-dev-postgresql:${SUPERTOKENS_CORE_VERSION:-master}
entrypoint: [
"/usr/lib/supertokens/jre/bin/java",
"-classpath", "/usr/lib/supertokens/core/*:/usr/lib/supertokens/plugin-interface/*:/usr/lib/supertokens/ee/*",
"io.supertokens.Main", "/usr/lib/supertokens/", "DEV", "test_mode"
]
# entrypoint: [
# "/usr/lib/supertokens/jre/bin/java",
# "-classpath", "/usr/lib/supertokens/core/*:/usr/lib/supertokens/plugin-interface/*:/usr/lib/supertokens/ee/*",
# "io.supertokens.Main", "/usr/lib/supertokens/", "DEV", "test_mode"
# ]
ports:
# Uses `$SUPERTOKENS_CORE_PORT` when available, else 3567 for local port
- ${SUPERTOKENS_CORE_PORT:-3567}:3567
Expand Down
3 changes: 3 additions & 0 deletions tests/sessions/test_jwks.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ async def test_that_jwks_is_fetched_as_expected(caplog: LogCaptureFixture):
JWKSConfig.update(original_jwks_config)


@pytest.mark.skip("Requires core running in DEV + test_mode")
async def test_that_jwks_result_is_refreshed_properly(caplog: LogCaptureFixture):
"""This test verifies that the cache used to store the pointer to the JWKS result is updated properly when the
cache expired and the keys need to be refetched.
Expand Down Expand Up @@ -160,6 +161,7 @@ async def test_that_jwks_result_is_refreshed_properly(caplog: LogCaptureFixture)
JWKSConfig.update(original_jwks_config)


@pytest.mark.skip("Requires core running in DEV + test_mode")
async def test_that_jwks_are_refresh_if_kid_is_unknown(caplog: LogCaptureFixture):
"""This test verifies that the SDK tried to re-fetch the keys from the core if the KID for the access token
does not exist in the cache
Expand Down Expand Up @@ -605,6 +607,7 @@ async def test_session_verification_of_jwt_with_dynamic_signing_key():
assert s_.get_user_id() == "userId"


@pytest.mark.skip("Requires core running in DEV + test_mode")
async def test_that_locking_for_jwks_cache_works(caplog: LogCaptureFixture):
caplog.set_level(logging.DEBUG)
not_returned_from_cache_count = get_log_occurence_count(
Expand Down
Loading