Skip to content
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

fix occasionally commented censor's query capture test #304

Merged
merged 2 commits into from
Jan 21, 2019

Conversation

storojs72
Copy link
Contributor

While debugging censor's logging logic I occasionally commented this test. Now its time to restore it. Sorry, my fault

@vixentael
Copy link
Collaborator

looks like this test should be updated a bit 🤔

@storojs72
Copy link
Contributor Author

I've updated it according to last changes in logging logic. Now it's user responsibility to redact query before writing to log, so we should only check if all queries have been written successfully

expected := "{\"raw_query\":\"SELECT Student_ID FROM STUDENT;\",\"_blacklisted_by_web_config\":false}\n" +
"{\"raw_query\":\"SELECT * FROM STUDENT;\",\"_blacklisted_by_web_config\":false}\n" +
"{\"raw_query\":\"SELECT * FROM X;\",\"_blacklisted_by_web_config\":false}\n" +
"{\"raw_query\":\"SELECT * FROM Y;\",\"_blacklisted_by_web_config\":false}\n"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we can drop it because it repeat previous or change "Y" -> "X" to test duplicated

@storojs72 storojs72 merged commit 898ab25 into cossacklabs:master Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants