X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2Ftestcases%2Fvnfs%2Ftest_vnfs.py;h=cb025ef624a4c9d192048ae2c552df2600288e63;hb=3906af13d3b86b5602c4c69c9b12f45f71a652cd;hp=a95f72b07576af01cb5e3454404df6803cf5f7f5;hpb=dc782d58f440e71f9ccccb76d11f9e8d554e02cc;p=osm%2Fdevops.git diff --git a/systest/testcases/vnfs/test_vnfs.py b/systest/testcases/vnfs/test_vnfs.py index a95f72b0..cb025ef6 100644 --- a/systest/testcases/vnfs/test_vnfs.py +++ b/systest/testcases/vnfs/test_vnfs.py @@ -96,7 +96,7 @@ class TestClass(object): assert Fail, "operational-status != init" # make sure ns is running - if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='running',wait_time=30): + if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='running',wait_time=240): nsr=osm.get_api().ns.get(ns_name) pprint.pprint(nsr) assert Fail, "operational-status != running" @@ -117,6 +117,12 @@ class TestClass(object): assert not osm.get_api().ns.delete(ns_name) + #wait for the ns to delete + try: + utils.wait_for_value( lambda: osm.get_api().ns.get(nsd_desc['name']), result=False, wait_time=180) + except: + pass + assert not osm.get_api().nsd.delete(nsd_desc['name']) for file in vnfd_file_list: