|
|
@ -266,11 +266,9 @@ TEST(GcpEnvParsingTest, ConfigFileDoesNotExist) { |
|
|
|
|
|
|
|
|
|
|
|
auto config = GcpObservabilityConfig::ReadFromEnv(); |
|
|
|
auto config = GcpObservabilityConfig::ReadFromEnv(); |
|
|
|
|
|
|
|
|
|
|
|
EXPECT_EQ(config.status().code(), |
|
|
|
EXPECT_EQ(config.status().code(), absl::StatusCode::kFailedPrecondition); |
|
|
|
absl::StatusCode::kFailedPrecondition); |
|
|
|
EXPECT_THAT(config.status().message(), ::testing::StartsWith(absl::StrCat( |
|
|
|
EXPECT_THAT( |
|
|
|
"error loading file ", kPath))); |
|
|
|
config.status().message(), |
|
|
|
|
|
|
|
::testing::StartsWith(absl::StrCat("error loading file ", kPath))); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
grpc_core::UnsetEnv("GRPC_GCP_OBSERVABILITY_CONFIG_FILE"); |
|
|
|
grpc_core::UnsetEnv("GRPC_GCP_OBSERVABILITY_CONFIG_FILE"); |
|
|
|
} |
|
|
|
} |
|
|
|