The crossdock service uses several environment variables to control the behavior of the cross-language testing suite. These variables define timeouts, client types, service names, transport protocols, and trace behaviors.
Core Configuration
WAIT_FOR: Comma-separated list of services to wait for before starting (e.g., test_driver,go,python,java,nodejs).WAIT_FOR_TIMEOUT: Timeout duration for the wait period (e.g., 60s).CALL_TIMEOUT: Timeout for calls (e.g., 60s).AXIS_CLIENT: Specifies the client type (e.g., go).AXIS_TESTDRIVER: Specifies the test driver service (e.g., test_driver).AXIS_SERVICES: Specifies the services to be tested (e.g., python).REPORT: Reporting format (e.g., compact).
Axis Configuration
These variables define the parameters for the Axis testing logic:
AXIS_S1NAME: Comma-separated list of service names for S1 (e.g., go,python,java,nodejs).AXIS_S1TRANSPORT: (Implicitly used via S1 configuration).AXIS_SAMPLED: Comma-separated list of sampling booleans (e.g., true,false).AXIS_S2NAME: Comma-separated list of service names for S2 (e.g., go,python,java,nodejs).AXIS_S2TRANSPORT: Transport protocol for S2 (e.g., http).AXIS_S3NAME: Comma-separated list of service names for S3 (e.g., go,python,java,nodejs).AXIS_S3TRANSPORT: Transport protocol for S3 (e.g., http).
Behavior Configuration
BEHAVIOR_TRACE: Defines the trace behavior pattern (e.g., client,s1name,sampled,s2name,s2transport,s3name,s3transport).BEHAVIOR_ENDTOEND: Defines the end-to-end behavior pattern (e.g., testdriver,services).
services:
crossdock:
environment:
- WAIT_FOR=test_driver,go,python,java,nodejs
- WAIT_FOR_TIMEOUT=60s
- CALL_TIMEOUT=60s
- AXIS_CLIENT=go
- AXIS_S1NAME=go,python,java,nodejs
- AXIS_SAMPLED=true,false
- AXIS_S2NAME=go,python,java,nodejs
- AXIS_S2TRANSPORT=http
- AXIS_S3NAME=go,python,java,nodejs
- AXIS_S3TRANSPORT=http
- BEHAVIOR_TRACE=client,s1name,sampled,s2name,s2transport,s3name,s3transport
- AXIS_TESTDRIVER=test_driver
- AXIS_SERVICES=python
- BEHAVIOR_ENDTOEND=testdriver,services
- REPORT=compact