Skip to content

Commit 974b134

Browse files
committed
A few miscellaneious fixes for auth tests
1 parent d31ce13 commit 974b134

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/src/integration/tests/test_auth.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidEmptyCredentials) {
109109
CHECK_FAILURE;
110110

111111
// Iterate over all known/supported protocol versions
112-
logger_.add_critera("Key may not be empty");
112+
logger_.add_critera("Password must not be null");
113113
for (int i = CASS_LOWEST_SUPPORTED_PROTOCOL_VERSION; i <= CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION;
114114
++i) {
115115
/*
@@ -118,7 +118,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidEmptyCredentials) {
118118
* a simple form. This test serves to characterize what is there presently.
119119
*/
120120
Session session = connect_using_credentials(i, "", "");
121-
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_LIB_NO_HOSTS_AVAILABLE);
121+
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
122122
ASSERT_EQ(logger_.count(), 2u);
123123
logger_.reset_count();
124124
}
@@ -140,7 +140,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidNullUsernameCredentials
140140
CHECK_FAILURE;
141141

142142
// Iterate over all known/supported protocol versions
143-
logger_.add_critera("Key may not be empty");
143+
logger_.add_critera("Authentication ID must not be null");
144144
for (int i = CASS_LOWEST_SUPPORTED_PROTOCOL_VERSION; i <= CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION;
145145
++i) {
146146
/*
@@ -149,7 +149,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidNullUsernameCredentials
149149
* a simple form. This test serves to characterize what is there presently.
150150
*/
151151
Session session = connect_using_credentials(i, NULL, "pass");
152-
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_LIB_NO_HOSTS_AVAILABLE);
152+
ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS);
153153
ASSERT_EQ(logger_.count(), 2u);
154154
logger_.reset_count();
155155
}
@@ -171,7 +171,7 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidNullPasswordCredentials
171171
CHECK_FAILURE;
172172

173173
// Iterate over all known/supported protocol versions
174-
logger_.add_critera("and/or password are incorrect");
174+
logger_.add_critera("Password must not be null");
175175
for (int i = CASS_LOWEST_SUPPORTED_PROTOCOL_VERSION; i <= CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION;
176176
++i) {
177177
/*

0 commit comments

Comments
 (0)