MXS-2457 Add database firewall test
This commit is contained in:
parent
a3cf1d22c0
commit
e9144219f5
2
maxscale-system-test/fw/deny19
Normal file
2
maxscale-system-test/fw/deny19
Normal file
@ -0,0 +1,2 @@
|
||||
SELECT CONCAT(x1) FROM t1;
|
||||
SELECT CONCAT("x1") FROM t1;
|
@ -1,3 +1,4 @@
|
||||
update t1 set x1=1 where fl=0;
|
||||
SELECT x1 FROM t1;
|
||||
select t1.x1 as 'something' from t1 as t1 limit 1;
|
||||
select t1.x1 as 'something' from t1 as t1 limit 1;
|
||||
SELECT "x1" FROM t1;
|
||||
|
6
maxscale-system-test/fw/pass19
Normal file
6
maxscale-system-test/fw/pass19
Normal file
@ -0,0 +1,6 @@
|
||||
DROP TABLE IF EXISTS t1;
|
||||
CREATE TABLE t1 (x1 TEXT, x2 TEXT);
|
||||
select sleep(5);
|
||||
SELECT x1 FROM t1;
|
||||
SELECT x2 FROM t1;
|
||||
SELECT CONCAT(x2) FROM t1;
|
2
maxscale-system-test/fw/rules19
Normal file
2
maxscale-system-test/fw/rules19
Normal file
@ -0,0 +1,2 @@
|
||||
rule test19 match function concat columns x1
|
||||
users %@% match any rules test19
|
@ -44,7 +44,7 @@ int main(int argc, char* argv[])
|
||||
Test->maxscales->access_homedir[0]);
|
||||
|
||||
sprintf(rules_dir, "%s/fw/", test_dir);
|
||||
int N = 18;
|
||||
int N = 19;
|
||||
int i;
|
||||
|
||||
for (i = 1; i < N + 1; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user