[CSM] Minor test modifications (#36564)

Closes #36564

COPYBARA_INTEGRATE_REVIEW=https://github.com/grpc/grpc/pull/36564 from yashykt:MetadataExchangeTestFixes 095bdcdd48
PiperOrigin-RevId: 631917562
pull/36449/head^2
Yash Tibrewal 7 months ago committed by Copybara-Service
parent 28f2315c9f
commit 22e9ce46e0
  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.remote_workload_type")),
"unknown");
EXPECT_EQ(absl::get<std::string>(
attributes.at("csm.remote_workload_canonical_service")),
"unknown");
}
TEST_P(MetadataExchangeTest, VerifyCsmServiceLabels) {
@ -424,6 +427,8 @@ TEST_P(MetadataExchangeTest, VerifyCsmServiceLabels) {
"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) {
Init(std::move(
Options()

Loading…
Cancel
Save