Class ExasolTestcontainerTestSetup

    • Constructor Detail

      • ExasolTestcontainerTestSetup

        public ExasolTestcontainerTestSetup()
        Test-setup using exasol-testcontainers.
    • Method Detail

      • getDefaultBucket

        public com.exasol.bucketfs.Bucket getDefaultBucket()
        Description copied from interface: ExasolTestSetup
        Get an API object for the default BucketFS bucket.
        Specified by:
        getDefaultBucket in interface ExasolTestSetup
        Returns:
        API object for the default BucketFS bucket
      • makeLocalTcpServiceAccessibleFromDatabase

        public InetSocketAddress makeLocalTcpServiceAccessibleFromDatabase​(int localPort)
        Description copied from interface: ExasolTestSetup
        Make a local TCP service available from within the Exasol database.

        You can use this method for example for accessing a local s3 bucket implementation from inside the Exasol database. Another example is to connect from UDFs to a debugger running on the test PC.

        Specified by:
        makeLocalTcpServiceAccessibleFromDatabase in interface ExasolTestSetup
        Parameters:
        localPort - port of the service @ localhost
        Returns:
        address under which the service is available from within the exasol database (same port)
      • makeDatabaseTcpServiceAccessibleFromLocalhost

        public List<Integer> makeDatabaseTcpServiceAccessibleFromLocalhost​(int databasePort)
        Description copied from interface: ExasolTestSetup
        Make the port of a database node available from localhost. If the target is a cluster, this methods sets up a redirect for each node and returns multiple local port numbers.

        You can use this method for example to connect from your test PC to a profiling agent that listens on a TCP socket in an UDF.

        Specified by:
        makeDatabaseTcpServiceAccessibleFromLocalhost in interface ExasolTestSetup
        Parameters:
        databasePort - database port
        Returns:
        list of local port numbers. One entry per cluster node.