From e8d34efc671b7dff133bd32bd2fe65aab4737ef2 Mon Sep 17 00:00:00 2001 From: Anton Kolesnyk <41349689+antkmsft@users.noreply.github.com> Date: Tue, 8 Apr 2025 11:55:11 -0700 Subject: [PATCH] Update Identity live test (#6516) * Update Identity live test * Clang-format --------- Co-authored-by: Anton Kolesnyk --- .../test/ut/azure_pipelines_credential_test.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp b/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp index 9059189c0..6c3fc0c83 100644 --- a/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp +++ b/sdk/identity/azure-identity/test/ut/azure_pipelines_credential_test.cpp @@ -712,7 +712,10 @@ TEST(AzurePipelinesCredential, InvalidClientId_LIVEONLY_) catch (AuthenticationException const& ex) { EXPECT_TRUE(std::string(ex.what()).find("400 Bad Request") != std::string::npos) << ex.what(); - EXPECT_TRUE(std::string(ex.what()).find("AADSTS700016") != std::string::npos) << ex.what(); + EXPECT_TRUE( + std::string(ex.what()).find("AADSTS700016") != std::string::npos + || std::string(ex.what()).find("AADSTS53003") != std::string::npos) + << ex.what(); } }