Update Identity live test (#6516)

* Update Identity live test

* Clang-format

---------

Co-authored-by: Anton Kolesnyk <antkmsft@users.noreply.github.com>
This commit is contained in:
Anton Kolesnyk 2025-04-08 11:55:11 -07:00 committed by GitHub
parent 170660ff80
commit e8d34efc67
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();
}
}