Skip to content
Snippets Groups Projects
Unverified Commit bab831d8 authored by Daniel's avatar Daniel
Browse files

DOC: Requirements and certificate documentation.

parent cc3ce018
No related branches found
No related tags found
1 merge request!2Readme remote server
Pipeline #5423 passed
...@@ -18,12 +18,22 @@ CaosDB project. ...@@ -18,12 +18,22 @@ CaosDB project.
- If you want to run just a single test, you can also select a single test file: - If you want to run just a single test, you can also select a single test file:
`pytest-3 tests/test_issues.py` `pytest-3 tests/test_issues.py`
## Requirements ##
- Running the tests needs `pytest`, obviously, and also the `nose` library:
- `pip3 install pytest nose`
## Run tests agains a remote caosdb server ## Run tests agains a remote caosdb server
* There is a special mark `local_server`, which marks all test which cannot * There is a special mark `local_server`, which marks all test which cannot
pass when the server is not on the host where the test suite is running. pass when the server is not on the host where the test suite is running.
* Start tests with `pytest -m "not local_server"` or * Start tests with `pytest -m "not local_server"` or
`tox -- -m "not local_server"`. `tox -- -m "not local_server"`.
* The remote caosdb server must have a TLS certificate which maches the name given in
`pycaosdb.ini`. If you use the *LinkAhead* distribution of CaosDB, this can be achieved by:
* `linkahead cert_gen -- --hostname <your hostname>`
* `linkahead certs -d <your profile path>/custom/other/cert`
* `linkahead start`
# Further Reading # Further Reading
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment