NebulaStream
0.6.213
NebulaStream is a data and application management framework for the internet of things
|
#include <BaseIntegrationTest.hpp>
Public Member Functions | |
BaseIntegrationTest () | |
the base test class ctor that creates the internal test resources More... | |
~BaseIntegrationTest () override | |
void | SetUp () override |
Fetches the port. More... | |
void | TearDown () override |
Release internal ports. More... | |
void | onFatalError (int signalNumber, std::string callstack) override |
onFatalError shall be called when a signal is caught More... | |
void | onFatalException (std::shared_ptr< std::exception > exception, std::string callstack) override |
onFatalException shall be called when an exception is caught More... | |
![]() | |
void | SetUp () override |
void | TearDown () override |
![]() | |
~virtual_enable_shared_from_this () NES_NOEXCEPT(true) override=default | |
std::shared_ptr< T1 > | shared_from_this () |
std::weak_ptr< T1 > | weak_from_this () |
![]() | |
virtual | ~virtual_enable_shared_from_this_base () NES_NOEXCEPT(isNoexceptDestructible)=default |
![]() | |
TestWaitingHelper () | |
void | startWaitingThread (std::string testName) |
void | completeTest () |
void | failTest () |
Protected Member Functions | |
BorrowedPortPtr | getAvailablePort () |
Retrieve another free port. More... | |
std::filesystem::path | getTestResourceFolder () const |
returns the test resource folder to write files More... | |
Protected Attributes | |
BorrowedPortPtr | rpcCoordinatorPort {nullptr} |
BorrowedPortPtr | restPort {nullptr} |
Friends | |
class | BorrowedPort |
Additional Inherited Members | |
![]() | |
detail::TestSourceNameHelper | srcName |
|
explicit |
the base test class ctor that creates the internal test resources
|
override |
References NES_ASSERT2_FMT.
|
protected |
Retrieve another free port.
References NES::Testing::detail::PortDispatcher::getNextPort(), and NES::Testing::detail::getPortDispatcher().
Referenced by NES::TCPSourceIntegrationTest::SetUp(), and NES::ConvertLogicalToPhysicalSinkTest::SetUp().
|
protected |
returns the test resource folder to write files
Referenced by NES::Runtime::Execution::JoinDeploymentTest::runAndValidateJoinQueryTwoLogicalStreams().
|
overridevirtual |
onFatalError shall be called when a signal is caught
signalNumber | the caught signal |
stacktrace | the stacktrace of the error |
Reimplemented from NES::Testing::BaseUnitTest.
References NES::Testing::detail::TestWaitingHelper::failTest(), and NES_ERROR.
|
overridevirtual |
onFatalException shall be called when an exception is caught
exception | the caught exception |
stacktrace | the stacktrace of the error |
Reimplemented from NES::Testing::BaseUnitTest.
References NES::Testing::detail::TestWaitingHelper::failTest(), and NES_ERROR.
|
override |
Fetches the port.
References NES::Testing::detail::PortDispatcher::getNextPort(), NES::Testing::detail::getPortDispatcher(), NES_ERROR, restPort, rpcCoordinatorPort, and NES::Testing::BaseUnitTest::SetUp().
Referenced by NES::E2EMonitoringTest::SetUp(), NES::DistributedMatrixJoinIntegrationTest::SetUp(), NES::DistributedNemoJoinIntegrationTest::SetUp(), NES::FilterPushDownTest::SetUp(), NES::MonitoringControllerTest::SetUp(), NES::QueryControllerTest::SetUp(), NES::TCPSourceIntegrationTest::SetUp(), NES::UnionDeploymentTest::SetUp(), NES::MonitoringQueriesTest::SetUp(), NES::ConvertLogicalToPhysicalSinkTest::SetUp(), NES::StatisticSinkTest::SetUp(), NES::MillisecondIntervalTest::SetUp(), NES::SourceTest::SetUp(), NES::TCPSourceTest::SetUp(), and ZMQTest::SetUp().
|
override |
Release internal ports.
References NES::Testing::detail::TestWaitingHelper::completeTest(), NES_ERROR, restPort, rpcCoordinatorPort, and NES::Testing::BaseUnitTest::TearDown().
Referenced by NES::JoinMultiThreadedTest::TearDown(), NES::MultiThreadedTest::TearDown(), NES::TCPSourceIntegrationTest::TearDown(), NES::ConvertLogicalToPhysicalSinkTest::TearDown(), NES::StatisticSinkTest::TearDown(), NES::MillisecondIntervalTest::TearDown(), NES::SourceTest::TearDown(), NES::TCPSourceTest::TearDown(), and ZMQTest::TearDown().
|
friend |
|
protected |
Referenced by NES::MonitoringQueriesTest::createCoordinator(), NES::Runtime::Execution::JoinDeploymentTest::runAndValidateJoinQueryTwoLogicalStreams(), SetUp(), NES::MonitoringQueriesTest::SetUp(), NES::LocationControllerIntegrationTest::startCoordinator(), NES::QueryCatalogControllerTest::startCoordinator(), NES::QueryControllerTest::startCoordinator(), NES::TopologyControllerTest::startCoordinator(), TearDown(), and NES::MonitoringControllerTest::waitForMonitoringQuery().
|
protected |
Referenced by NES::MonitoringQueriesTest::createCoordinator(), NES::MonitoringQueriesTest::createWorker(), NES::Runtime::Execution::JoinDeploymentTest::runAndValidateJoinQueryTwoLogicalStreams(), SetUp(), NES::MonitoringQueriesTest::SetUp(), NES::LocationControllerIntegrationTest::startCoordinator(), NES::QueryCatalogControllerTest::startCoordinator(), NES::QueryControllerTest::startCoordinator(), NES::TopologyControllerTest::startCoordinator(), and TearDown().