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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
caosdb
Software
caosdb-cppinttest
Commits
548f4225
Verified
Commit
548f4225
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
TST: update tests
parent
ae5ab795
No related branches found
No related tags found
2 merge requests
!22
F remove boost rdep
,
!19
"TST: update tests"
Pipeline
#19204
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/test_connection.cpp
+1
-1
1 addition, 1 deletion
test/test_connection.cpp
test/test_transaction.cpp
+5
-8
5 additions, 8 deletions
test/test_transaction.cpp
with
6 additions
and
9 deletions
test/test_connection.cpp
+
1
−
1
View file @
548f4225
...
...
@@ -84,7 +84,7 @@ TEST(test_connection, connection_ssl_authentication_error_anonymous) {
EXPECT_THROW_MESSAGE
(
connection
.
RetrieveVersionInfo
(),
AuthenticationError
,
"The attempt to execute this transaction has not been "
"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
)
{
...
...
This diff is collapsed.
Click to expand it.
test/test_transaction.cpp
+
5
−
8
View file @
548f4225
...
...
@@ -65,17 +65,14 @@ public:
*/
static
auto
generateDatetimeValues
()
->
std
::
vector
<
std
::
string
>
{
std
::
vector
<
std
::
string
>
values
=
{
//TODO(tf) (these work, but would need conversion here in the tests due
//to the time zone information)
//
TODO(tf) (these work, but would need conversion here in the tests due
//
to the time zone information)
//"2022-12-24T18:15:00.999999+0200",
//"2022-12-24T18:15:00.999999UTC",
//"2022-12-24T18:15:00",
//"2022-12-24T18:15:00.999999",
//"",
"2022"
,
"2022-12"
,
"2022-12-24"
};
"2022"
,
"2022-12"
,
"2022-12-24"
};
return
values
;
}
...
...
@@ -775,7 +772,7 @@ TEST_F(test_transaction, test_datetime_values) {
auto
values_orig
=
test_transaction
::
generateDatetimeValues
();
auto
props_orig
=
std
::
vector
<
Entity
>
();
size_t
i
=
0
;
for
(
const
auto
&
value
:
values_orig
)
{
for
(
const
auto
&
value
:
values_orig
)
{
auto
insert_transaction
(
connection
->
CreateTransaction
());
Entity
prop
;
prop
.
SetRole
(
Role
::
PROPERTY
);
...
...
@@ -797,7 +794,7 @@ TEST_F(test_transaction, test_datetime_values) {
// Retrieve and verify
i
=
0
;
for
(
const
auto
&
value
:
values_orig
)
{
for
(
const
auto
&
value
:
values_orig
)
{
auto
retrieve_transaction
(
connection
->
CreateTransaction
());
const
auto
prop
=
props_orig
[
i
];
const
auto
name
=
std
::
string
(
"Prop "
)
+
std
::
to_string
(
i
);
...
...
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