Fix masking tests

The masking filter now has a default fill value, so that if a
provided value does not match, then "X" is used.

The tests were modified to use "Y" as an explicitly provided
fill value (to distinguish from the default "X") and the results
were the default fill value would kick in were modified accordingly.
This commit is contained in:
Timofey Turenko
2017-06-26 12:18:48 +02:00
committed by Johan Wikman
parent 90ab2bc106
commit 9737ffe092
5 changed files with 43 additions and 43 deletions

View File

@ -5,15 +5,15 @@ create table masking (a TEXT, b TEXT, c TEXT);
insert into masking values ("blah", "012345-ABC", "012345-ABC");
select * from masking;
a b c
XXXX 012345-ABC XXXXXXXXXX
YYYY XXXXXXXXXX YYYYYYYYYY
delete from masking;
insert into masking values ("blahblah", "221073-01AB", "012345-ABC");
select * from masking;
a b c
XXXXXXXX 012345-ABCD XXXXXXXXXX
YYYYYYYY 012345-ABCD YYYYYYYYYY
delete from masking;
insert into masking values ("221073-01AB", "221073-01AB", "221073-01AB");
select * from masking;
a b c
XXXXXXXXXXX 012345-ABCD 012345-ABCD
YYYYYYYYYYY 012345-ABCD 012345-ABCD
delete from masking;