Class MockTesterCloud

  • All Implemented Interfaces:
    TesterCloud

    public class MockTesterCloud
    extends java.lang.Object
    implements TesterCloud
    • Constructor Detail

      • MockTesterCloud

        public MockTesterCloud​(NameService nameService)
    • Method Detail

      • getLog

        public java.util.List<LogEntry> getLog​(DeploymentId deploymentId,
                                               long after)
        Description copied from interface: TesterCloud
        Returns the log entries from the tester with ids after the given threshold.
        Specified by:
        getLog in interface TesterCloud
      • ready

        public boolean ready​(java.net.URI testerUrl)
        Description copied from interface: TesterCloud
        Returns whether the container is ready to serve.
        Specified by:
        ready in interface TesterCloud
      • testerReady

        public boolean testerReady​(DeploymentId deploymentId)
        Description copied from interface: TesterCloud
        Returns whether the test container is ready to serve
        Specified by:
        testerReady in interface TesterCloud
      • resolveHostName

        public java.util.Optional<java.lang.String> resolveHostName​(com.yahoo.config.provision.HostName hostname)
        Description copied from interface: TesterCloud
        Returns the IP address of the given host name, if any.
        Specified by:
        resolveHostName in interface TesterCloud
      • resolveCname

        public java.util.Optional<com.yahoo.config.provision.HostName> resolveCname​(com.yahoo.config.provision.HostName hostName)
        Description copied from interface: TesterCloud
        Returns the host name of the given CNAME, if any.
        Specified by:
        resolveCname in interface TesterCloud
      • add

        public void add​(LogEntry entry)
      • config

        public byte[] config()