|
|
|
# Update Conformance Test osm_client.py
|
|
|
|
|
|
|
|
When running the test, it attempts to access the OSM North Bound Interface (NBI) at a hard coded port of 9999. This is not correct, as the port number should be in the OSM_HOSTNAME environment variable already, or if not, can default to 9999.
|
|
|
|
|
|
|
|
|
|
|
|
This goal is to change the tests/conformance-tests/osm_client.py to either:
|
|
|
|
|
|
|
|
1. Not use any port at all, but insist that it is in the OSM_HOSTNAME instead, or
|
|
|
|
2. Check the contents of the `OSM_HOSTNAME` variable. If it contains a `:`, then use the number after the `:` as the port. If it does not, then use 9999 as the port.
|
|
|
|
|
|
|
|
2 is the preferred goal. 1 can be done as a short term workaround.
|
|
|
|
|
|
|
|
We also need to change other places where ports are hard coded:
|
|
|
|
- tests/conformance-tests/test-lists/NSDManagement-API.txt
|
|
|
|
|
|
|
|
|
|
|
|
Once the code change has been made, rebuild the container with stage 2 and 3, and re run:
|
|
|
|
```
|
|
|
|
~/devops/tools/local-build.sh stage-2 --module IM,osmclient,tests
|
|
|
|
~/devops/tools/local-build.sh stage-3 --module tests
|
|
|
|
~/devops/tools/local-build.sh start-robot --openstackrc ~/openstack.rc --osm-tests-image-tag devel
|
|
|
|
```
|
|
|
|
|
|
|
|
Note: Might need to run these commands with `--no-cache`
|
|
|
|
```
|
|
|
|
./run_test.sh -T 2.7.1 -t nothing
|
|
|
|
``` |
|
|
|
\ No newline at end of file |