Skip to content

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