Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-pylib
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-pylib
Compare revisions
3a76adea65fa10b690e01d5df0de9bb26b05e67b to 694f981cde86e71f4fb6c478615642f4d16bab0e
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
caosdb/src/caosdb-pylib
Select target project
No results found
694f981cde86e71f4fb6c478615642f4d16bab0e
Select Git revision
Loading items
Swap
Target
caosdb/src/caosdb-pylib
Select target project
caosdb/src/caosdb-pylib
1 result
3a76adea65fa10b690e01d5df0de9bb26b05e67b
Select Git revision
Loading items
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
unittests/test_configs/pycaosdb4.ini
+4
-0
4 additions, 0 deletions
unittests/test_configs/pycaosdb4.ini
unittests/test_configs/pycaosdb5.ini
+4
-0
4 additions, 0 deletions
unittests/test_configs/pycaosdb5.ini
unittests/test_schema.py
+6
-1
6 additions, 1 deletion
unittests/test_schema.py
with
14 additions
and
1 deletion
unittests/test_configs/pycaosdb4.ini
0 → 100644
View file @
694f981c
[Connection]
url
=
https://localhost:10443/
username
=
admin
password_method
=
input
This diff is collapsed.
Click to expand it.
unittests/test_configs/pycaosdb5.ini
0 → 100644
View file @
694f981c
[Connection]
url
=
https://localhost:10443/
username
=
admin
# No password method: should be "input" by default
This diff is collapsed.
Click to expand it.
unittests/test_schema.py
View file @
694f981c
...
...
@@ -2,7 +2,9 @@
#
# This file is a part of the CaosDB Project.
#
# Copyright (C) 2022 Indiscale GmbH <info@indiscale.com>
# Copyright (C) 2021 Alexander Schlemmer
# Copyright (C) 2022 Daniel Hornung <d.hornung@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
...
...
@@ -31,15 +33,18 @@ from configparser import ConfigParser
def
test_config_files
():
for
fn
in
glob
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
test_configs
"
,
"
*.ini
"
)):
print
(
f
"
Testing
{
fn
}
.
"
)
c
=
ConfigParser
()
c
.
read
(
fn
)
print
(
config_to_yaml
(
c
))
validate_yaml_schema
(
config_to_yaml
(
c
))
def
test_broken_config_files
():
for
fn
in
glob
(
os
.
path
.
join
(
os
.
path
.
dirname
(
__file__
),
"
broken_configs
"
,
"
*.ini
"
)):
print
(
f
n
)
print
(
f
"
Testing
{
fn
}
.
"
)
with
raises
(
ValidationError
):
c
=
ConfigParser
()
c
.
read
(
fn
)
print
(
config_to_yaml
(
c
))
validate_yaml_schema
(
config_to_yaml
(
c
))
This diff is collapsed.
Click to expand it.
Prev
1
2
Next