Debian Codegraph @

mysql-test/suite/perfschema/t/hostcache_ipv4_addrinfo_good_deny.test

raw
1
2 #
3 # Tests for the performance_schema host_cache.
4 #
5 # Simulate success from DNS full round trip (FCRDNS):
6 # - IP --> HOST --> IP returns the client IP
7 # - completes host validation in HOST_VALIDATED
8
9 --source include/have_debug.inc
10
11 # [Warning] IP address '192.0.2.4' could not be resolved:
12 # no reverse address mapping.
13 call mtr.add_suppression("192.0.2.4");
14
15 # Enforce a clean state
16 --source ../include/wait_for_pfs_thread_count.inc
17 --source ../include/hostcache_set_state.inc
18
19 connect (con1,"127.0.0.1",root,,test,$MASTER_MYPORT,);
20 select "Con1 is alive";
21 select current_user();
22 disconnect con1;
23
24 --connection default
25 set global debug= "+d,vio_peer_addr_fake_ipv4,getnameinfo_fake_ipv4,getaddrinfo_fake_good_ipv4";
26
27 --disable_query_log
28 --error ER_HOST_NOT_PRIVILEGED
29 connect (con2,"127.0.0.1",root,,test,$MASTER_MYPORT,);
30 --enable_query_log
31
32 --connection default
33 --source ../include/hostcache_dump.inc
34
35 --disable_query_log
36 --error ER_HOST_NOT_PRIVILEGED
37 connect (con3,"127.0.0.1",root,,test,$MASTER_MYPORT,);
38 --enable_query_log
39
40 --connection default
41 --source ../include/hostcache_dump.inc
42
43 set global debug= default;
44