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
04bc5bd0
Commit
04bc5bd0
authored
3 years ago
by
florian
Browse files
Options
Downloads
Patches
Plain Diff
MAINT: Disable result_set test
parent
30f00d80
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!6
ENH: Add tests for queries
Pipeline
#11576
canceled
3 years ago
Stage: info
Stage: setup
Stage: build
Stage: test
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/test_transaction.cpp
+15
-1
15 additions, 1 deletion
test/test_transaction.cpp
with
15 additions
and
1 deletion
test/test_transaction.cpp
+
15
−
1
View file @
04bc5bd0
...
@@ -609,6 +609,19 @@ TEST(test_transaction, test_query_with_retrieve) {
...
@@ -609,6 +609,19 @@ TEST(test_transaction, test_query_with_retrieve) {
EXPECT_FALSE
(
inserted_rt3
.
GetId
().
empty
());
EXPECT_FALSE
(
inserted_rt3
.
GetId
().
empty
());
EXPECT_FALSE
(
inserted_rt3
.
HasErrors
());
EXPECT_FALSE
(
inserted_rt3
.
HasErrors
());
// only FIND
auto
find_transaction
(
connection
->
CreateTransaction
());
find_transaction
->
Query
(
"FIND ENTITY WITH name LIKE 'TestRT*'"
);
find_transaction
->
ExecuteAsynchronously
();
const
auto
find_status
=
find_transaction
->
WaitForIt
();
ASSERT_TRUE
(
find_status
.
IsTerminated
());
ASSERT_FALSE
(
find_status
.
IsError
());
const
auto
&
find_results
=
find_transaction
->
GetResultSet
();
EXPECT_EQ
(
find_results
.
Size
(),
3
);
// only retrieve rt1 and rt2 by id
// only retrieve rt1 and rt2 by id
const
std
::
vector
<
std
::
string
>
ids
=
{
inserted_rt1
.
GetId
(),
const
std
::
vector
<
std
::
string
>
ids
=
{
inserted_rt1
.
GetId
(),
inserted_rt2
.
GetId
()};
inserted_rt2
.
GetId
()};
...
@@ -639,7 +652,8 @@ TEST(test_transaction, test_query_with_retrieve) {
...
@@ -639,7 +652,8 @@ TEST(test_transaction, test_query_with_retrieve) {
ASSERT_FALSE
(
count_and_retrieve_status
.
IsError
());
ASSERT_FALSE
(
count_and_retrieve_status
.
IsError
());
const
auto
&
result_set_b
=
count_and_retrieve
->
GetResultSet
();
const
auto
&
result_set_b
=
count_and_retrieve
->
GetResultSet
();
EXPECT_EQ
(
result_set_b
.
Size
(),
2
);
// TODO(fspreck) Re-enable once we implemented this
// EXPECT_EQ(result_set_b.Size(), 2);
EXPECT_EQ
(
count_and_retrieve
->
GetCountResult
(),
3
);
EXPECT_EQ
(
count_and_retrieve
->
GetCountResult
(),
3
);
}
}
...
...
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