17 #ifndef __TESTS_CLUSTER_HPP__
18 #define __TESTS_CLUSTER_HPP__
57 #include "master/master.hpp"
86 const master::Flags&
flags = master::Flags(),
90 const Option<std::shared_ptr<process::RateLimiter>>&
91 slaveRemovalLimiter =
None());
142 bool authorizationCallbacksSet;
219 bool cleanUpContainersInDestructor =
true;
242 bool authorizationCallbacksSet;
253 #endif // __TESTS_CLUSTER_HPP__
process::PID< master::Master > pid
Definition: cluster.hpp:102
Definition: cluster.hpp:149
process::Owned< MockRegistrar > registrar
Definition: cluster.hpp:135
static Try< process::Owned< Slave > > create(mesos::master::detector::MasterDetector *detector, const slave::Flags &flags=slave::Flags(), const Option< std::string > &id=None(), const Option< slave::Containerizer * > &containerizer=None(), const Option< slave::GarbageCollector * > &gc=None(), const Option< slave::TaskStatusUpdateManager * > &taskStatusUpdateManager=None(), const Option< mesos::slave::ResourceEstimator * > &resourceEstimator=None(), const Option< mesos::slave::QoSController * > &qosController=None(), const Option< mesos::SecretGenerator * > &secretGenerator=None(), const Option< Authorizer * > &authorizer=None(), bool mock=false)
void setAuthorizationCallbacks(Authorizer *authorizer)
This interface is used to enable an identity service or any other back end to check authorization pol...
Definition: authorizer.hpp:243
Definition: containerizer.hpp:57
MasterInfo getMasterInfo()
process::Owned< mesos::master::detector::MasterDetector > createDetector()
constexpr char READONLY_HTTP_AUTHENTICATION_REALM[]
Definition: mesos.hpp:106
static Try< process::Owned< Master > > start(const master::Flags &flags=master::Flags(), const Option< zookeeper::URL > &zookeeperUrl=None(), const Option< mesos::allocator::Allocator * > &allocator=None(), const Option< Authorizer * > &authorizer=None(), const Option< std::shared_ptr< process::RateLimiter >> &slaveRemovalLimiter=None())
Definition: cluster.hpp:76
process::PID< slave::Slave > pid
Definition: cluster.hpp:197
A "process identifier" used to uniquely identify a process when dispatching messages.
Definition: pid.hpp:279
Definition: mock_slave.hpp:88
An abstraction of a Master detector which can be used to detect the leading master from a group...
Definition: detector.hpp:38
void setAuthorizationCallbacks(Authorizer *authorizer)