userver: SqsJsonClient Class Reference
Loading...
Searching...
No Matches
SqsJsonClient Class Reference

#include </data/code/userver/libraries/sqs/src/sqs/json_client_fixture_test.hpp>

Detailed Description

gtest fixture for sqs::JsonClient against the SQS JSON recipe.

Reads SQS_JSON_PORT and creates an HTTP client. Drops all test queues before and after each test, like storages::mongo::utest::MongoTest drops the database.

Definition at line 27 of file json_client_fixture_test.hpp.

Inheritance diagram for SqsJsonClient:

Public Member Functions

void SetUp () override
 Reads SQS_JSON_PORT, creates the HTTP client, and deletes leftover queues.
void TearDown () override
 Deletes all queues left by the test.

Protected Member Functions

std::unique_ptr< sqs::JsonClientMakeClient () const
 Builds a sqs::JsonClient for the recipe endpoint.
Aws::String CreateQueue (sqs::JsonClient &client, std::string_view queue_name)
 Creates a queue with queue_name.

Member Function Documentation

◆ CreateQueue()

Aws::String SqsJsonClient::CreateQueue ( sqs::JsonClient & client,
std::string_view queue_name )
protected

Creates a queue with queue_name.

Definition at line 65 of file json_client_fixture_test.cpp.

◆ MakeClient()

std::unique_ptr< sqs::JsonClient > SqsJsonClient::MakeClient ( ) const
protected

Builds a sqs::JsonClient for the recipe endpoint.

Definition at line 48 of file json_client_fixture_test.cpp.

◆ SetUp()

void SqsJsonClient::SetUp ( )
override

Reads SQS_JSON_PORT, creates the HTTP client, and deletes leftover queues.

Definition at line 29 of file json_client_fixture_test.cpp.

◆ TearDown()

void SqsJsonClient::TearDown ( )
override

Deletes all queues left by the test.

Definition at line 41 of file json_client_fixture_test.cpp.


The documentation for this class was generated from the following files: