|
|
# Table of Contents
|
|
|
#Table of Contents
|
|
|
|
|
|
- [NFV API Conformance Test Specification](#NFV-API-Conformance-Test-Specification)
|
|
|
- [Content Structure](#Content-structure)
|
... | ... | @@ -6,7 +6,7 @@ |
|
|
- [Robot Framework Required Libraries](###Robot-Framework-Required-Libraries)
|
|
|
- [Running Tests](##Running-Tests)
|
|
|
|
|
|
# NFV API Conformance Test Specification
|
|
|
#NFV API Conformance Test Specification
|
|
|
|
|
|
[This repository](https://forge.etsi.org/gitlab/nfv/stf-557/api-tests) hosts the NFV API Conformance test specification for the APIs defined in ETSI NFV GS [SOL002](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.04.01_60/gs_NFV-SOL002v020401p.pdf), [SOL003](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.04.01_60/gs_NFV-SOL003v020401p.pdf), [SOL005](http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf), in their versions v2.4.1.
|
|
|
|
... | ... | @@ -14,7 +14,7 @@ The Test Specification is built as a collection of [Robot Framework](http://robo |
|
|
|
|
|
**IMPORTANT: This repository and the NFV API Conformance Test Specification is Work in Progress. The current version focuses on conformance tests of individual SOL002 and SOL003 resource endpoints. The [Robot Framework](http://robotframework.org/) Test Descriptions are expected to be consolidated and reviewed in the short term, and possibly re-organized to ease automation of NFV workflows testing. SOL005 Test Descriptions are under development and will be contributed during Q1-2019.**
|
|
|
|
|
|
## Content structure
|
|
|
##Content structure
|
|
|
|
|
|
This repository is following the structure of the ETSI NFV GS [SOL002](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/002/02.04.01_60/gs_NFV-SOL002v020401p.pdf), [SOL003](https://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/003/02.04.01_60/gs_NFV-SOL003v020401p.pdf), [SOL005](http://www.etsi.org/deliver/etsi_gs/NFV-SOL/001_099/005/02.04.01_60/gs_NFV-SOL005v020401p.pdf) specifications. It includes a dedicated folder for each of these NFV spec, with individual sub-folders for every interface in the given specification, following this structure:
|
|
|
```
|
... | ... | @@ -36,7 +36,7 @@ The *schemas* folders include the JSON schemas for requests and reponses over th |
|
|
|
|
|
The *environment* folders include the list of variables and parameters used in the [Robot Framework](http://robotframework.org/) Test Cases. The tester is expected to value these variables according to the tests to be executed.
|
|
|
|
|
|
## Dependencies and Preconditions
|
|
|
##Dependencies and Preconditions
|
|
|
The main precondition for running the tests is having [Robot Framework](http://robotframework.org/) installed.
|
|
|
The [Robot Framework Installation Instructions](https://github.com/robotframework/robotframework/blob/master/INSTALL.rst) provide full details of the installation procedure.
|
|
|
For those familiar with installing Python packages with [pip](http://pip-installer.org/) package manager, the following command can be run to install [Robot Framework](http://robotframework.org/):
|
... | ... | @@ -45,7 +45,7 @@ $ pip install robotframework |
|
|
```
|
|
|
[Robot Framework](http://robotframework.org/) 3.0 is recommended for this NFV API Conformance Test Specification. It requires Python 3.
|
|
|
|
|
|
### Robot Framework Required Libraries
|
|
|
###Robot Framework Required Libraries
|
|
|
The [Robot Framework](http://robotframework.org/) Test Cases in this repository depend on the following libraries:
|
|
|
|
|
|
* [RESTInstance](https://github.com/asyrjasalo/RESTinstance)
|
... | ... | @@ -66,7 +66,7 @@ $ cd robotframework-mockserver |
|
|
$ patch -p1 < <this_repo_dir>/extensions/mockserverlibrary.patch
|
|
|
$ python -m pip install -e .
|
|
|
```
|
|
|
## Running Tests
|
|
|
##Running Tests
|
|
|
You need to configure the needed files in the *json* folder and the variables in the *environment* folder with proper values.
|
|
|
|
|
|
e.g. to execute the tests in
|
... | ... | |