Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-octaveinttest
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
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-octaveinttest
Commits
0c71cdd5
Commit
0c71cdd5
authored
3 years ago
by
Daniel Hornung
Browse files
Options
Downloads
Patches
Plain Diff
WIP: Updated integration tests.
parent
cf0cec4b
No related branches found
No related tags found
1 merge request
!1
Integration tests for minimal functionality
Pipeline
#11331
passed
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/.caosdb_client.json
+28
-0
28 additions, 0 deletions
test/.caosdb_client.json
test/test_caosdb.m
+20
-8
20 additions, 8 deletions
test/test_caosdb.m
with
48 additions
and
8 deletions
test/.caosdb_client.json
0 → 100644
+
28
−
0
View file @
0c71cdd5
{
"connections"
:
{
"default"
:
"local-caosdb"
,
"local-caosdb-admin"
:
{
"host"
:
"localhost"
,
"port"
:
8443
,
"server_certificate_path"
:
"/someplace/caosdb.cert.pem"
,
"authentication"
:
{
"type"
:
"plain"
,
"username"
:
"admin"
,
"password"
:
"caosdb"
}
},
"local-caosdb"
:
{
"host"
:
"localhost"
,
"port"
:
8443
,
"server_certificate_path"
:
"/someplace/caosdb.cert.pem"
,
"authentication"
:
{
"type"
:
"plain"
,
"username"
:
"admin"
,
"password"
:
"caosdb"
}
}
},
"extension"
:
{
"this is my"
:
"special option"
}
}
This diff is collapsed.
Click to expand it.
test/test_caosdb.m
+
20
−
8
View file @
0c71cdd5
function test_suite=test_caosdb
try % assignment of 'localfunctions' is necessary in Matlab >= 2016
test_functions=localfunctions();
catch % no problem; early Matlab versions can use initTestSuite fine
end
initTestSuite;
function
test_suite
=
test_caosdb
()
try
% assignment of 'localfunctions' is necessary in Matlab >= 2016
test_functions
=
localfunctions
();
catch
% no problem; early Matlab versions can use initTestSuite fine
end
initTestSuite
;
end
function test_print_version
caosdb("--test-connection")
function
test_connection
()
% Default connection
c1
=
Caosdb
();
info
=
c1
.
info
();
% another working connection
c2
=
Caosdb
(
connection
=
"local-caosdb-admin"
);
c2
.
info
();
% This connection should fail
c3
=
Caosdb
(
connection
=
"does-not-exist"
);
assertExceptionThrown
(
"c3.info"
,
"16"
);
end
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