From 81327dffca3bb1ac45fe98459f1d0087a1648a92 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Mon, 24 Jul 2017 10:54:36 +0200 Subject: [PATCH] Masking filter configuration update for tests Masking filter configuration update for tests --- .../masking_mysqltest/masking_rules.json | 15 +++++++++++++++ .../masking/masking_user/masking_rules.json | 19 +++++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/maxscale-system-test/masking/masking_mysqltest/masking_rules.json b/maxscale-system-test/masking/masking_mysqltest/masking_rules.json index d010b5358..ab5a1937f 100644 --- a/maxscale-system-test/masking/masking_mysqltest/masking_rules.json +++ b/maxscale-system-test/masking/masking_mysqltest/masking_rules.json @@ -24,6 +24,21 @@ "value": "012345-ABCD", "fill": "Y" } + }, + { + "obfuscate": { + "column": "d", + } + }, + { + "replace": { + "column": "f", + "match": "(?<=aaa).*(?=-12)|(?<=-12).*" + }, + "with": { + "value": "01234-BCD", + "fill": "X#@" + } } ] } diff --git a/maxscale-system-test/masking/masking_user/masking_rules.json b/maxscale-system-test/masking/masking_user/masking_rules.json index 110fc8f6f..c1523358d 100644 --- a/maxscale-system-test/masking/masking_user/masking_rules.json +++ b/maxscale-system-test/masking/masking_user/masking_rules.json @@ -71,6 +71,25 @@ }, "applies_to" : [ "'skysql'" ], "exempted" : [ "'maxskysql'" ] + }, + { + "obfuscate": { + "column": "i", + }, + "applies_to" : [ "'skysql'" ], + "exempted" : [ "'maxskysql'" ] + }, + { + "replace": { + "column": "l", + "match": "(?<=aaa).*(?=-12)|(?<=-12).*" + }, + "with": { + "value": "01234-BCD", + "fill": "X" + }, + "applies_to" : [ "'skysql'" ], + "exempted" : [ "'maxskysql'" ] } ] }