#include <aws/core/Aws.h>#include <aws/logs/model/InputLogEvent.h>#include <cloudwatch_logs_common/log_publisher.h>#include <cloudwatch_logs_common/definitions/ros_cloudwatch_logs_errors.h>#include <gtest/gtest.h>
Go to the source code of this file.
Classes | |
| class | MockCloudWatchFacade |
| class | TestLogPublisherFixture |
| This test requires a fixture to init and shutdown the SDK or else it causes seg faults when trying to construct a CloudWatch client. All tests must use the TEST_F function with this fixture name. More... | |
Macros | |
| #define | _unused(x) ((void)(x)) |
Functions | |
| TEST_F (TestLogPublisherFixture, Sanity) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_PublishLogs_ReturnsFalseWhenEmpty) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_PublishLogs_ReturnsSuccessWhenListIngested) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_CallsSendLogsToCW) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_FailCreateGroup) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_FailCreateStream) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_FailInitToken) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_FailSendLogs) | |
| TEST_F (TestLogPublisherFixture, TestLogPublisher_FailNotStarted) | |
Variables | |
| constexpr int | WAIT_TIME |
| #define _unused | ( | x | ) | ((void)(x)) |
Definition at line 24 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| Sanity | |||
| ) |
Definition at line 164 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_PublishLogs_ReturnsFalseWhenEmpty | |||
| ) |
Definition at line 168 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_PublishLogs_ReturnsSuccessWhenListIngested | |||
| ) |
Definition at line 178 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_CallsSendLogsToCW | |||
| ) |
Definition at line 187 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_FailCreateGroup | |||
| ) |
Definition at line 197 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_FailCreateStream | |||
| ) |
Definition at line 208 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_FailInitToken | |||
| ) |
Definition at line 219 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_FailSendLogs | |||
| ) |
Definition at line 229 of file log_publisher_test.cpp.
| TEST_F | ( | TestLogPublisherFixture | , |
| TestLogPublisher_FailNotStarted | |||
| ) |
Definition at line 239 of file log_publisher_test.cpp.
| constexpr int WAIT_TIME |
Definition at line 26 of file log_publisher_test.cpp.