X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FNBI.git;a=blobdiff_plain;f=osm_nbi%2Ftests%2Frun_test.py;h=079b129095bd126ad187582a454fd598cc2834f7;hp=f33935478b79f58c9de1bf145449feca26c16b75;hb=c26740a54b2b1acf5663aab0b2c4753b9949504c;hpb=4568a372eb5a204e04d917213de03ec51f9110c1 diff --git a/osm_nbi/tests/run_test.py b/osm_nbi/tests/run_test.py index f339354..079b129 100755 --- a/osm_nbi/tests/run_test.py +++ b/osm_nbi/tests/run_test.py @@ -371,7 +371,7 @@ class TestRest: location = r.headers.get("Location") if location: - _id = location[location.rfind("/") + 1 :] + _id = location[location.rfind("/") + 1:] if _id: self.last_id = str(_id) if not pooling: @@ -479,7 +479,10 @@ class TestRest: "Env OSMNBITEST_VIM_URL and OSMNBITEST_VIM_TENANT are needed for create a real VIM" " to deploy on whit the --test-osm option" ) - vim_data = "{{schema_version: '1.0', name: '{}', vim_type: {}, vim_url: '{}', vim_tenant_name: '{}', " "vim_user: {}, vim_password: {}".format( + vim_data = ( + "{{schema_version: '1.0', name: '{}', vim_type: {}, vim_url: '{}'," + "vim_tenant_name: '{}', " "vim_user: {}, vim_password: {}" + ).format( vim_name, os.environ.get("OSMNBITEST_VIM_TYPE", "openstack"), os.environ.get("OSMNBITEST_VIM_URL"), @@ -3021,7 +3024,9 @@ class TestDeployIpMac(TestDeploy): "vnfd_2vdu_set_ip_mac.yaml", ) self.nsd_filename = "scenario_2vdu_set_ip_mac.yaml" - self.descriptor_url = "https://osm.etsi.org/gitweb/?p=osm/RO.git;a=blob_plain;f=test/RO_tests/v3_2vdu_set_ip_mac/" + self.descriptor_url = ( + "https://osm.etsi.org/gitweb/?p=osm/RO.git;a=blob_plain;f=test/RO_tests/v3_2vdu_set_ip_mac/" + ) self.commands = { "1": [ "ls -lrt",