#include </data/code/userver/libraries/sqs/src/sqs/json_client_fixture_test.hpp>
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.
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::JsonClient > | MakeClient () 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. | |
|
protected |
Creates a queue with queue_name.
Definition at line 65 of file json_client_fixture_test.cpp.
|
protected |
Builds a sqs::JsonClient for the recipe endpoint.
Definition at line 48 of file json_client_fixture_test.cpp.
|
override |
Reads SQS_JSON_PORT, creates the HTTP client, and deletes leftover queues.
Definition at line 29 of file json_client_fixture_test.cpp.
|
override |
Deletes all queues left by the test.
Definition at line 41 of file json_client_fixture_test.cpp.