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
5e8082c5
Verified
Commit
5e8082c5
authored
3 years ago
by
Timm Fitschen
Browse files
Options
Downloads
Patches
Plain Diff
WIP: consolidation
parent
f6148b4a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!9
F consolidation
Pipeline
#12096
passed
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_transaction.cpp
+3
-29
3 additions, 29 deletions
test/test_transaction.cpp
with
3 additions
and
29 deletions
test/test_transaction.cpp
+
3
−
29
View file @
5e8082c5
...
...
@@ -33,9 +33,9 @@
#include
<gtest/gtest-test-part.h>
// for TestPartResult, SuiteApiResolver
#include
<gtest/gtest_pred_impl.h>
// for Test, EXPECT_EQ, AssertionResult
#include
<iostream>
#include
<memory>
// for unique_ptr, allocator, __shar...
#include
<string>
// for string
#include
<vector>
// for vector
#include
<memory>
// for unique_ptr, allocator, __shar...
#include
<string>
// for string
#include
<vector>
// for vector
namespace
fs
=
boost
::
filesystem
;
namespace
caosdb
::
transaction
{
...
...
@@ -82,32 +82,6 @@ protected:
}
};
TEST_F
(
test_transaction
,
DISABLED_retrieve_manufacturer_by_id
)
{
const
auto
&
connection
=
caosdb
::
connection
::
ConnectionManager
::
GetDefaultConnection
();
const
auto
*
id
=
"107"
;
const
auto
*
role
=
"RecordType"
;
const
auto
*
name
=
"Manufacturer"
;
const
auto
*
description
=
"A generic manufacturer of all kinds of products"
;
const
auto
*
version
=
"0bea8f7b17f0130fa5701a6c3849b9f8bfa0651b"
;
auto
transaction
(
connection
->
CreateTransaction
());
transaction
->
RetrieveById
(
id
);
transaction
->
Execute
();
const
auto
&
result_set
=
dynamic_cast
<
const
MultiResultSet
&>
(
transaction
->
GetResultSet
());
const
auto
&
entity
=
result_set
.
at
(
0
);
EXPECT_EQ
(
id
,
entity
.
GetId
());
EXPECT_EQ
(
name
,
entity
.
GetName
());
EXPECT_EQ
(
role
,
entity
.
GetRole
());
EXPECT_EQ
(
description
,
entity
.
GetDescription
());
EXPECT_EQ
(
version
,
entity
.
GetVersionId
());
}
>>>>>>>
origin
/
f
-
extended
-
c
TEST_F
(
test_transaction
,
retrieve_non_existing
)
{
const
auto
&
connection
=
caosdb
::
connection
::
ConnectionManager
::
GetDefaultConnection
();
...
...
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