projects
/
osm
/
devops.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Adds healthcheck to LWUI Dockerfile"
[osm/devops.git]
/
systest
/
testcases
/
vnfs
/
test_vnfs.py
diff --git
a/systest/testcases/vnfs/test_vnfs.py
b/systest/testcases/vnfs/test_vnfs.py
index
a95f72b
..
cb025ef
100644
(file)
--- 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
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=
3
0):
+ if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='running',wait_time=
24
0):
nsr=osm.get_api().ns.get(ns_name)
pprint.pprint(nsr)
assert Fail, "operational-status != running"
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)
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:
assert not osm.get_api().nsd.delete(nsd_desc['name'])
for file in vnfd_file_list: