-
Notifications
You must be signed in to change notification settings - Fork 557
Fixing spelling and minor whitespace issues in tests #1225
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
Thanks @bschoening! Jenkins build kicked off just to confirm there wasn't any regression but based on a quick review of the PR I'm not expecting any. Assuming we get a reasonably clean build this will go in directly. |
We did see some test failures that appear to be related to some of these rename operations. I'll go back through the Jenkins results and see if I can correlate them to changes in this PR later tonight. |
I noticed. The pytest seems to have passed ok, not sure what it means that log scan is failing means and the output for that doesn't seem to be accessible. build:passed |
@bschoening We've got a few known flakey tests that complicate determining what's actually new here but I'm pretty sure it can be isolated to the following tests:
Both the repro runs above were local runs using your Github branch so hopefully you can repro this locally as well. If you hit a snag there let me know. I'm not sure what's going on with the column encryption policy test; it's not clear to me why your changes would've broken that (unless I really missed something). The ClusterTests failures look to just be knock-on effects from your renaming; those at least should be an easy fix. |
@@ -34,7 +36,7 @@ def _recreate_keyspace(self, session): | |||
|
|||
def _create_policy(self, key, iv = None): | |||
cl_policy = AES256ColumnEncryptionPolicy() | |||
col_desc = ColDesc('foo','bar','encrypted') | |||
col_desc = ColDesc('foo', ' bar', 'encrypted') |
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.
@bschoening Went back and looked again and this change is the reason the CLE tests are failing on your branch. The addition of the extra space here means there's no a mismatch between the actual column name and what's specified in the CLE policy which causes the encryption to behave weirdly. Undoing just this one change caused the test to pass for me locally.
self.assertEqual(num_statements, len(results)) | ||
self.assertEqual([(True, [(i,)]) for i in range(num_statements)], results) | ||
|
||
def execute_concurrent_valiate_dict(self, num_statements, results): | ||
def execute_concurrent_validate_dict(self, num_statements, results): |
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.
I missed 4 other places where 'valiate' was a misspelling
…_tuple and rolled back _create_policy() whitespace correction
@bschoening Anything else you wanted to change on this one? I re-ran the Jenkins tests after your last round of commits (basically with the repo at 39e92b7) and we're in a good spot now. I'm ready to merge this whenever you say it's done! |
@absurdfarce it should be ready. I was not able to run the integration tests locally, however. Some failures with ccm not installed or runnable. I have a second PR with spelling fixes for the code (this was just tests), but more conservative in not tackling whitespace or miss spelled method names. |
This PR addresses spelling issues in test code. PyCharm's spell checker was used to flag issues needed correction.