• Levin Zimmermann's avatar
    zstor_2zurl: Fix ipv6 host for NEO/ZEO + test fix · 06de0637
    Levin Zimmermann authored
    This patch allows using WCFS with a NEO or ZEO storage which is
    reachable by a URL which contains an ipv6 host.
    
    Without this patch the following example doesn't work:
    
    >>> from wendelin.lib.zodb import dbopen
    >>> root = dbopen("neo://cluster-name@[::1]:2051")
    >>> # "abc" points to a ZBigArray
    >>> root["abc"][0]
    
    It doesn't work because the parser missed adding square brackets around
    ipv6 hosts, due to which unparsing the resulting URL resulted in a wrong
    interpretation where a port starts.
    
    This patch furthermore amends 'test_zstor_2zurl' to test ZEO and NEO
    storages with ipv6 hosts.
    
    ---
    
    /reviewed-by @kirr
    /reviewed-on nexedi/wendelin.core!13
    06de0637
Name
Last commit
Last update
3rdparty Loading commit data...
bigarray Loading commit data...
bigfile Loading commit data...
demo Loading commit data...
include/wendelin Loading commit data...
lib Loading commit data...
t Loading commit data...
wcfs Loading commit data...
.gitignore Loading commit data...
.gitmodules Loading commit data...
.nxdtest Loading commit data...
CHANGELOG.rst Loading commit data...
COPYING Loading commit data...
Makefile Loading commit data...
README.rst Loading commit data...
conftest.py Loading commit data...
pyproject.toml Loading commit data...
setup.py Loading commit data...
tox.ini Loading commit data...
wendelin.py Loading commit data...