Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
asapo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor 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
Joao Alvim Oliveira Dias De Almeida
asapo
Commits
dcfbaf30
Commit
dcfbaf30
authored
3 years ago
by
Sergey Yakubov
Browse files
Options
Downloads
Patches
Plain Diff
fix tests
parent
a8a8f452
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
broker/src/asapo_broker/server/get_commands_test.go
+4
-4
4 additions, 4 deletions
broker/src/asapo_broker/server/get_commands_test.go
tests/automatic/consumer/consumer_api/consumer_api.c
+1
-0
1 addition, 0 deletions
tests/automatic/consumer/consumer_api/consumer_api.c
with
5 additions
and
4 deletions
broker/src/asapo_broker/server/get_commands_test.go
+
4
−
4
View file @
dcfbaf30
...
...
@@ -43,18 +43,18 @@ var testsGetCommand = []struct {
queryParams
string
externalParam
string
}{
/*
{"last", expectedSource,expectedStream, "", expectedStream + "/0/last","","0"},
{
"last"
,
expectedSource
,
expectedStream
,
""
,
expectedStream
+
"/0/last"
,
""
,
"0"
},
{
"id"
,
expectedSource
,
expectedStream
,
""
,
expectedStream
+
"/0/1"
,
""
,
"1"
},
{
"meta"
,
expectedSource
,
"default"
,
""
,
"default/0/meta/0"
,
""
,
"0"
},
{"nacks",expectedSource, expectedStream, expectedGroupID, expectedStream + "/" + expectedGroupID + "/nacks","","0_0"},
*/
{
"nacks"
,
expectedSource
,
expectedStream
,
expectedGroupID
,
expectedStream
+
"/"
+
expectedGroupID
+
"/nacks"
,
""
,
"0_0"
},
{
"groupedlast"
,
expectedSource
,
expectedStream
,
expectedGroupID
,
expectedStream
+
"/"
+
expectedGroupID
+
"/groupedlast"
,
""
,
""
},
/*
{"next", expectedSource,expectedStream, expectedGroupID, expectedStream + "/" + expectedGroupID + "/next","",""},
{
"next"
,
expectedSource
,
expectedStream
,
expectedGroupID
,
expectedStream
+
"/"
+
expectedGroupID
+
"/next"
,
""
,
""
},
{
"next"
,
expectedSource
,
expectedStream
,
expectedGroupID
,
expectedStream
+
"/"
+
expectedGroupID
+
"/next"
,
"&resend_nacks=true&delay_ms=10000&resend_attempts=3"
,
"10000_3"
},
{
"size"
,
expectedSource
,
expectedStream
,
""
,
expectedStream
+
"/size"
,
""
,
""
},
{
"size"
,
expectedSource
,
expectedStream
,
""
,
expectedStream
+
"/size"
,
"&incomplete=true"
,
"true"
},
{
"streams"
,
expectedSource
,
"0"
,
""
,
"0/streams"
,
""
,
"0/"
},
{"lastack", expectedSource,expectedStream, expectedGroupID, expectedStream + "/" + expectedGroupID + "/lastack","",""},
*/
{
"lastack"
,
expectedSource
,
expectedStream
,
expectedGroupID
,
expectedStream
+
"/"
+
expectedGroupID
+
"/lastack"
,
""
,
""
},
}
...
...
This diff is collapsed.
Click to expand it.
tests/automatic/consumer/consumer_api/consumer_api.c
+
1
−
0
View file @
dcfbaf30
...
...
@@ -32,6 +32,7 @@ void test_datasets(AsapoConsumerHandle consumer, AsapoStringHandle group_id) {
// get last in group
dataset
=
asapo_consumer_get_last_dataset_ingroup
(
consumer
,
group_id
,
0
,
"default"
,
&
err
);
EXIT_IF_ERROR
(
"asapo_consumer_get_last_dataset_ingroup"
,
err
);
asapo_free_handle
(
&
dataset
);
AsapoDataSetHandle
ds_ig
=
asapo_consumer_get_last_dataset_ingroup
(
consumer
,
group_id
,
0
,
"default"
,
&
err
);
ASSERT_TRUE
(
ds_ig
==
NULL
,
"returns null in case of error"
);
ASSERT_TRUE
(
asapo_error_get_type
(
err
)
==
kEndOfStream
,
"asapo_consumer_get_last_dataset_ingroup second time end of stream error"
);
...
...
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