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

System tests #120

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
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
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Welcome to Zocalo's documentation!
workflows
siteconfig
installation
systemtest
contributing
authors
history
Expand Down
29 changes: 29 additions & 0 deletions docs/systemtest.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
============
System Tests
============

Test various parts of the zocalo system. Tests are found via the `zocalo.system_tests`
entry points. ActiveMQ and Dispatcher tests are included by default.

.. code-block::

zocalo.run_system_tests (--debug)

Minimum config required to test:

* `ActiveMQ`
* `Dispatcher`

.. code-block::

storage:
plugin: storage

system_tests:
temp_dir: /tmp/zocalo-test

dispatcher:
ispyb_dcid: 1
expected_beamline: bl

`recipes/test-dispatcher.json` needs to be copied to the local recipe path
1 change: 1 addition & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest-mock
pytest==6.2.5
setuptools==58.2.0
workflows==2.13
junit-xml==1.9
5 changes: 5 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ install_requires =
marshmallow
setuptools
workflows>=2.7
junit_xml
packages = find:
package_dir =
=src
Expand All @@ -44,6 +45,7 @@ console_scripts =
zocalo.service = zocalo.service:start_service
zocalo.shutdown = zocalo.cli.shutdown:run
zocalo.wrap = zocalo.cli.wrap:run
zocalo.run_system_tests = zocalo.cli.system_test:run
libtbx.dispatcher.script =
zocalo.go = zocalo.go
zocalo.queue_drain = zocalo.queue_drain
Expand All @@ -61,6 +63,9 @@ zocalo.configuration.plugins =
jmx = zocalo.configuration.plugin_jmx:JMX
zocalo.wrappers =
dummy = zocalo.wrapper:DummyWrapper
zocalo.system_tests =
activemq = zocalo.system_test.tests.activemq:ActiveMQ
dispatcher = zocalo.system_test.tests.dispatcher:DispatcherService

[options.packages.find]
where = src
Expand Down
Loading