Configuration Reference

Version:1.0.1

Test Resources Server Config Properties

🔗
Table 1. Configuration Properties for AccessConfiguration
Property Type Description

server.access-token

java.lang.String

Test Resources Testcontainers Config Properties

🔗
Table 2. Configuration Properties for TestContainersConfiguration
Property Type Description

test-resources.containers.*.image-name

java.lang.String

The name of the docker image to use.

test-resources.containers.*.image-tag

java.lang.String

The image tag, in case it’s not specified in the image name or that you want to specifically override the default tag but not the image name.

test-resources.containers.*.hostnames

java.util.List

Names of the properties which will be set to the host name of the container (e.g. if "some.host", then the "some.host" property will be set to the value of the container host name)

test-resources.containers.*.exposed-ports

java.util.Map

Sets the names of the properties which will be set to the exposed port of the container. For example, if the container exposes port 25 and that you need the "smtp.port" property to be set to the value of the container port, then the key needs to be set to "smtp.port" and the value to 25.

test-resources.containers.*.ro-fs-bind

java.util.Map

A map where the key is a path in the host filesystem and the value is a path in the container filesystem. If the host path starts with "classpath:" then the path refers to an entry on classpath. The path will be mounted read-only.

test-resources.containers.*.rw-fs-bind

java.util.Map

A map where the key is a path in the host filesystem and the value is a path in the container filesystem. If the host path starts with "classpath:" then the path refers to an entry on classpath. The path will be mounted read-write.

test-resources.containers.*.command

java.util.List

The container command, for example: "./gradlew run".

test-resources.containers.*.working-directory

java.lang.String

The working directory of the container.

test-resources.containers.*.env

java.util.Map

The environment variables to set in the container.

test-resources.containers.*.labels

java.util.Map

The labels to set on the started container.

test-resources.containers.*.startup-timeout

java.lang.String

The startup timer of the container, for example: "60s".

test-resources.containers.*.copy-to-container

java.util.Map

The files to be copied to the container. The key represents a path on the host filesystem and the value represents a path on the container filesystem.

If the key is prefixed by <code>classpath:</code> then the key will represent a path of an entry on classpath.

test-resources.containers.*.memory

java.lang.String

The memory limit of the container. Can be expressed in bytes, kilobytes (eg 600kb), megabytes (e.g 256mb), or gigabytes (e.g 1.5g).

test-resources.containers.*.swap-memory

java.lang.String

The swap memory limit of the container. Can be expressed in bytes, kilobytes (eg 600kb), megabytes (e.g 256mb), or gigabytes (e.g 1.5g).

test-resources.containers.*.shared-memory

java.lang.String

The shared memory limit of the container. Can be expressed in bytes, kilobytes (eg 600kb), megabytes (e.g 256mb), or gigabytes (e.g 1.5g).

test-resources.containers.*.network

java.lang.String

The network this container will belong to.

test-resources.containers.*.network-aliases

java.util.List

The list of names this container will use in a custom network.