Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
caosdb-cppinttest
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cppinttest
Commits
2d0a9f04
Verified
Commit
2d0a9f04
authored
Mar 25, 2022
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: update tests for next server release
parent
60422be1
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Pipeline
#21635
failed
Apr 12, 2022
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
3
Pipelines
38
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
test/CMakeLists.txt
+1
-1
1 addition, 1 deletion
test/CMakeLists.txt
test/test_connection.cpp
+1
-1
1 addition, 1 deletion
test/test_connection.cpp
test/test_issues.cpp
+1
-2
1 addition, 2 deletions
test/test_issues.cpp
with
3 additions
and
4 deletions
test/CMakeLists.txt
+
1
−
1
View file @
2d0a9f04
...
@@ -85,7 +85,7 @@ if(LINTING)
...
@@ -85,7 +85,7 @@ if(LINTING)
"--header-filter=caosdb/.*[^
\(
\.pb\.h
\)
]$"
"--header-filter=caosdb/.*[^
\(
\.pb\.h
\)
]$"
"--fix"
)
"--fix"
)
set
(
_CMAKE_CXX_CLANG_TIDY_CHECKS
set
(
_CMAKE_CXX_CLANG_TIDY_CHECKS
"--checks=*,-fuchsia-*,-llvmlibc-*,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-hicpp-no-array-decay"
)
"--checks=*,-fuchsia-*,-llvmlibc-*,-cert-err58-cpp,-cppcoreguidelines-avoid-non-const-global-variables,-cppcoreguidelines-owning-memory,-modernize-use-trailing-return-type,-google-readability-avoid-underscore-in-googletest-name,-cppcoreguidelines-avoid-magic-numbers,-readability-magic-numbers,-cppcoreguidelines-avoid-goto,-hicpp-avoid-goto,-readability-function-cognitive-complexity,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-non-private-member-variables-in-classes,-misc-non-private-member-variables-in-classes,-cppcoreguidelines-pro-type-vararg,-cppcoreguidelines-pro-bounds-array-to-pointer-decay,-hicpp-no-array-decay
,-altera-*
"
)
endif
()
endif
()
else
()
else
()
message
(
STATUS
"LINTING is OFF"
)
message
(
STATUS
"LINTING is OFF"
)
...
...
This diff is collapsed.
Click to expand it.
test/test_connection.cpp
+
1
−
1
View file @
2d0a9f04
...
@@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) {
...
@@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) {
EXPECT_THROW_MESSAGE
(
connection
.
RetrieveVersionInfo
(),
AuthenticationError
,
EXPECT_THROW_MESSAGE
(
connection
.
RetrieveVersionInfo
(),
AuthenticationError
,
"The attempt to execute this transaction has not been "
"The attempt to execute this transaction has not been "
"executed at all because the authentication did not "
"executed at all because the authentication did not "
"succeed. Original error: Please login
.
"
);
"succeed. Original error: Please log
in
!
"
);
}
}
TEST
(
test_connection
,
connection_ssl_authentication_error_wrong_credentials
)
{
TEST
(
test_connection
,
connection_ssl_authentication_error_wrong_credentials
)
{
...
...
This diff is collapsed.
Click to expand it.
test/test_issues.cpp
+
1
−
2
View file @
2d0a9f04
...
@@ -180,8 +180,7 @@ TEST_F(test_issues, server_issue_174) {
...
@@ -180,8 +180,7 @@ TEST_F(test_issues, server_issue_174) {
auto
insert_status
=
insert_transaction
->
WaitForIt
();
auto
insert_status
=
insert_transaction
->
WaitForIt
();
ASSERT_TRUE
(
insert_status
.
IsTerminated
());
ASSERT_TRUE
(
insert_status
.
IsTerminated
());
// TODO(tf) Remove the EXPECT_NONFATAL_FAILURE after fixing #174.
EXPECT_FALSE
(
insert_status
.
IsError
());
EXPECT_NONFATAL_FAILURE
(
EXPECT_FALSE
(
insert_status
.
IsError
()),
""
);
}
}
}
// namespace caosdb::transaction
}
// namespace caosdb::transaction
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