Login | Register

Documentation

Documentation -> Manuals -> Manual 3.4 -> Binary Internal Interface

Pages for other versions: devel 3.5 3.4 Older versions: 3.3


Conformance Tests v3.4
Prev

Conformance/Conformity tests are being run in order to validate OpenSIPS behavior in certain scenarios. The goal is to provide insurance that any change to OpenSIPS' code (either due to bug fixes or new features) are running according to the desired specifications and that there are no regressions.

To this end, we have developed a set of tests set that execute OpenSIPS in different scenarios with different SIP flows, and validate that all the involved components (OpenSIPS as well as databases, provisioning, SIP UAs) are inter-operating correctly and their behavior is the expected one.


Setup

The first requirement is to install SIPssert - a testing framework capable of orchestrating complex conformance scenarios and verify their execution. You can follow the install instructions on the project's page.

Next, we need to fetch the tests available. For the initial setup, we need to clone the repository:

git clone git@github.com:OpenSIPS/sipssert-opensips-tests.git

If you are targeting a stable release, make sure you specify the OpenSIPS branch/version you need:

git clone -b 3.4 git@github.com:OpenSIPS/sipssert-opensips-tests.git

Navigate to the tests' directory. If the repository has been previously cloned, make sure you keep it up to date by running:

git pull --rebase

Testing

Once SIPssert is in place and the tests repository is cloned, you need to navigate to the tests repository and run:

sipssert *

This command will run all the available tests sets, with the default configuration. If you want to test only a specific tests set, or only a specific test, you may provide additional arguments to the sipssert tool. See Instructions page for more information.


Development

There is always place for developing new tests, either to ensure old code behaves properly, either to prove that it does not - any contribution is welcome. Therefore, if you have a new test you want to include, feel free to open a pull request on the project's tracker.



Page last modified on April 04, 2023, at 08:48 AM