Skip to content
Snippets Groups Projects
Commit 0c71cdd5 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

WIP: Updated integration tests.

parent cf0cec4b
No related branches found
No related tags found
1 merge request!1Integration tests for minimal functionality
Pipeline #11331 passed
{
"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"
}
}
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment