This document describes the configuration options for the CXML Fetcher Tester application.
Put configuration into a local .env file for testing in development, without the fetcher_tester_ prefix- can also be provided as flags in the app startup, again without the prefix.
Use the prefix if providing ENVs from the environment itself.
- Flag: test_hostname
- Required: Yes
- Description: The hostname to use for the local webhost/webhooks, for relevant tests.
- Default: N/A
- Flag: test_ip
- Required: Yes
- Description: The IP address to use for the local webhost/webhooks, for relevant tests.
- Default: N/A
- Flag: test_project_id
- Required: Yes
- Description: The SignalWire project ID to use.
- Default: N/A
- Flag: test_space_id
- Required: Yes
- Description: The SignalWire space ID to use.
- Default: N/A
- Flag: test_api_token
- Required: Yes
- Description: The SignalWire security token to use.
- Default: N/A
- Flag: test_to_number
- Required: Yes
- Description: The 'To Number' to use for dialed calls (required but not really used).
- Default: N/A
- Flag: test_from_number
- Required: Yes
- Description: The 'From Number' to use for dialed calls (required but not really used).
- Default: N/A
- Flag: test_response
- Required: No
- Description: The XML payload to return in OK test responses.
- Default: N/A
- Flag: test_delay_ms
- Required: No
- Description: Delay in milliseconds for the "delay response" test.
- Default: 0
- Range: Greater than 0, Less than or Equal to 10000
- Flag: test_to_run
- Required: No
- Description: Runs a specific test, if set- all tests will run otherwise.
- Default: N/A
Just need to run the following three commands:
make build- if wanting to test SSH, copy your pfx cert to
./certs/{domain}/certificate.pfx- alternatively, just run
make certs, and it'll handle it
- alternatively, just run
- if wanting to test SSH, copy your pfx cert to
make upmake test
A list of tests that can be set with fetcher_tester_test_to_run:
- hostname-test
- ip-test
- ssl-test
- ip-ssl-test
- port-8080-test
- port-8080-ip-test
- port-8080-ssl-test
- port-8080-ip-ssl-test
- delayed-test