:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
test(provisioning): pin OIDC key in confirm-attribution test (#62276)
Phil Haack26d3afa340d2
diff --git a/ee/api/agentic_provisioning/test/test_authorize.py b/ee/api/agentic_provisioning/test/test_authorize.pyindex e6186eb3c9f6..428c45b4f405 100644--- a/ee/api/agentic_provisioning/test/test_authorize.py+++ b/ee/api/agentic_provisioning/test/test_authorize.py@@ -188,6 +188,13 @@ class TestAgenticAuthorizeConfirm(AgenticAuthorizeMultiOrgBase):)assert cache.get(f"{PENDING_AUTH_CACHE_PREFIX}state_consume") is None+ # Creating an RS256 app requires OIDC_RSA_PRIVATE_KEY. The env-level key can be cleared by+ # other OAuth tests overriding OAUTH2_PROVIDER (django-oauth-toolkit caches its settings), so+ # pin it here too.+ @override_settings(+ OIDC_RSA_PRIVATE_KEY=_RSA_KEY,+ OAUTH2_PROVIDER={**settings.OAUTH2_PROVIDER, "OIDC_RSA_PRIVATE_KEY": _RSA_KEY},+ )@patch("ee.api.agentic_provisioning.views._capture_provisioning_event")def test_confirm_success_attributes_partner(self, mock_capture_event):partner = OAuthApplication.objects.create(