scaiptester
v0.2.4
Published
SCAIP protocol test plan
Downloads
4
Readme
Scaip Tester (0.1)
A tool to perform integration and performance tests.
This tool contains the artifacts to perform basic integration tests against an ARC system. It also features a "dummy ARC" to simulate basic ARC behavior. The Dummy version of the ARC is helpful to isolate the signaling server (Routr) from the rest of the solution.
Basic architecture:
[scaiptester] <=> Routr <=> ARC (Or dummy ARC)
Requirements
- NodeJS 12+
- SIPp v3.6.0-PCAP-RTPSTREAM
Installation
No particular installation is required. Just clone this repository and run:
cd scaiptester
npm i
Running the tests with npm
There are two artifacts to run. The arc_echo
and the test_arc
. Use the "arc_echo" to simulate the ARC or point your scenario.json
to a running instance of the ARC.
To run a full test, using the ARC simulator, perform the following steps.
First, run the arc_echo
with:
npm run start:echo
Then, on another terminal, run the tests with:
npm run test:arc
A report or output will be generated on the stdout and log files.
Running the tester with Docker(optional)
To build the SCAIP Tester, run:
Feel free to use the image
psanders/scaiptester
docker build -t psanders/scaiptester .
To run with docker:
docker run \
-v $(pwd)/scenarios.json:/home/fonos/scenarios.json \
--env-file .env -it psanders/scaiptester test_arc
To run on K8s:
kubectl create -f k8s/scaiptester.yml
To modify the behavior of the dummy ARC you can pass the same environment variables found on env_example.
The dummy ARC exposes the port 5061 by default