X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=osm_lcm%2Ftests%2Ftest_ns.py;h=dcf502069d0e10803cde3633f97bbeb08c88c8ef;hb=7ab529a15d7b441e5338eaea0f2f567fe67cd34c;hp=eb13e456d9e040e5a239d5b5d62dd99a040a90ac;hpb=2b82991a51ddfcf1c9848f61266612e57524e630;p=osm%2FLCM.git diff --git a/osm_lcm/tests/test_ns.py b/osm_lcm/tests/test_ns.py index eb13e45..dcf5020 100644 --- a/osm_lcm/tests/test_ns.py +++ b/osm_lcm/tests/test_ns.py @@ -31,7 +31,7 @@ from uuid import uuid4 __author__ = "Alfonso Tierno " -""" Perform unittests using asynctest +""" Perform unittests using asynctest of osm_lcm.ns module It allows, if some testing ENV are supplied, testing without mocking some external libraries for debugging: OSMLCMTEST_NS_PUBKEY: public ssh-key returned by N2VC to inject to VMs OSMLCMTEST_PACKAGES_PATH: path where the vnf-packages are stored (de-compressed), each one on a 'vnfd_id' folder @@ -39,7 +39,7 @@ It allows, if some testing ENV are supplied, testing without mocking some extern OSMLCMTEST_VCA_NOMOCK: Do no mock the VCA, N2VC library, for debugging it OSMLCMTEST_RO_NOMOCK: Do no mock the ROClient library, for debugging it OSMLCMTEST_DB_NOMOCK: Do no mock the database library, for debugging it - OSMLCMTEST_FS_NOMOCK: Do no mock the File Sorage library, for debugging it + OSMLCMTEST_FS_NOMOCK: Do no mock the File Storage library, for debugging it OSMLCMTEST_LOGGING_NOMOCK: Do no mock the logging OSMLCM_VCA_XXX: configuration of N2VC OSMLCM_RO_XXX: configuration of RO @@ -48,9 +48,11 @@ It allows, if some testing ENV are supplied, testing without mocking some extern vca_config = { # TODO replace with os.get_env to get other configurations "host": getenv("OSMLCM_VCA_HOST", "vca"), - "port": 17070, - "user": "admin", - "secret": "secret", + "port": getenv("OSMLCM_VCA_PORT", 17070), + "user": getenv("OSMLCM_VCA_USER", "admin"), + "secret": getenv("OSMLCM_VCA_SECRET", "vca"), + "pubkey": getenv("OSMLCM_VCA_PUBKEY", None), + 'cacert': getenv("OSMLCM_VCA_CACERT", None) } ro_config = {