|
|
|
@ -1594,7 +1594,7 @@ TEST_P(SecureEnd2endTest, AuthMetadataPluginKeyFailure) { |
|
|
|
|
|
|
|
|
|
Status s = stub_->Echo(&context, request, &response); |
|
|
|
|
EXPECT_FALSE(s.ok()); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAVAILABLE); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAUTHENTICATED); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_P(SecureEnd2endTest, AuthMetadataPluginValueFailure) { |
|
|
|
@ -1611,7 +1611,7 @@ TEST_P(SecureEnd2endTest, AuthMetadataPluginValueFailure) { |
|
|
|
|
|
|
|
|
|
Status s = stub_->Echo(&context, request, &response); |
|
|
|
|
EXPECT_FALSE(s.ok()); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAVAILABLE); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAUTHENTICATED); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
TEST_P(SecureEnd2endTest, NonBlockingAuthMetadataPluginFailure) { |
|
|
|
@ -1629,7 +1629,7 @@ TEST_P(SecureEnd2endTest, NonBlockingAuthMetadataPluginFailure) { |
|
|
|
|
|
|
|
|
|
Status s = stub_->Echo(&context, request, &response); |
|
|
|
|
EXPECT_FALSE(s.ok()); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAVAILABLE); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAUTHENTICATED); |
|
|
|
|
EXPECT_EQ(s.error_message(), |
|
|
|
|
grpc::string("Getting metadata from plugin failed with error: ") + |
|
|
|
|
kTestCredsPluginErrorMsg); |
|
|
|
@ -1690,7 +1690,7 @@ TEST_P(SecureEnd2endTest, BlockingAuthMetadataPluginFailure) { |
|
|
|
|
|
|
|
|
|
Status s = stub_->Echo(&context, request, &response); |
|
|
|
|
EXPECT_FALSE(s.ok()); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAVAILABLE); |
|
|
|
|
EXPECT_EQ(s.error_code(), StatusCode::UNAUTHENTICATED); |
|
|
|
|
EXPECT_EQ(s.error_message(), |
|
|
|
|
grpc::string("Getting metadata from plugin failed with error: ") + |
|
|
|
|
kTestCredsPluginErrorMsg); |
|
|
|
|