public class ServiceTestResult
extends java.lang.Object
ServiceTestRunner
.Modifier and Type | Class and Description |
---|---|
(package private) static class |
ServiceTestResult.TaskConfig
An internal-only object for the result of generating a config file.
|
Constructor and Description |
---|
ServiceTestResult(ServiceSpec serviceSpec,
RawServiceSpec rawServiceSpec,
java.util.Map<java.lang.String,java.lang.String> schedulerEnvironment,
java.util.Collection<ServiceTestResult.TaskConfig> taskConfigs,
Persister persister,
ClusterState clusterState) |
Modifier and Type | Method and Description |
---|---|
ClusterState |
getClusterState()
Returns the cluster/task state resulting from the simulation.
|
Persister |
getPersister()
Returns the persister/ZK state resulting from the simulation.
|
RawServiceSpec |
getRawServiceSpec()
Returns the
RawServiceSpec (object model of a svc.yml ) which was generated by the test. |
java.util.Map<java.lang.String,java.lang.String> |
getSchedulerEnvironment()
Returns the map of environment variables for the Scheduler which were generated by the test.
|
ServiceSpec |
getServiceSpec()
Returns the
ServiceSpec (translated Service Specification) which was generated by the test. |
java.lang.String |
getTaskConfig(java.lang.String podType,
java.lang.String taskName,
java.lang.String configName)
Returns the specified rendered task config content, or throws
IllegalArgumentException if no such config
was found. |
ServiceTestResult(ServiceSpec serviceSpec, RawServiceSpec rawServiceSpec, java.util.Map<java.lang.String,java.lang.String> schedulerEnvironment, java.util.Collection<ServiceTestResult.TaskConfig> taskConfigs, Persister persister, ClusterState clusterState)
public ServiceSpec getServiceSpec()
ServiceSpec
(translated Service Specification) which was generated by the test.public RawServiceSpec getRawServiceSpec()
RawServiceSpec
(object model of a svc.yml
) which was generated by the test.public java.util.Map<java.lang.String,java.lang.String> getSchedulerEnvironment()
public java.lang.String getTaskConfig(java.lang.String podType, java.lang.String taskName, java.lang.String configName)
IllegalArgumentException
if no such config
was found.public Persister getPersister()
public ClusterState getClusterState()