Debian Codegraph @

mysql-test/suite/network_namespace/r/network_namespace.result

raw
1 # restart: --skip-name-resolve --bind-address=127.0.0.1,10.0.2.1/red
2 CREATE USER [email protected];
3 CREATE USER [email protected];
4 CREATE USER [email protected];
5 # Check that client can establish connection to the address 127.0.0.1 from the default network namespace
6 USER()
7 [email protected]
8 # Check that client can establish connection to the address 10.0.2.1 from the network namespace 'red'
9 USER()
10 [email protected]
11 # Check that client can't establish connection to the address 10.0.2.1 from a non-existing network namespace 'green'
12 ERROR: Network namespace error: No such file or directory
13 # Simulate case where the mysql client doesn't have the cap_sys_admin_capability
14 ERROR: Network namespace error: Operation not permitted
15 # Check that connections to the host from clients outside the network namespace error out since
16 # they are visible only through the gateway through which the network namespace connects to the
17 # outer root network namespace.
18 # restart: --skip-name-resolve --bind-address=127.0.0.1,10.0.2.1/red,10.0.1.1/blue
19 # Check that client can establish connection to the address 10.0.2.1 from the network namespace 'red'
20 USER()
21 [email protected]
22 # Check that client can establish connection to the address 10.0.1.1 from the network namespace 'blue'
23 USER()
24 [email protected]
25 # Use network namespaces with admin port
26 # restart: --skip-name-resolve --bind-address=127.0.0.1 --admin-address=10.0.2.1/red --admin-port=ADMIN_PORT
27 GRANT SERVICE_CONNECTION_ADMIN ON *.* TO [email protected];
28 USER()
29 [email protected]
30 # restart: --skip-name-resolve --bind-address=127.0.0.1 --admin-address=10.0.2.1/red --admin-port=ADMIN_PORT --create-admin-listener-thread=true
31 USER()
32 [email protected]
33 REVOKE SERVICE_CONNECTION_ADMIN ON *.* FROM [email protected];
34 # restart:
35 DROP USER [email protected];
36 DROP USER [email protected];
37 DROP USER [email protected];