Apache Mesos
Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
mesos::internal::tests::MesosTest Class Reference

#include <mesos.hpp>

Inheritance diagram for mesos::internal::tests::MesosTest:
SSLTemporaryDirectoryTest TemporaryDirectoryTest MixinTemporaryDirectoryTest<::testing::Test > mesos::internal::tests::ContainerizerTest< T > mesos::internal::tests::ContainerizerTest< slave::MesosContainerizer >

Static Public Member Functions

static void SetUpTestCase ()
 
static void TearDownTestCase ()
 

Protected Member Functions

 MesosTest (const Option< zookeeper::URL > &url=None())
 
virtual master::Flags CreateMasterFlags ()
 
virtual slave::Flags CreateSlaveFlags ()
 
virtual Try< process::Owned< cluster::Master > > StartMaster (const Option< master::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Master > > StartMaster (mesos::allocator::Allocator *allocator, const Option< master::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Master > > StartMaster (Authorizer *authorizer, const Option< master::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Master > > StartMaster (const std::shared_ptr< MockRateLimiter > &slaveRemovalLimiter, const Option< master::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (const SlaveOptions &options)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, const std::string &id, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, const std::string &id, const Option< slave::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::GarbageCollector *gc, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, mesos::slave::ResourceEstimator *resourceEstimator, const Option< slave::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, mesos::slave::ResourceEstimator *resourceEstimator, const Option< slave::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, mesos::slave::QoSController *qosController, const Option< slave::Flags > &flags=None())
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, mesos::slave::QoSController *qosController, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, mesos::Authorizer *authorizer, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, mesos::Authorizer *authorizer, const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, slave::Containerizer *containerizer, mesos::SecretGenerator *secretGenerator, const Option< mesos::Authorizer * > &authorizer=None(), const Option< slave::Flags > &flags=None(), bool mock=false)
 
virtual Try< process::Owned< cluster::Slave > > StartSlave (mesos::master::detector::MasterDetector *detector, mesos::SecretGenerator *secretGenerator, const Option< slave::Flags > &flags=None())
 
- Protected Member Functions inherited from MixinTemporaryDirectoryTest<::testing::Test >
void SetUp () override
 
void TearDown () override
 
Try< NothingSetUpMixin ()
 
Try< NothingTearDownMixin ()
 

Protected Attributes

Option< zookeeper::URLzookeeperUrl
 
const std::string defaultAgentResourcesString
 
const std::string defaultTaskResourcesString
 
- Protected Attributes inherited from MixinTemporaryDirectoryTest<::testing::Test >
Option< std::string > sandbox
 

Constructor & Destructor Documentation

mesos::internal::tests::MesosTest::MesosTest ( const Option< zookeeper::URL > &  url = None())
protected

Member Function Documentation

virtual master::Flags mesos::internal::tests::MesosTest::CreateMasterFlags ( )
protectedvirtual
virtual slave::Flags mesos::internal::tests::MesosTest::CreateSlaveFlags ( )
protectedvirtual
static void mesos::internal::tests::MesosTest::SetUpTestCase ( )
static
virtual Try<process::Owned<cluster::Master> > mesos::internal::tests::MesosTest::StartMaster ( const Option< master::Flags > &  flags = None())
protectedvirtual
virtual Try<process::Owned<cluster::Master> > mesos::internal::tests::MesosTest::StartMaster ( mesos::allocator::Allocator allocator,
const Option< master::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Master> > mesos::internal::tests::MesosTest::StartMaster ( Authorizer authorizer,
const Option< master::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Master> > mesos::internal::tests::MesosTest::StartMaster ( const std::shared_ptr< MockRateLimiter > &  slaveRemovalLimiter,
const Option< master::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( const SlaveOptions options)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
const std::string &  id,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
const std::string &  id,
const Option< slave::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::GarbageCollector gc,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
mesos::slave::ResourceEstimator resourceEstimator,
const Option< slave::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
mesos::slave::ResourceEstimator resourceEstimator,
const Option< slave::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
mesos::slave::QoSController qosController,
const Option< slave::Flags > &  flags = None() 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
mesos::slave::QoSController qosController,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
mesos::Authorizer authorizer,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
mesos::Authorizer authorizer,
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
slave::Containerizer containerizer,
mesos::SecretGenerator secretGenerator,
const Option< mesos::Authorizer * > &  authorizer = None(),
const Option< slave::Flags > &  flags = None(),
bool  mock = false 
)
protectedvirtual
virtual Try<process::Owned<cluster::Slave> > mesos::internal::tests::MesosTest::StartSlave ( mesos::master::detector::MasterDetector detector,
mesos::SecretGenerator secretGenerator,
const Option< slave::Flags > &  flags = None() 
)
protectedvirtual
static void mesos::internal::tests::MesosTest::TearDownTestCase ( )
static

Member Data Documentation

const std::string mesos::internal::tests::MesosTest::defaultAgentResourcesString
protected
Initial value:
{
"cpus:2;gpus:0;mem:1024;disk:1024;ports:[31000-32000]"
}
const std::string mesos::internal::tests::MesosTest::defaultTaskResourcesString
protected
Initial value:
{
"cpus:0.1;mem:32;disk:32"
}
Option<zookeeper::URL> mesos::internal::tests::MesosTest::zookeeperUrl
protected

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