Skip to content

Commit bf00e8e

Browse files
authored
CPP-968 Fix for AuthenticationTests failures against Cassandra 3.0.x (#544)
1 parent fd4e154 commit bf00e8e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/src/integration/tests/test_auth.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,13 @@ CASSANDRA_INTEGRATION_TEST_F(AuthenticationTests, InvalidEmptyCredentials) {
111111
logger_.add_critera("Key may not be empty");
112112
logger_.add_critera("Password must not be null");
113113

114+
// CPP-968
115+
//
116+
// Ordering actually changes between Cassandra 3.0.x and 3.11.x. In 3.0.x we check for an empty
117+
// username first (and thus return this error) while in 3.11.x we check for an empty password first
118+
// (and thus return the "password must not be null" error above).
119+
logger_.add_critera("Authentication ID must not be null");
120+
114121
// Iterate over all known/supported protocol versions
115122
for (int i = CASS_LOWEST_SUPPORTED_PROTOCOL_VERSION; i <= CASS_HIGHEST_SUPPORTED_PROTOCOL_VERSION;
116123
++i) {

0 commit comments

Comments
 (0)