behave_tests: configure nfvbench ip/port with env vars 81/72781/2
authorGwenael Lambrouin <gwenael.lambrouin@orange.com>
Tue, 13 Jul 2021 16:27:51 +0000 (18:27 +0200)
committerGwenael Lambrouin <gwenael.lambrouin@orange.com>
Thu, 22 Jul 2021 15:07:51 +0000 (17:07 +0200)
commit67c8e918e97c91be16de253a8f0bcaddf285524a
tree466f6ce7d959a8ffac3515f903a45dcd6931ae24
parent93d8fc2cd18822136a4d848c38d934203e53c034
behave_tests: configure nfvbench ip/port with env vars

It is now possible to configure nfvbench server IP address and port number
with environment variables: NFVBENCH_SERVER_HOST and NFVBENCH_SERVER_PORT.

It is still possible to configure them in feature files, and the values found
in feature files take precedence.

This allows to have behave tests and nfvbench server running on different
machines without changing feature files, which is especially useful for
testing.

Signed-off-by: Gwenael Lambrouin <gwenael.lambrouin@orange.com>
Change-Id: I98dc7f87a1a233b90b44dfc8b26a1e63961fff3c
behave_tests/features/environment.py
behave_tests/features/steps/steps.py