Debian Codegraph @

mysql-test/suite/perfschema/t/hostcache_ipv6_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/not_embedded.inc
10 --source include/have_debug.inc
11 --source include/check_ipv6.inc
12 --source include/have_perfschema.inc
13 --source include/have_hostname_cache.inc
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,"::1",root,,test,$MASTER_MYPORT,);
20 select "Con1 is alive";
21 select current_user();
22 disconnect con1;
23
24 --connection default
25 SET @saved_dbug = @@GLOBAL.debug_dbug;
26 set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_good_ipv6";
27
28 --disable_query_log
29 --error ER_HOST_NOT_PRIVILEGED
30 connect (con2,"::1",root,,test,$MASTER_MYPORT,);
31 --enable_query_log
32
33 --connection default
34 --source ../include/hostcache_dump.inc
35
36 --disable_query_log
37 --error ER_HOST_NOT_PRIVILEGED
38 connect (con3,"::1",root,,test,$MASTER_MYPORT,);
39 --enable_query_log
40
41 --connection default
42 --source ../include/hostcache_dump.inc
43
44 SET @@GLOBAL.debug_dbug = @saved_dbug;
45