1.1.3 • Published 4 years ago
@applitools/docker-compose-testkit v1.1.3
docker-compose-testkit
Library that simplifies using docker-compose-mocha
with a variety of utilities.
Installing
npm install @applitools/docker-compose-testkit docker-compose-mocha
Using the package
- yada yada yada
const {getAddressForService} = require('@applitools/docker-compose-testkit')
const composePath = path.join(__dirname, 'docker-compose.yml')
const envName = dockerComposeTool(before, after, composePath, {
shouldPullImages: false,
})
const pubsubAddress = await getAddressForService(envName, composePath, 'pubsub', 8085)
API
getAddressForService(envName, composePath, serviceName, exposedPort)
envName
: envName as returned bydocker-compose-mocha
'sdockerComposeTool
function.composePath
: the path to the compose file that was passed todocker-compose-mocha
'sdockerComposeTool
function.serviceName
: the service name you want to get the address too, as defined in the docker compose file.exposedPort
: the container port of the service, which you wish to get the host address of.Returns: the address of the service, as available in the host, in the form of
domain:port
.- Note: the first time this function is called it will query the information and cache the value. The other times will be much quicker, as it uses the cached value.
1.1.3
4 years ago
1.1.2
5 years ago
1.1.1
5 years ago
1.1.0
5 years ago
1.0.27
5 years ago
1.0.26
5 years ago
1.0.25
5 years ago
1.0.24
5 years ago
1.0.22
5 years ago
1.0.20
5 years ago
1.0.18
5 years ago
1.0.23
5 years ago
1.0.21
5 years ago
1.0.19
5 years ago
1.0.17
6 years ago
1.0.15
6 years ago
1.0.13
6 years ago
1.0.11
6 years ago
1.0.9
6 years ago
1.0.7
6 years ago
1.0.5
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
7 years ago