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/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 # [Warning] Hostname 'santa.claus.ipv6.example.com' does not resolve to '2001:db8::6:6'.
16 # [Note] Hostname 'santa.claus.ipv6.example.com' has the following IP addresses:
17 # [Note] - 2001:db8::6:7e
18 # [Note] - 2001:db8::6:7f
19 call mtr.add_suppression("santa.claus.ipv6.example.com");
20
21 # Enforce a clean state
22 --source ../include/wait_for_pfs_thread_count.inc
23 --source ../include/hostcache_set_state.inc
24
25 connect (con1,"::1",root,,test,$MASTER_MYPORT,);
26 select "Con1 is alive";
27 select current_user();
28 disconnect con1;
29
30 --connection default
31 SET @saved_dbug = @@GLOBAL.debug_dbug;
32 set global debug_dbug= "+d,vio_peer_addr_fake_ipv6,getnameinfo_fake_ipv6,getaddrinfo_fake_bad_ipv6";
33
34 --disable_query_log
35 --error ER_HOST_NOT_PRIVILEGED
36 connect (con2,"::1",root,,test,$MASTER_MYPORT,);
37 --enable_query_log
38
39 --connection default
40 --source ../include/hostcache_dump.inc
41
42 --disable_query_log
43 --error ER_HOST_NOT_PRIVILEGED
44 connect (con3,"::1",root,,test,$MASTER_MYPORT,);
45 --enable_query_log
46
47 --connection default
48 --source ../include/hostcache_dump.inc
49
50 SET @@GLOBAL.debug_dbug = @saved_dbug;
51