Debian Codegraph @

mysql-test/suite/sysschema/t/fn_ps_is_account_enabled.test

raw
1 # Tests for sys schema
2 # Verify the sys.ps_is_account_enabled() function perfoms as expected
3
4 # First test with the default "all enabled" for any random user
5 SELECT sys.ps_is_account_enabled('foo', 'bar');
6
7 # Now remove the wild card entry, and add some specific users to testx
8 DELETE FROM performance_schema.setup_actors;
9
10 INSERT INTO performance_schema.setup_actors VALUES
11 ('test', 'test', '%', 'YES', 'NO');
12
13 # Now the random account should not be enabled
14 SELECT sys.ps_is_account_enabled('foo', 'bar');
15
16 # But the specified one should
17 SELECT sys.ps_is_account_enabled('test', 'test');
18
19 --source ../include/ps_setup_actors_cleanup.inc