Skip to content
Snippets Groups Projects
Commit 7cb84dea authored by Michael Marchetti's avatar Michael Marchetti
Browse files

Add additional logging on failure of ns-create


Signed-off-by: default avatarMichael Marchetti <mmarchetti@sandvine.com>
parent 9b27a61a
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ import pytest
import pprint
import time
from osmclient.common import utils
import pprint
class TestClass(object):
......@@ -86,10 +86,16 @@ class TestClass(object):
assert osm.get_api().ns.create(nsd_desc['name'],ns_name,vim.vim_name)
assert utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='init', wait_time=10)
if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='init', wait_time=10):
nsr=osm.get_api().ns.get(ns_name)
pprint.pprint(nsr)
assert Fail, "operational-status != init"
# make sure ns is running
assert 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=30):
nsr=osm.get_api().ns.get(ns_name)
pprint.pprint(nsr)
assert Fail, "operational-status != running"
if ns_scale:
# for each descriptor, scale it
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment