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

MySQL encrypt test #2191

Closed
6 tasks done
codefairy08 opened this issue Apr 11, 2019 · 0 comments
Closed
6 tasks done

MySQL encrypt test #2191

codefairy08 opened this issue Apr 11, 2019 · 0 comments
Assignees
Milestone

Comments

@codefairy08
Copy link
Contributor

codefairy08 commented Apr 11, 2019

This issue is for encrypt parsing test. when using EncryptDataSource for encryption,
it needs SQL parser doing something for encryption, SQL parser need genereate EncryptColumnToken and encrypt Conditions.the test just check both of them which are expected.
The following is the specific design:

  • add encrypt-rule-for-parser.yaml for test, take column 'name' and ‘mobile’ of table 't_encrypt' as encrypt column

  • add test case SQL, ex: select.xml for select test, it need test select,insert,update,delete statement, so it need four files for sql case test.

  • add expected result for test case sql, it also need four files.

  • add EncryptColumnTokenAssert check EncryptColumnToken in DMLStatement

  • add check for encrypt Conditions

  • add unit test

@codefairy08 codefairy08 self-assigned this Apr 11, 2019
codefairy08 added a commit to codefairy08/incubator-shardingsphere that referenced this issue Apr 19, 2019
codefairy08 added a commit to codefairy08/incubator-shardingsphere that referenced this issue Apr 19, 2019
@codefairy08 codefairy08 reopened this Apr 23, 2019
codefairy08 added a commit to codefairy08/incubator-shardingsphere that referenced this issue Apr 26, 2019
@terrymanu terrymanu added this to the 4.0.0.M2 milestone Apr 26, 2019
terrymanu added a commit that referenced this issue May 13, 2019
codefairy08 added a commit to codefairy08/incubator-shardingsphere that referenced this issue May 13, 2019
terrymanu added a commit that referenced this issue May 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants