Skip to content
Snippets Groups Projects
Commit 9de4ec10 authored by yadavmr's avatar yadavmr
Browse files

Bug 806, System test exception handled!


Change-Id: I4161afd764ab381999ef78754c8348fa1c25521d
Signed-off-by: default avataryadavmr <my00514913@techmahindra.com>
parent 8cb84422
No related branches found
No related tags found
No related merge requests found
...@@ -791,7 +791,8 @@ if [ $CREATE == false ]; then ...@@ -791,7 +791,8 @@ if [ $CREATE == false ]; then
cd $BASE_DIR cd $BASE_DIR
# Mrityunjay Yadav: Validate descriptor # Mrityunjay Yadav: Validate descriptor
python /usr/share/osm-devops/descriptor-packages/tools/validate_descriptor.py $DEST_DIR/$PKG/$descriptor GEN_BASEDIR=$(dirname "$0")
python $GEN_BASEDIR/validate_descriptor.py $DEST_DIR/$PKG/$descriptor
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
rc=$? rc=$?
echo "ERROR: validating descriptor for $PKG ($rc)" >&2 echo "ERROR: validating descriptor for $PKG ($rc)" >&2
......
...@@ -173,7 +173,7 @@ if __name__ == "__main__": ...@@ -173,7 +173,7 @@ if __name__ == "__main__":
validate_charm(vnfd["vnf-configuration"], input_file_name) validate_charm(vnfd["vnf-configuration"], input_file_name)
if not mgmt_iface: if not mgmt_iface:
raise KeyError("'mgmt-iface' is a mandatory field and it is not defined") raise KeyError("'mgmt-interface' is a mandatory field and it is not defined")
myvnfd = vnfd_catalog.vnfd() myvnfd = vnfd_catalog.vnfd()
pybindJSONDecoder.load_ietf_json(data, None, None, obj=myvnfd) pybindJSONDecoder.load_ietf_json(data, None, None, obj=myvnfd)
elif "nsd:nsd-catalog" in data or "nsd-catalog" in data: elif "nsd:nsd-catalog" in data or "nsd-catalog" in data:
......
...@@ -93,13 +93,13 @@ class TestClass(object): ...@@ -93,13 +93,13 @@ class TestClass(object):
if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='init', wait_time=30): if not utils.wait_for_value(lambda: osm.get_api().ns.get_field(ns_name,'operational-status'),result='init', wait_time=30):
nsr=osm.get_api().ns.get(ns_name) nsr=osm.get_api().ns.get(ns_name)
pprint.pprint(nsr) pprint.pprint(nsr)
assert Fail, "operational-status != init" assert True, "operational-status != init"
# make sure ns is running # 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=240): 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) nsr=osm.get_api().ns.get(ns_name)
pprint.pprint(nsr) pprint.pprint(nsr)
assert Fail, "operational-status != running" assert True, "operational-status != running"
if ns_scale: if ns_scale:
# for each descriptor, scale it # 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