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

Merge 'origin/f-debug-bind-mounts' into f-readme-remote-server

parents 328bda8e 2918c109
No related branches found
No related tags found
1 merge request!2Readme remote server
...@@ -7,11 +7,13 @@ CaosDB project. ...@@ -7,11 +7,13 @@ CaosDB project.
# Getting started # # Getting started #
- To run tests, start up a CaosDB server with (documentation for this can be found elsewhere). - To run tests, start up a CaosDB server with the following properties (documentation for this can
be found elsewhere):
- The CaosDB server must have debugging enabled. - The CaosDB server must have debugging enabled.
- The database should be empty. - The database should be empty.
- Certificates must be valid and be listed in `pycaosdb.ini`. - Modify `pycaosdb.ini.template` and save it as `pycaosdb.ini`, taking care of the following points:
- Modify `pycaosdb.ini.template` accordingly and save it as `pycaosdb.ini`. - Certificates must be valid and be specified in `pycaosdb.ini`.
- Server-side scripting paths must be given, otherwise server-side scripting will be omitted.
- Run the tests with `pytest` or `pytest-3` (depending on your system). - Run the tests with `pytest` or `pytest-3` (depending on your system).
- 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`
......
...@@ -3,14 +3,28 @@ ...@@ -3,14 +3,28 @@
## This sections must exist in addition to the usual section. ## This sections must exist in addition to the usual section.
[IntegrationTests] [IntegrationTests]
########## Server-side scripting ################## ########## Server-side scripting ##################
# test_server_side_scripting.bin_dir.local=/path/to/scripting/bin ## These are used by tests of server side scripting. Both paths have
# test_server_side_scripting.bin_dir.server=/opt/caosdb/git/caosdb-server/scripting/bin ## to point to existing directories in which the CaosDB server has the
## permissions to create and execute scripts.
# location of the scripting bin dir which is used for the test scripts from the
# pyinttest's perspective.
#test_server_side_scripting.bin_dir.local=/path/to/scripting/bin
# location of the scripting bin dir which is used for the test scripts from the
# server's perspective.
#test_server_side_scripting.bin_dir.server=/opt/caosdb/git/caosdb-server/scripting/bin
########## Files ################## ########## Files ##################
# # location of the files from the pyinttest perspective ## Used by tests of file handling. Specify the path to an existing
# test_files.test_insert_files_in_dir.local=/extroot/test_insert_files_in_dir/ ## directory in which file tests are performed, once as seen by the
# # location of the files from the caosdb_servers perspective ## host and once as seen by the server.
# test_files.test_insert_files_in_dir.server=/opt/caosdb/mnt/extroot/test_insert_files_in_dir/
# location of the files from the pyinttest (i.e. host) perspective
#test_files.test_insert_files_in_dir.local=/extroot/test_insert_files_in_dir/
# location of the files from the caosdb server's perspective
#test_files.test_insert_files_in_dir.server=/opt/caosdb/mnt/extroot/test_insert_files_in_dir/
########## Authentication tokens ################## ########## Authentication tokens ##################
# # location of the one-time tokens from the pyinttest's perspective # # location of the one-time tokens from the pyinttest's perspective
...@@ -28,11 +42,10 @@ ...@@ -28,11 +42,10 @@
#password_method=plain #password_method=plain
#password=caosdb #password=caosdb
## Some integration tests will fail without a valid certificate here. ## Provide SSL certificate used by the CaosDB server for all tests to
#cacert=/path/to/cert/caosdb.cert.pem ## run. Some integration tests will fail without a valid certificate here.
#cacert=/etc/ssl/cert.pem #cacert=/path/to/cert.pem
#debug=0 #debug=0
#ssl_insecure=True #ssl_insecure=True
#timeout=500 #timeout=500
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment