diff --git a/.circleci/config_continue.yml b/.circleci/config_continue.yml index 28e5b03d..8294244b 100644 --- a/.circleci/config_continue.yml +++ b/.circleci/config_continue.yml @@ -318,105 +318,105 @@ workflows: parameters: cdi-version: placeholder python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13'] - # - test-backend-sdk-testing: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # matrix: - # parameters: - # cdi-version: placeholder - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # - test-website-fastapi: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # - test-website-flask: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # - test-website-django: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # - test-website-drf-async: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # - test-website-drf-sync: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ - # - test-website-django2x: - # requires: - # - test-dev-tag-as-not-passed - # context: - # - slack-notification - # matrix: - # parameters: - # fdi-version: placeholder - # python-version: ['3.8', '3.13'] - # filters: - # tags: - # only: /dev-v[0-9]+(\.[0-9]+)*/ - # branches: - # only: /test-cicd\/.*/ + - test-backend-sdk-testing: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + matrix: + parameters: + cdi-version: placeholder + fdi-version: placeholder + python-version: ['3.8', '3.13'] + - test-website-fastapi: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + - test-website-flask: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + - test-website-django: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + - test-website-drf-async: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + - test-website-drf-sync: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ + - test-website-django2x: + requires: + - test-dev-tag-as-not-passed + context: + - slack-notification + matrix: + parameters: + fdi-version: placeholder + python-version: ['3.8', '3.13'] + filters: + tags: + only: /dev-v[0-9]+(\.[0-9]+)*/ + branches: + only: /test-cicd\/.*/ - test-authreact-fastapi: requires: - test-dev-tag-as-not-passed @@ -462,13 +462,13 @@ workflows: - test-success: requires: - test-unit - # - test-backend-sdk-testing - # - test-website-fastapi - # - test-website-flask - # - test-website-django - # - test-website-drf-async - # - test-website-drf-sync - # - test-website-django2x + - test-backend-sdk-testing + - test-website-fastapi + - test-website-flask + - test-website-django + - test-website-drf-async + - test-website-drf-sync + - test-website-django2x - test-authreact-fastapi - test-authreact-flask - test-authreact-django diff --git a/tests/auth-react/django3x/mysite/settings.py b/tests/auth-react/django3x/mysite/settings.py index 0ed74339..24241dab 100644 --- a/tests/auth-react/django3x/mysite/settings.py +++ b/tests/auth-react/django3x/mysite/settings.py @@ -73,7 +73,7 @@ "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", "supertokens_python.framework.django.django_middleware.middleware", - "mysite.middleware.response_logging_middleware", + # "mysite.middleware.response_logging_middleware", # Uncomment this for response logging ] ROOT_URLCONF = "mysite.urls" diff --git a/tests/auth-react/fastapi-server/app.py b/tests/auth-react/fastapi-server/app.py index 97de3c9a..cfdaaec1 100644 --- a/tests/auth-react/fastapi-server/app.py +++ b/tests/auth-react/fastapi-server/app.py @@ -174,25 +174,26 @@ os.environ.setdefault("SUPERTOKENS_ENV", "testing") -@app.middleware("http") -async def log_response(request: Request, call_next): # type: ignore - response = await call_next(request) # type: ignore - - try: - body_bytes = b"" - async for chunk in response.body_iterator: # type: ignore - body_bytes += chunk # type: ignore - print(f"Response: {body_bytes.decode('utf-8')}") # type: ignore - response_with_body = Response( - content=body_bytes, - status_code=response.status_code, # type: ignore - headers=response.headers, # type: ignore - media_type=response.media_type, # type: ignore - ) - return response_with_body - except: - pass - return response # type: ignore +# Uncomment the following for response logging +# @app.middleware("http") +# async def log_response(request: Request, call_next): # type: ignore +# response = await call_next(request) # type: ignore + +# try: +# body_bytes = b"" +# async for chunk in response.body_iterator: # type: ignore +# body_bytes += chunk # type: ignore +# print(f"Response: {body_bytes.decode('utf-8')}") # type: ignore +# response_with_body = Response( +# content=body_bytes, +# status_code=response.status_code, # type: ignore +# headers=response.headers, # type: ignore +# media_type=response.media_type, # type: ignore +# ) +# return response_with_body +# except: +# pass +# return response # type: ignore code_store: Dict[str, List[Dict[str, Any]]] = {} diff --git a/tests/auth-react/flask-server/app.py b/tests/auth-react/flask-server/app.py index 7c19d5b6..6c840c9e 100644 --- a/tests/auth-react/flask-server/app.py +++ b/tests/auth-react/flask-server/app.py @@ -1095,10 +1095,11 @@ def make_default_options_response(): ) -@app.after_request -def after_request(response): # type: ignore - print(f"Response: {response.get_data(as_text=True)}") # type: ignore - return response # type: ignore +# Uncomment the following for response logging +# @app.after_request +# def after_request(response): # type: ignore +# print(f"Response: {response.get_data(as_text=True)}") # type: ignore +# return response # type: ignore @app.route("/ping", methods=["GET"]) # type: ignore