Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
d99cf84b
Commit
d99cf84b
authored
Sep 26, 2002
by
Guido van Rossum
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Differentiate between read-only storage and read-only server in the
simple read-only tests. (These tests pass.)
parent
9c995c9b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
2 deletions
+17
-2
src/ZEO/tests/testZEO.py
src/ZEO/tests/testZEO.py
+17
-2
No files found.
src/ZEO/tests/testZEO.py
View file @
d99cf84b
...
...
@@ -334,8 +334,8 @@ class ConnectionTests(StorageTestBase.StorageTestBase):
# Stores should fail here
self
.
assertRaises
(
ReadOnlyError
,
self
.
_dostore
)
def
checkReadOnlyS
erver
(
self
):
# Open a read-only client to a read-only
server
; stores fail
def
checkReadOnlyS
torage
(
self
):
# Open a read-only client to a read-only
*storage*
; stores fail
# We don't want the read-write server created by setUp()
self
.
shutdownServer
()
...
...
@@ -349,6 +349,21 @@ class ConnectionTests(StorageTestBase.StorageTestBase):
# Stores should fail here
self
.
assertRaises
(
ReadOnlyError
,
self
.
_dostore
)
def
checkReadOnlyServer
(
self
):
# Open a read-only client to a read-only *server*; stores fail
# We don't want the read-write server created by setUp()
self
.
shutdownServer
()
self
.
_servers
=
[]
self
.
_pids
=
[]
# Start a read-only server
self
.
_startServer
(
create
=
0
,
index
=
0
,
ro_svr
=
1
)
# Start a read-only client
self
.
_storage
=
self
.
openClientStorage
(
read_only
=
1
)
# Stores should fail here
self
.
assertRaises
(
ReadOnlyError
,
self
.
_dostore
)
def
checkReadOnlyFallbackWritable
(
self
):
# Open a fallback client to a read-write server; stores succeed
...
...
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