Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
CaosDB Python Integration Tests
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
CaosDB Python Integration Tests
Commits
29fca456
Unverified
Commit
29fca456
authored
4 years ago
by
Daniel
Browse files
Options
Downloads
Plain Diff
Merge 'origin/f-debug-bind-mounts' into f-readme-remote-server
parents
328bda8e
2918c109
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!2
Readme remote server
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
README.md
+5
-3
5 additions, 3 deletions
README.md
pycaosdb.ini.template
+23
-10
23 additions, 10 deletions
pycaosdb.ini.template
with
28 additions
and
13 deletions
README.md
+
5
−
3
View file @
29fca456
...
...
@@ -7,11 +7,13 @@ CaosDB project.
# 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 database should be empty.
-
Certificates must be valid and be listed in
`pycaosdb.ini`
.
-
Modify
`pycaosdb.ini.template`
accordingly and save it as
`pycaosdb.ini`
.
-
Modify
`pycaosdb.ini.template`
and save it as
`pycaosdb.ini`
, taking care of the following points:
-
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).
-
If you want to run just a single test, you can also select a single test file:
`pytest-3 tests/test_issues.py`
...
...
This diff is collapsed.
Click to expand it.
pycaosdb.ini.template
+
23
−
10
View file @
29fca456
...
...
@@ -3,14 +3,28 @@
## This sections must exist in addition to the usual section.
[
IntegrationTests
]
########## Server-side scripting ##################
# test_server_side_scripting.bin_dir.local=/path/to/scripting/bin
# test_server_side_scripting.bin_dir.server=/opt/caosdb/git/caosdb-server/scripting/bin
## These are used by tests of server side scripting. Both paths have
## 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 ##################
# # location of the files from the pyinttest perspective
# test_files.test_insert_files_in_dir.local=/extroot/test_insert_files_in_dir/
# # location of the files from the caosdb_servers perspective
# test_files.test_insert_files_in_dir.server=/opt/caosdb/mnt/extroot/test_insert_files_in_dir/
## Used by tests of file handling. Specify the path to an existing
## directory in which file tests are performed, once as seen by the
## host and once as seen by the server.
# 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 ##################
# # location of the one-time tokens from the pyinttest's perspective
...
...
@@ -28,11 +42,10 @@
#password_method=plain
#password=caosdb
##
Some integration tests will fail without a valid certificate here.
#
cacert=/path/to/cert/caosdb.cert.pem
#cacert=/
etc/ssl
/cert.pem
##
Provide SSL certificate used by the CaosDB server for all tests to
#
# run. Some integration tests will fail without a valid certificate here.
#cacert=/
path/to
/cert.pem
#debug=0
#ssl_insecure=True
#timeout=500
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment