GNPy functional tests 91/82691/7
authorAhmed Triki <ahmed.triki@orange.com>
Mon, 24 Jun 2019 16:07:43 +0000 (18:07 +0200)
committerguillaume.lambert <guillaume.lambert@orange.com>
Wed, 26 Jun 2019 14:00:37 +0000 (16:00 +0200)
commit6591095f6ce2a64ebcba11dab8836bb7656b09e5
tree569cc51e059a6f29377f24d8e327dd9f93ab04b3
parenta05bba4c09700f9e2bc0520d5de384477abd0107
GNPy functional tests

create a test python script for GNPy that performs the following steps:
- mount clli-topology, openroadm-network and openroadm-topology
- oms-attributes are added in the description of openroadm-topology
- test the gnpy-response in the output of transportpce-pce:path-
  computation-request
- unmount the topologies

modify tox.ini to add the corresponding gnpy profile (not launched in
releng) to additionally :
- retrieve the GNPy REST server docker image on dockerhub if needed
- run the docker image
- maps the container port 5000 to localhost:8008
  because 5000 is a default port already used by Jenkins
  and 8008 is an official alternate HTTP port

changes GNPy server port harcoded in project code from 5000 to 8008

JIRA: TRNSPRTPCE-131

Change-Id: I68211b31bdb65a4491f456ac78838d9f02ca8a92
Signed-off-by: Ahmed Triki <ahmed.triki@orange.com>
pce/src/main/java/org/opendaylight/transportpce/pce/gnpy/ConnectToGnpyServer.java
tests/transportpce_tests/1.2.1/test_gnpy.py [new file with mode: 0644]
tox.ini