Class MockTesterCloud
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockTesterCloud
-
- All Implemented Interfaces:
TesterCloud
public class MockTesterCloud extends Object implements TesterCloud
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.yahoo.vespa.hosted.controller.api.integration.deployment.TesterCloud
TesterCloud.Status, TesterCloud.Suite
-
-
Constructor Summary
Constructors Constructor Description MockTesterCloud(NameService nameService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(LogEntry entry)byte[]config()List<LogEntry>getLog(DeploymentId deploymentId, long after)Returns the log entries from the tester with ids after the given threshold.TesterCloud.StatusgetStatus(DeploymentId deploymentId)Returns the current status of the tester.Optional<TestReport>getTestReport(DeploymentId deploymentId)Returns the test report as JSON if availablebooleanready(URI testerUrl)Returns whether the container is ready to serve.Optional<com.yahoo.config.provision.HostName>resolveCname(com.yahoo.config.provision.HostName hostName)Returns the host name of the given CNAME, if any.Optional<String>resolveHostName(com.yahoo.config.provision.HostName hostname)Returns the IP address of the given host name, if any.voidset(TesterCloud.Status status)voidstartTests(DeploymentId deploymentId, TesterCloud.Suite suite, byte[] config)Signals the tester to run its tests.booleantesterReady(DeploymentId deploymentId)Returns whether the test container is ready to servevoidtestReport(TestReport testReport)
-
-
-
Constructor Detail
-
MockTesterCloud
public MockTesterCloud(NameService nameService)
-
-
Method Detail
-
startTests
public void startTests(DeploymentId deploymentId, TesterCloud.Suite suite, byte[] config)
Description copied from interface:TesterCloudSignals the tester to run its tests.- Specified by:
startTestsin interfaceTesterCloud
-
getLog
public List<LogEntry> getLog(DeploymentId deploymentId, long after)
Description copied from interface:TesterCloudReturns the log entries from the tester with ids after the given threshold.- Specified by:
getLogin interfaceTesterCloud
-
getStatus
public TesterCloud.Status getStatus(DeploymentId deploymentId)
Description copied from interface:TesterCloudReturns the current status of the tester.- Specified by:
getStatusin interfaceTesterCloud
-
ready
public boolean ready(URI testerUrl)
Description copied from interface:TesterCloudReturns whether the container is ready to serve.- Specified by:
readyin interfaceTesterCloud
-
testerReady
public boolean testerReady(DeploymentId deploymentId)
Description copied from interface:TesterCloudReturns whether the test container is ready to serve- Specified by:
testerReadyin interfaceTesterCloud
-
resolveHostName
public Optional<String> resolveHostName(com.yahoo.config.provision.HostName hostname)
Description copied from interface:TesterCloudReturns the IP address of the given host name, if any.- Specified by:
resolveHostNamein interfaceTesterCloud
-
resolveCname
public Optional<com.yahoo.config.provision.HostName> resolveCname(com.yahoo.config.provision.HostName hostName)
Description copied from interface:TesterCloudReturns the host name of the given CNAME, if any.- Specified by:
resolveCnamein interfaceTesterCloud
-
getTestReport
public Optional<TestReport> getTestReport(DeploymentId deploymentId)
Description copied from interface:TesterCloudReturns the test report as JSON if available- Specified by:
getTestReportin interfaceTesterCloud
-
testReport
public void testReport(TestReport testReport)
-
add
public void add(LogEntry entry)
-
set
public void set(TesterCloud.Status status)
-
config
public byte[] config()
-
-