Skip to content

Commit e6fc8ef

Browse files
committed
Added/Updated tests\bugs\gh_8066_test.py: Removed check of 'inet' w/o digital suffix - see notes.
1 parent 045cf35 commit e6fc8ef

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

tests/bugs/gh_8066_test.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
NOTES:
1717
[06.05.2024] pzotov
1818
Checked on 6.0.0.344, 5.0.1.1394, 4.0.5.3091.
19+
20+
[08.05.2024] pzotov
21+
Removed check of 'inet' (w/o digital suffix): value in mon$remote_process can be either 'TCPv4' or 'TCPv6'
22+
depending on Control Panel\Network and Internet\Network Connections settings.
23+
Connection to localhost *can* be established using IPv6 even if appropriate item has been disabled in
24+
network interface settings.
25+
In this case 'connect inet://<alias>' causes mon$remote_address = 'TCPv4' - in contrary to 'TCPv6'
26+
when IPv6 is enabled.
1927
"""
2028

2129
import pytest
@@ -35,7 +43,7 @@ def test_1(act: Action, capsys):
3543
checked_dsn_column='checked_dsn_prefix'.upper()
3644
mon_remote_column='mon_remote_protocol'.upper()
3745
try:
38-
protocols_list = [ NetProtocol.INET4, NetProtocol.INET, ]
46+
protocols_list = [ NetProtocol.INET4, ]
3947

4048
if act.platform == 'Windows':
4149
protocols_list.append(NetProtocol.XNET)
@@ -45,7 +53,7 @@ def test_1(act: Action, capsys):
4553
for p in protocols_list:
4654
for k in range(3):
4755
protocol_str = p.name.lower() if k == 0 else p.name.upper() if k==1 else p.name.title()
48-
mon_remote_value = 'TCPv4' if p.name.lower() == 'inet4' else 'TCPv6' if p.name.lower() == 'inet' else p.name.upper()
56+
mon_remote_value = 'TCPv4' if p.name.lower() == 'inet4' else p.name.upper()
4957
dsn = protocol_str + '://' + str(act.db.db_path)
5058
test_sql = f"""
5159
set bail on;

0 commit comments

Comments
 (0)