gtest fixture and helpers for SQS JSON client tests.
Definition in file json_client_fixture_test.hpp.
Go to the source code of this file.
#include <chrono>#include <memory>#include <string>#include <string_view>#include <userver/clients/http/client.hpp>#include <userver/engine/sleep.hpp>#include <userver/sqs/json_client.hpp>#include <userver/utest/utest.hpp>#include <aws/sqs/SQSErrors.h>Classes | |
| class | SqsJsonClient |
| gtest fixture for sqs::JsonClient against the SQS JSON recipe. More... | |
Functions | |
| std::string | GetErrorMessage (const Aws::Client::AWSError< Aws::SQS::SQSErrors > &error) |
| Formats an AWS SQS error as "exception: message". | |
| bool | IsQueueNotReady (const Aws::Client::AWSError< Aws::SQS::SQSErrors > &error) |
| True if the error means the queue is not ready yet. | |
| template<typename Operation> | |
| auto | RunWhenQueueIsReady (Operation operation) |
| Retries operation while the queue is reported as nonexistent. | |
| std::string GetErrorMessage | ( | const Aws::Client::AWSError< Aws::SQS::SQSErrors > & | error | ) |
Formats an AWS SQS error as "exception: message".
Definition at line 110 of file json_client_fixture_test.cpp.
| bool IsQueueNotReady | ( | const Aws::Client::AWSError< Aws::SQS::SQSErrors > & | error | ) |
True if the error means the queue is not ready yet.
Definition at line 114 of file json_client_fixture_test.cpp.
| auto RunWhenQueueIsReady | ( | Operation | operation | ) |
Retries operation while the queue is reported as nonexistent.
Definition at line 57 of file json_client_fixture_test.hpp.