-
Notifications
You must be signed in to change notification settings - Fork 292
Various integration test fixes #520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
|
||
| // Iterate over all known/supported protocol versions | ||
| logger_.add_critera("Key may not be empty"); | ||
| logger_.add_critera("Password must not be null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated to match the message observed for the default C* version (3.11.6)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe leave the old criteria and add the new one? Then update the logger count check to a > 0? I don't know why this asserts a specific count...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I like that quite a bit better than my initial change. I'll update.
| */ | ||
| Session session = connect_using_credentials(i, "", ""); | ||
| ASSERT_EQ(session.connect_error_code(), CASS_ERROR_LIB_NO_HOSTS_AVAILABLE); | ||
| ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test was reporting this error rather than "no hosts available" and it seems more descriptive anyway
|
|
||
| // Iterate over all known/supported protocol versions | ||
| logger_.add_critera("Key may not be empty"); | ||
| logger_.add_critera("Authentication ID must not be null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above, update to match what's going on with 3.11.6
|
|
||
| // Iterate over all known/supported protocol versions | ||
| logger_.add_critera("and/or password are incorrect"); | ||
| logger_.add_critera("Password must not be null"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above, update to match what's going on with 3.11.6
| */ | ||
| Session session = connect_using_credentials(i, NULL, "pass"); | ||
| ASSERT_EQ(session.connect_error_code(), CASS_ERROR_LIB_NO_HOSTS_AVAILABLE); | ||
| ASSERT_EQ(session.connect_error_code(), CASS_ERROR_SERVER_BAD_CREDENTIALS); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Similar to above, "bad credentials" seems more correct here
mpenick
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
|
Look good locally: |
Fix for AuthenticationTests against default C* version (3.11.6)
No description provided.