@@ -149,8 +149,16 @@ class TestAgentAppToken(LabBasedTestCase):
149149 """Agent acquires app-only token for Graph using FMI-sourced assertion.
150150
151151 Flow: Blueprint → T1 (assertion callback) → Agent CCA → app token
152+
153+ Disabled in CI: The blueprint app (aab5089d) requires SNI authentication,
154+ but the CI pipeline's PFX-based cert loading does not include intermediate
155+ certs in the x5c chain, causing AADSTS700027. These tests pass locally
156+ where the OS cert store can resolve the chain.
152157 """
153158
159+ @unittest .skipUnless (
160+ os .environ .get ("MSAL_RUN_LOCAL_ONLY_TESTS" ),
161+ "Requires local cert store for SNI — set MSAL_RUN_LOCAL_ONLY_TESTS=1" )
154162 def test_agent_gets_app_token_for_graph (self ):
155163 def assertion_provider (context ):
156164 return _acquire_fmi_credential_for_agent (_AGENT_APP_ID )
@@ -178,8 +186,13 @@ class TestAgentUserIdentity(LabBasedTestCase):
178186 2. Agent uses T1 → T2 (instance token)
179187 3. Agent exchanges T2 via user_fic → user-scoped Graph token
180188 4. Verify token is cached and retrievable via acquire_token_silent
189+
190+ Disabled in CI: see TestAgentAppToken docstring.
181191 """
182192
193+ @unittest .skipUnless (
194+ os .environ .get ("MSAL_RUN_LOCAL_ONLY_TESTS" ),
195+ "Requires local cert store for SNI — set MSAL_RUN_LOCAL_ONLY_TESTS=1" )
183196 def test_agent_user_identity_gets_token_for_graph (self ):
184197 # Get instance token (T2) for user_fic exchange
185198 t2 = _acquire_instance_token_for_agent ()
@@ -221,8 +234,14 @@ def assertion_provider(context):
221234
222235
223236class TestAgentCacheIsolation (LabBasedTestCase ):
224- """App-only and user-scoped tokens are isolated in cache on the same CCA."""
237+ """App-only and user-scoped tokens are isolated in cache on the same CCA.
238+
239+ Disabled in CI: see TestAgentAppToken docstring.
240+ """
225241
242+ @unittest .skipUnless (
243+ os .environ .get ("MSAL_RUN_LOCAL_ONLY_TESTS" ),
244+ "Requires local cert store for SNI — set MSAL_RUN_LOCAL_ONLY_TESTS=1" )
226245 def test_app_and_user_tokens_are_isolated (self ):
227246 def assertion_provider (context ):
228247 return _acquire_fmi_credential_for_agent (_AGENT_APP_ID )
0 commit comments