Skip to content
README.md 897 B
Newer Older
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
# Mock TFS NBI Dependencies
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
This gRPC Mock TFS NBI Dependencies server implements very basic support for the testing of the NBI component.
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
## 1. Install requirements for the Mock TFS NBI Dependencies
__NOTE__: if you run the Mock TFS NBI Dependencies from the PyEnv used for developing on the TeraFlowSDN
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
framework and you followed the official steps in
[Development Guide > Configure Environment > Python](https://tfs.etsi.org/documentation/latest/development_guide/#211-python),
all the requirements are already in place. Install them only if you execute it in a separate/standalone environment.

Install the required dependencies as follows:
```bash
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
pip install -r src/tests/tools/mock_tfs_nbi_dependencies/requirements.in
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
```

Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
## 2. Run the Mock TFS NBI Dependencies
Run the Mock TFS NBI Dependencies as follows:
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
```bash
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
PYTHONPATH=./src python -m tests.tools.mock_tfs_nbi_dependencies
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
```