[CSM] Minor test modifications

pull/36564/head
Yash Tibrewal 9 months ago
parent 641dbfd4c2
commit 095bdcdd48
  1. 5
      test/cpp/ext/csm/metadata_exchange_test.cc

@ -397,6 +397,9 @@ TEST_P(MetadataExchangeTest, ClientDoesNotSendMetadata) {
EXPECT_EQ(absl::get<std::string>(attributes.at("csm.mesh_id")), "mesh-id"); EXPECT_EQ(absl::get<std::string>(attributes.at("csm.mesh_id")), "mesh-id");
EXPECT_EQ(absl::get<std::string>(attributes.at("csm.remote_workload_type")), EXPECT_EQ(absl::get<std::string>(attributes.at("csm.remote_workload_type")),
"unknown"); "unknown");
EXPECT_EQ(absl::get<std::string>(
attributes.at("csm.remote_workload_canonical_service")),
"unknown");
} }
TEST_P(MetadataExchangeTest, VerifyCsmServiceLabels) { TEST_P(MetadataExchangeTest, VerifyCsmServiceLabels) {
@ -424,6 +427,8 @@ TEST_P(MetadataExchangeTest, VerifyCsmServiceLabels) {
"mynamespace"); "mynamespace");
} }
// Test that metadata exchange works and corresponding service mesh labels are
// received and recorded even if the server sends a trailers-only response.
TEST_P(MetadataExchangeTest, Retries) { TEST_P(MetadataExchangeTest, Retries) {
Init(std::move( Init(std::move(
Options() Options()

Loading…
Cancel
Save