amoghrajesh commented on code in PR #62696:
URL: https://github.com/apache/airflow/pull/62696#discussion_r2923268912
##########
airflow-core/tests/integration/otel/test_otel.py:
##########
@@ -209,6 +209,11 @@ def setup_class(cls):
# during scheduler handoff (see
https://github.com/apache/airflow/issues/61070).
wait_for_otel_collector(otel_host, otel_port)
+ # The pytest plugin strips AIRFLOW__*__* env vars (including the JWT
secret set
+ # by Breeze). Both the scheduler and api-server subprocesses must
share the same
+ # secret; otherwise each generates its own random key and token
verification fails.
+ os.environ["AIRFLOW__API_AUTH__JWT_SECRET"] =
"test-secret-key-for-testing"
+ os.environ["AIRFLOW__API_AUTH__JWT_ISSUER"] = "airflow"
Review Comment:
Cool
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]