MXS-1312: Add tests for permission type rule

The test checks that rules with only optional parts defined work.
This commit is contained in:
Markus Mäkelä 2017-07-07 16:52:17 +03:00
parent 26f8f9d869
commit 01b611d895
4 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
select 1;

View File

@ -0,0 +1 @@
create or replace table t1 (id int);

View File

@ -0,0 +1,2 @@
rule no_selects deny on_queries select
users %@% match any rules no_selects

View File

@ -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++)