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
0dd52028
Commit
0dd52028
authored
7 months ago
by
Florian Spreckelsen
Browse files
Options
Downloads
Patches
Plain Diff
TST: Fix profile and config settings
parent
f4861304
Branches
main
Branches containing commit
Tags
v0.0.3
1 merge request
!81
F local inttests
Pipeline
#57027
passed
7 months ago
Stage: info
Stage: setup
Stage: cert
Stage: style
Stage: test
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
README.md
+1
-1
1 addition, 1 deletion
README.md
pylinkahead.ini.template
+15
-13
15 additions, 13 deletions
pylinkahead.ini.template
test_profile/profile.yml
+2
-1
2 additions, 1 deletion
test_profile/profile.yml
with
19 additions
and
15 deletions
.gitignore
+
1
−
0
View file @
0dd52028
...
...
@@ -18,3 +18,4 @@ PyCaosDB*.egg
# user config
pycaosdb.ini
pylinkahead.ini
*~
This diff is collapsed.
Click to expand it.
README.md
+
1
−
1
View file @
0dd52028
...
...
@@ -21,7 +21,7 @@ use for this. Instructions can be found in the official LinkAhead
-
The Linkahead server must have debugging enabled.
-
The database should be empty.
-
The
`resources`
directory should be made visible, e.g., by
symlinking or copying its contents
.
to the server in
symlinking or copying its contents
,
to the server in
`scripting/bin-debug`
.
-
Modify
`pylinkahead.ini.template`
and save it as
`pylinkahead.ini`
, taking care of the following points:
-
Certificates must be valid and be specified in
`pylinkahead.ini`
.
...
...
This diff is collapsed.
Click to expand it.
pylinkahead.ini.template
+
15
−
13
View file @
0dd52028
...
...
@@ -7,13 +7,13 @@
## 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
. Probably the scripting/bin dir in the caosdb-server sources
.
#
test_server_side_scripting.bin_dir.local=/path/to/
scripting/bin
# Location of the scripting bin
debug
dir which is used for the test
#
scripts from the
pyinttest's perspective.
test_server_side_scripting
.
bin_dir
.
local
=/
path
/
to
/
linkahead
-
pyinttests
/
resources
# 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
# Location of the scripting bin
debug
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
-
debug
########## Files paths ##################
## Used by tests of file handling. Specify the path to an existing
...
...
@@ -22,11 +22,11 @@
# Location of the files from the pyinttest (i.e. host) perspective. Probably the local extroot
# path plus `/test_insert_files_in_dir/`.
#
test_files.test_insert_files_in_dir.local=/extroot/test_insert_files_in_dir/
test_files
.
test_insert_files_in_dir
.
local
=/
path
/
to
/
linkahead
-
pyinttests
/
test_profile
/
paths
/
extroot
/
test_insert_files_in_dir
/
# Location of the files from the caosdb server's perspective. Probably with the same last
# component(s) as the local variant (above).
#
test_files.test_insert_files_in_dir.server=/opt/caosdb/mnt/extroot/test_insert_files_in_dir/
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
...
...
@@ -34,19 +34,21 @@
# test_authentication.admin_token_expired = /authtoken/admin_token_expired.txt
# test_authentication.admin_token_3_attempts = /authtoken/admin_token_3_attempts.txt
# Needed for one time-zone test
test_misc
.
test_time_zone
.
time_zone
=
Cuba
## Insert your usual settings here
[
Connection
]
#
url=https://
caosdb-server
:10443/
url
=
https
://
localhost
:
10443
/
## Some integration tests will fail without valid credentials.
#
username=admin
#
password_method=plain
#
password=caosdb
username
=
admin
password_method
=
plain
password
=
caosdb
## 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
cacert
=/
path
/
to
/
cert
.
pem
#debug=0
#ssl_insecure=True
...
...
This diff is collapsed.
Click to expand it.
test_profile/profile.yml
+
2
−
1
View file @
0dd52028
...
...
@@ -45,7 +45,7 @@ default:
# name, which is necessary for running multiple instances
# container_name: "linkahead"
# The time zone for the server
#
timezone: "C
oordinated Universal Time
"
timezone
:
"
C
uba
"
# Network settings.
network
:
...
...
@@ -92,6 +92,7 @@ default:
# tests using this key are allowed to, e.g., clear the
# database.
_CAOSDB_INTEGRATION_TEST_SUITE_KEY
:
"
_CAOSDB_PYINTTEST_SUITE"
TRANSACTION_BENCHMARK_ENABLED
:
"
TRUE"
# HTTPS port of the grpc end-point
# grpc_server_port_https: 8443
...
...
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