aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/client
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-08-25 21:51:07 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-08-25 21:51:07 -0700
commit510a920c753213df46587decb2ec87d2d1101e5d (patch)
tree9a5edb6b9b7ff20f9d9db9102a691af62527587b /test/cpp/client
parentc17fecd224fa2da3d2b0fc27c1236431fc1bf193 (diff)
Credentials cleanup:
- Removing service_accounts credentials. These credentials just have drawbacks compared to service_account_jwt_access credentials, notably in terms for security. - Renaming Google specific credentials with a Google prefix for C and C++. This should be done as well for wrapped languages.
Diffstat (limited to 'test/cpp/client')
-rw-r--r--test/cpp/client/credentials_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/cpp/client/credentials_test.cc b/test/cpp/client/credentials_test.cc
index 6fb24d71e5..18fcffe7cd 100644
--- a/test/cpp/client/credentials_test.cc
+++ b/test/cpp/client/credentials_test.cc
@@ -45,8 +45,8 @@ class CredentialsTest : public ::testing::Test {
protected:
};
-TEST_F(CredentialsTest, InvalidServiceAccountCreds) {
- std::shared_ptr<Credentials> bad1 = ServiceAccountCredentials("", "", 1);
+TEST_F(CredentialsTest, InvalidGoogleRefreshToken) {
+ std::shared_ptr<Credentials> bad1 = GoogleRefreshTokenCredentials("");
EXPECT_EQ(static_cast<Credentials*>(nullptr), bad1.get());
}