MXS-1312: Add tests for permission type rule
The test checks that rules with only optional parts defined work.
This commit is contained in:
parent
26f8f9d869
commit
01b611d895
1
maxscale-system-test/fw2/deny5
Normal file
1
maxscale-system-test/fw2/deny5
Normal file
@ -0,0 +1 @@
|
||||
select 1;
|
1
maxscale-system-test/fw2/pass5
Normal file
1
maxscale-system-test/fw2/pass5
Normal file
@ -0,0 +1 @@
|
||||
create or replace table t1 (id int);
|
2
maxscale-system-test/fw2/rules5
Normal file
2
maxscale-system-test/fw2/rules5
Normal file
@ -0,0 +1,2 @@
|
||||
rule no_selects deny on_queries select
|
||||
users %@% match any rules no_selects
|
@ -65,7 +65,7 @@ int main(int argc, char *argv[])
|
||||
FILE* file;
|
||||
|
||||
sprintf(rules_dir, "%s/fw2/", test_dir);
|
||||
int N = 4;
|
||||
int N = 5;
|
||||
int i;
|
||||
|
||||
for (i = 1; i < N + 1; i++)
|
||||
|
Loading…
x
Reference in New Issue
Block a user