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
5b4d77e4
Commit
5b4d77e4
authored
10 months ago
by
Mikhail Karnevskiy
Browse files
Options
Downloads
Patches
Plain Diff
Fix tests if producer
parent
088f6e1c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/cpp/include/asapo/unittests/MockBrokerRequest.h
+24
-0
24 additions, 0 deletions
common/cpp/include/asapo/unittests/MockBrokerRequest.h
producer/api/cpp/src/producer_impl.h
+0
-1
0 additions, 1 deletion
producer/api/cpp/src/producer_impl.h
with
24 additions
and
1 deletion
common/cpp/include/asapo/unittests/MockBrokerRequest.h
0 → 100644
+
24
−
0
View file @
5b4d77e4
#ifndef ASAPO_MOCKBROKERREQUEST_H
#define ASAPO_MOCKBROKERREQUEST_H
#include
<gmock/gmock.h>
#include
"asapo/request/broker_request.h"
namespace
asapo
{
class
MockServiceRequest
:
public
ServiceRequest
{
public:
MockServiceRequest
(
const
std
::
string
&
server_uri
,
const
SourceCredentials
&
source
)
:
ServiceRequest
(
server_uri
,
source
)
{}
MOCK_METHOD
(
std
::
string
,
BrokerRequestWithTimeout
,
(
RequestInfo
request
,
Error
*
err
,
uint64_t
timeout_ms
,
std
::
atomic
<
bool
>&
interrupt_flag
));
MOCK_METHOD
(
std
::
string
,
BrokerRequestWithTimeout
,
(
RequestInfo
request
,
Error
*
err
,
uint64_t
timeout_ms
));
MOCK_METHOD
(
RequestInfo
,
CreateBrokerApiRequest
,
(
std
::
string
stream
,
std
::
string
group
,
std
::
string
suffix
),
(
const
));
MOCK_METHOD
(
Error
,
ServiceRequestWithTimeout
,
(
const
std
::
string
&
service_name
,
std
::
string
*
service_uri
,
RequestInfo
request
,
RequestOutput
*
response
,
uint64_t
timeout_ms
,
std
::
atomic
<
bool
>&
interrupt_flag
));
MOCK_METHOD
(
Error
,
ProcessRequest
,
(
RequestOutput
*
response
,
const
RequestInfo
&
request
,
std
::
string
*
service_uri
));
MOCK_METHOD
(
Error
,
DiscoverService
,
(
const
std
::
string
&
service_name
,
std
::
string
*
uri_to_set
));
};
}
#endif //ASAPO_MOCKBROKERREQUEST_H
This diff is collapsed.
Click to expand it.
producer/api/cpp/src/producer_impl.h
+
0
−
1
View file @
5b4d77e4
...
...
@@ -101,7 +101,6 @@ class ProducerImpl : public Producer {
std
::
string
endpoint_
;
Error
RefreshSourceCredentialString
(
SourceCredentials
source_cred
);
ServiceRequest
*
service_request_
;
std
::
string
current_broker_uri_
;
};
...
...
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