Skip to content

Commit

Permalink
Fix ShowEncryptRuleExecutorTest (#33198)
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu authored Oct 9, 2024
1 parent 2d10a79 commit fcd9750
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,18 @@
rules:
- !ENCRYPT
tables:
t_user:
t_encrypt:
columns:
username:
user_id:
cipher:
name: username
encryptorName: name_encryptor
name: user_cipher
encryptorName: test
assistedQuery:
name: assisted_username
encryptorName: assisted_encryptor
name: user_assisted
encryptorName: foo_assist_query_encryptor
likeQuery:
name: user_like
encryptorName: foo_like_encryptor
encryptors:
name_encryptor:
type: AES
props:
aes-key-value: 123456abc
digest-algorithm-name: SHA-1
assisted_encryptor:
type: MD5
props:
salt: 123456
test:
type: md5
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@
-->

<distsql-rule-query-executor-test-cases>
<test-case dist-sql="SHOW ENCRYPT RULES"
current-rule-config-yaml-file="cases/show-encrypt-rules-current-config.yaml">
<test-case dist-sql="SHOW ENCRYPT RULES" current-rule-config-yaml-file="cases/show-encrypt-rules-current-config.yaml">
<expected-query-result-rows>
<expected-query-result-row>
t_user|username|username|assisted_username||AES|{"aes-key-value":"123456abc","digest-algorithm-name":"SHA-1"}|MD5|{"salt":123456}||
t_encrypt|user_id|user_cipher|user_assisted|user_like|md5|||||
</expected-query-result-row>
</expected-query-result-rows>
</test-case>
Expand Down

0 comments on commit fcd9750

Please sign in to comment.