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
abe66811
Verified
Commit
abe66811
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
Update tests
parent
54f5cdf4
No related branches found
No related tags found
No related merge requests found
Pipeline
#16180
failed
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/test_query_retrieve.m
+2
-2
2 additions, 2 deletions
test/test_query_retrieve.m
test/test_transaction.m
+1
-1
1 addition, 1 deletion
test/test_transaction.m
with
3 additions
and
3 deletions
test/test_query_retrieve.m
+
2
−
2
View file @
abe66811
...
@@ -54,8 +54,8 @@ function test_connection()
...
@@ -54,8 +54,8 @@ function test_connection()
assertExceptionThrown
(
@
non_existing_connection
,
"16"
);
assertExceptionThrown
(
@
non_existing_connection
,
"16"
);
end
end
expected_msg
=
...
expected_msg
=
...
strjoin
({
"maox_info:
The ConnectionManager does not know any connection of this name.
"
,
...
strjoin
({
"maox_info:
Either there is no connection of the given name or the given connection has a faulty configuration
"
,
...
"
No
connection named 'does-not-exist'
present
."
},
"\n"
);
"
Error with the
connection named 'does-not-exist'
: The connection 'does-not-exist' has not been defined
."
},
"\n"
);
assertEqual
(
lasterror
()
.
message
,
expected_msg
);
assertEqual
(
lasterror
()
.
message
,
expected_msg
);
end
end
...
...
This diff is collapsed.
Click to expand it.
test/test_transaction.m
+
1
−
1
View file @
abe66811
...
@@ -64,7 +64,7 @@ function test_insert_entity()
...
@@ -64,7 +64,7 @@ function test_insert_entity()
assertFalse
(
inserted
{
1
}
.
has_errors
(),
print_messages
(
inserted
{
1
}
.
get_errors
(),
"error"
));
assertFalse
(
inserted
{
1
}
.
has_errors
(),
print_messages
(
inserted
{
1
}
.
get_errors
(),
"error"
));
assertTrue
(
inserted
{
1
}
.
has_warnings
(),
print_messages
(
inserted
{
1
}
.
get_warnings
(),
"warning"
));
assertTrue
(
inserted
{
1
}
.
has_warnings
(),
print_messages
(
inserted
{
1
}
.
get_warnings
(),
"warning"
));
assertEqual
(
numel
(
inserted
{
1
}
.
get_warnings
()),
1
);
assertEqual
(
numel
(
inserted
{
1
}
.
get_warnings
()),
1
);
assertTrue
(
isequal
(
inserted
{
1
}
.
get_warnings
(){
1
}
.
description
,
"
Enti
ty has no unit."
),
...
assertTrue
(
isequal
(
inserted
{
1
}
.
get_warnings
(){
1
}
.
description
,
"
Proper
ty has no unit."
),
...
inserted
{
1
}
.
get_warnings
(){
1
}
.
description
);
inserted
{
1
}
.
get_warnings
(){
1
}
.
description
);
assertFalse
(
inserted
{
1
}
.
has_infos
(),
print_messages
(
inserted
{
1
}
.
get_infos
(),
"info"
));
assertFalse
(
inserted
{
1
}
.
has_infos
(),
print_messages
(
inserted
{
1
}
.
get_infos
(),
"info"
));
P1_id
=
inserted
{
1
}
.
id
;
P1_id
=
inserted
{
1
}
.
id
;
...
...
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