Class MockTesterCloud
- java.lang.Object
-
- com.yahoo.vespa.hosted.controller.api.integration.stubs.MockTesterCloud
-
- All Implemented Interfaces:
TesterCloud
public class MockTesterCloud extends java.lang.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()java.util.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.booleanready(java.net.URI testerUrl)Returns whether the container is ready to serve.java.util.Optional<com.yahoo.config.provision.HostName>resolveCname(com.yahoo.config.provision.HostName hostName)Returns the host name of the given CNAME, if any.java.util.Optional<java.lang.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 serve
-
-
-
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 java.util.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(java.net.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 java.util.Optional<java.lang.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 java.util.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
-
add
public void add(LogEntry entry)
-
set
public void set(TesterCloud.Status status)
-
config
public byte[] config()
-
-