From 3d89cf1ac8e7a52c5d48c4f9e5d7cbf7068685ae Mon Sep 17 00:00:00 2001 From: Theodore Tsirpanis Date: Mon, 8 Apr 2024 18:02:16 +0300 Subject: [PATCH] Add an additional assert. --- test/src/unit-vfs.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/src/unit-vfs.cc b/test/src/unit-vfs.cc index d374499e899f..d87ba7327f02 100644 --- a/test/src/unit-vfs.cc +++ b/test/src/unit-vfs.cc @@ -809,6 +809,9 @@ TEST_CASE( auto credentials = gcs.make_credentials({}); REQUIRE(credentials != nullptr); + REQUIRE( + std::string(typeid(*credentials).name()) == + typeid(google::cloud::internal::ServiceAccountConfig).name()); // We are using an internal class only for inspection purposes. auto service_account = @@ -839,6 +842,9 @@ TEST_CASE( auto credentials = gcs.make_credentials({}); REQUIRE(credentials != nullptr); + REQUIRE( + std::string(typeid(*credentials).name()) == + typeid(google::cloud::internal::ImpersonateServiceAccountConfig).name()); // We are using an internal class only for inspection purposes. auto impersonate_credentials = @@ -875,6 +881,9 @@ TEST_CASE( auto credentials = gcs.make_credentials({}); REQUIRE(credentials != nullptr); + REQUIRE( + std::string(typeid(*credentials).name()) == + typeid(google::cloud::internal::ExternalAccountConfig).name()); // We are using an internal class only for inspection purposes. auto external_account =