Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed tests for Zope Replication Services. #54

Merged
merged 1 commit into from
May 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions news/52.tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Removed tests for Zope Replication Services.
The recipe support should still work, but the tests are broken.
Note that the `zc.zrs` project is currently unmaintained, so if you rely on this, please step up.
See `issue 52 <https://github.com/plone/plone.recipe.zeoserver/issues/52>`_.
[maurits]
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@
"Framework :: Buildout",
"Framework :: Plone",
"Framework :: Plone :: 6.0",
"Framework :: Plone :: 6.1",
"Framework :: Zope",
"Framework :: Zope :: 5",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: Implementation",
"Programming Language :: Python :: Implementation :: CPython",
],
Expand Down
72 changes: 0 additions & 72 deletions src/plone/recipe/zeoserver/tests/zeoserver.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,78 +82,6 @@ We should have a basic zeo.conf::
<BLANKLINE>


Zope Replication Services
=========================

Now, let's create a simple buildout to create a primary replication::

>>> primaryzrs = '''
... [buildout]
... parts = zeo
... find-links = %(sample_buildout)s/eggs
...
... [zeo]
... recipe = plone.recipe.zeoserver[zrs]
... replicate-to = 127.0.0.1:5000
... ''' % globals()
>>> write('buildout.cfg', primaryzrs)
>>> print(system(join('bin', 'buildout')))
...
Uninstalling zeo.
Installing zeo.
...

We should have primary zrs config in zeo.conf::

>>> zeo = os.path.join(sample_buildout, 'parts', 'zeo')
>>> with open(os.path.join(zeo, 'etc', 'zeo.conf')) as f:
... print(f.read())
%define INSTANCE ...
...
%import zc.zrs
<BLANKLINE>
<zrs 1>
replicate-to 127.0.0.1:5000
...
<filestorage 1>
...
<BLANKLINE>

And for a secondary::

>>> primaryzrs = '''
... [buildout]
... parts = zeo
... find-links = %(sample_buildout)s/eggs
...
... [zeo]
... recipe = plone.recipe.zeoserver[zrs]
... replicate-from = 127.0.0.1:5000
... ''' % globals()
>>> write('buildout.cfg', primaryzrs)
>>> print(system(join('bin', 'buildout')))
...
Uninstalling zeo.
Installing zeo.
...

We should have primary zrs config in zeo.conf::

>>> zeo = os.path.join(sample_buildout, 'parts', 'zeo')
>>> with open(os.path.join(zeo, 'etc', 'zeo.conf')) as f:
... print(f.read())
%define INSTANCE ...
...
%import zc.zrs
<BLANKLINE>
<zrs 1>
replicate-from 127.0.0.1:5000
...
<filestorage 1>
...
<BLANKLINE>


Custom Zeo log
==============

Expand Down
Loading