1.2.1 • Published 8 months ago

@fonoster/seet v1.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

SIP End-to-End Testing

publish to docker hub

SEET is a suite for end-to-end testing of SIP deployments. We aim to add useful artifacts to help test and troubleshoot any SIP device or software. SEET is inspired in pysipp.

It lets you run complex scenarios involving multiple UASs and UACs. With SEET, you create your SIPp XML scenarios as usual and the suite creates the necesary User Agents and ensure the scenarios run in the correct sequence.

Scenario configuration

PropertyDescriptionRequired
nameThe name of the scenarioYes
descriptionThe description of the scenarioNo
targetSystem under testNo
transportModeSIPp transport mode. Check here for possible valuesYes
domainNeeded for registration. Defaults to targetNo
enabledEnables scenario. Defauls to trueNo
onlyExclude all other scenarios. Defauls to falseNo
userAgents.*.modeUser Agent mode. Possible values are uac and uasYes
userAgents.*.portPort to bind the User AgentNo
userAgents.*.scenarioFilePath to the SIPp XML scenarioYes
userAgents.*.authenticationUsername and password for SIP authenticationNo
userAgents.*.sendRegisterUsed for User Agent registrationNo
userAgents.*.sessionCountOptional Session Count sent during registration. Defaults to 0No
userAgents.*.expiresExpiration in seconds use in for sendRegister. Defaults to 30No
userAgents.*.timeoutMaximum duration in seconds for the scenarioNo
userAgents.*.variablesKey-value array for SIPp XML scenarioNo
userAgents.*.maxIterationsMaximum number of iterations for the scenario (Experimental)No
userAgents.*.maxRateMaximun rate of calls per second for the scenario (Experimental)No
userAgents.*.callLimitMaximum simultaneous calls for the scenario (Experimental)No

Example of scenario file

[
  {
    "name": "Simple SIP Message",
    "description": "UAC sends a simple MESSAGE to UAS and waits for an OK response",
    "target": "192.168.1.3",
    "transportMode": "u1",
    "domain": "sip.local",
    "userAgents": [
      {
        "mode": "uas",
        "scenarioFile": "scenarios/ims_uas.xml",
        "authentication": {
          "username": "1001",
          "secret": "1234"
        },
        "sendRegister": true,
        "expires": 30
      },
      {
        "mode": "uac",
        "scenarioFile": "scenarios/ims_uac.xml",
        "authentication": {
          "username": "1002",
          "secret": "1234"
        },
        "variables": [
          {
            "name": "requestURI",
            "value": "1001@sip.local"
          },
          {
            "name": "from",
            "value": "1002@sip.local"
          },
          {
            "name": "to",
            "value": "1001@sip.local"
          }
        ]
      }
    ],
    "enabled": true
  }
]

Available Versions

You can see all images available to pull from Docker Hub via the Tags page. Docker tag names that begin with a "change type" word, such as task, bug, or feature, are available for testing and may be removed at any time.

Installation

You can clone this repository and manually build it.

git clone https://github.com/fonoster/seet
cd seet
docker build -t fonoster/seet:%%VERSION%% .

Otherwise, you can pull this image from the docker index.

docker pull fonoster/seet:%%VERSION%%

Usage Example

The following is a basic example of using this image. Be sure to add the port of every User Agent Server. If you use an udp mode in your scenario (e.g. u1), you must also bind the port in docker with the corresponding notation.

docker run \
  -v $(pwd)/seet.json:/seet.json \
  -v $(pwd)/scenarios:/scenarios \
  -p 7060:7060/udp \
  -t fonoster/seet 

or with NodeJS

# Requires of sipp 3.6.0-r2 installed in the host
npm i -g @fonoster/seet
SCENARIOS=$(pwd)/seet_example.json seet

Environment Variables

Environment variables are used in the entry point script to render configuration templates. You can specify the values of these variables during docker run, docker-compose up, or in Kubernetes manifests in the env array.

  • SCENARIOS - Changes the default path to the scenario file.

Exposed ports

None

Volumes

  • /scenarios - Location for your SIPp XML files
  • /seet.json - Default location for your scenarios file

Contributing

Please read CONTRIBUTING.md for details on our code of conduct and the process for submitting pull requests to us.

Authors

See this project's list of contributors who participated.

License

Copyright (C) 2023 by Fonoster Inc. MIT License (see LICENSE for details).

1.2.0

8 months ago

1.2.1

8 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

2 years ago

1.0.5

2 years ago