Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wendelin.core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Kirill Smelkov
wendelin.core
Commits
1cf3b228
Commit
1cf3b228
authored
Oct 16, 2020
by
Kirill Smelkov
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
X zstor_2zurl += NEO
parent
46fda8ad
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
23 additions
and
5 deletions
+23
-5
.nxdtest
.nxdtest
+2
-2
lib/tests/test_zodb.py
lib/tests/test_zodb.py
+2
-2
lib/zodb.py
lib/zodb.py
+19
-1
No files found.
.nxdtest
View file @
1cf3b228
# setup to run tests on Nexedi testing infrastructure.
# https://stack.nexedi.com/test_status
#
storv = ['fs', 'zeo', 'neo'] # storage backends to test against
storv = ['fs', 'zeo'] # XXX reenable zeo and neo
storv = ['fs', 'zeo', 'neo'] # storage backends to test against
#
storv = ['fs', 'zeo'] # XXX reenable zeo and neo
# some bugs are only likely to trigger when there is only 1 or 2 main OS thread(s) in wcfs
# GOMAXPROCS='' means use `nproc`
...
...
lib/tests/test_zodb.py
View file @
1cf3b228
...
...
@@ -354,8 +354,8 @@ def test_zodb_onresync():
# test that zurl does not change from one open to another storage open.
def
test_zurlstable
():
if
not
isinstance
(
testdb
,
(
testing
.
TestDB_FileStorage
,
testing
.
TestDB_ZEO
)):
pytest
.
xfail
(
reason
=
"zstor_2zurl is TODO for
NEO"
)
if
not
isinstance
(
testdb
,
(
testing
.
TestDB_FileStorage
,
testing
.
TestDB_ZEO
,
testing
.
TestDB_NEO
)):
pytest
.
xfail
(
reason
=
"zstor_2zurl is TODO for
%r"
%
testdb
)
zurl0
=
None
for
i
in
range
(
10
):
zstor
=
testdb
.
getZODBStorage
()
...
...
lib/zodb.py
View file @
1cf3b228
...
...
@@ -349,5 +349,23 @@ def zstor_2zurl(zstor):
# TODO ssl
return
u
# TODO NEO support
# NEO
if
ztype
==
"neo.client.Storage.Storage"
:
# neo://<cluster>@<master>
u
=
"neo://"
app
=
zstor
.
app
u
+=
"%s@"
%
app
.
name
masterv
=
app
.
nm
.
getMasterList
()
if
len
(
masterv
)
==
0
:
raise
RuntimeError
(
"%r has empty master list"
%
zstor
)
if
len
(
masterv
)
>
1
:
raise
NotImplementedError
(
"NEO client has multiple configured masters: %r"
%
(
masterv
,))
# XXX masterv -> string
master
=
masterv
[
0
]
host
,
port
=
master
.
getAddress
()
u
+=
"%s:%s"
%
(
host
,
port
)
# TODO ssl
return
u
raise
NotImplementedError
(
"don't know how to extract zurl from %r"
%
zstor
)
Kirill Smelkov
@kirr
mentioned in commit
a05db040
·
Oct 28, 2021
mentioned in commit
a05db040
mentioned in commit a05db0408929b08ab5ecb7c8238711661e303ce0
Toggle commit list
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment