Debian Codegraph @

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

raw
1
2 #
3 # Tests for the performance_schema host_cache.
4 #
5 # Simulate failures from DNS full round trip (FCRDNS):
6 # - IP --> HOST --> IP returns no match
7 # - reported in COUNT_FCRDNS_ERRORS
8
9 --source include/have_debug.inc
10 --source include/have_ipv6.inc
11
12 # [Warning] Hostname 'santa.claus.ipv6.example.com' does not resolve to '2001:db8::6:6'.
13 # [Note] Hostname 'santa.claus.ipv6.example.com' has the following IP addresses:
14 # [Note] - 2001:db8::6:7e
15 # [Note] - 2001:db8::6:7f
16 call mtr.add_suppression("santa.claus.ipv6.example.com");
17
18 # Enforce a clean state
19 --source ../include/wait_for_pfs_thread_count.inc
20 --source ../include/hostcache_set_state.inc
21
22 connect (con1,"::1",root,,test,$MASTER_MYPORT,);
23 select "Con1 is alive";
24 select current_user();
25 disconnect con1;
26
27 --connection default
28 set global debug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6";
29
30 --disable_query_log
31 --error ER_HOST_NOT_PRIVILEGED
32 connect (con2,"::1",root,,test,$MASTER_MYPORT,);
33 --enable_query_log
34
35 --connection default
36 --source ../include/hostcache_dump.inc
37
38 --disable_query_log
39 --error ER_HOST_NOT_PRIVILEGED
40 connect (con3,"::1",root,,test,$MASTER_MYPORT,);
41 --enable_query_log
42
43 --connection default
44 --source ../include/hostcache_dump.inc
45
46 set global debug= default;
47