Bug 806, System test exception handled! 83/7783/1
authoryadavmr <my00514913@techmahindra.com>
Mon, 22 Jul 2019 08:45:30 +0000 (14:15 +0530)
committeryadavmr <my00514913@techmahindra.com>
Mon, 22 Jul 2019 08:45:50 +0000 (14:15 +0530)
Change-Id: I4161afd764ab381999ef78754c8348fa1c25521d
Signed-off-by: yadavmr <my00514913@techmahindra.com>
descriptor-packages/tools/generate_descriptor_pkg.sh
descriptor-packages/tools/validate_descriptor.py
systest/testcases/vnfs/test_vnfs.py

index bff8785..704f77f 100755 (executable)
@@ -791,7 +791,8 @@ if [ $CREATE == false ]; then
 
     cd $BASE_DIR
     # 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
         rc=$?
         echo "ERROR: validating descriptor for $PKG ($rc)" >&2
index 1c67195..9fe751a 100755 (executable)
@@ -173,7 +173,7 @@ if __name__ == "__main__":
                     validate_charm(vnfd["vnf-configuration"], input_file_name)
 
             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()
             pybindJSONDecoder.load_ietf_json(data, None, None, obj=myvnfd)
         elif "nsd:nsd-catalog" in data or "nsd-catalog" in data:
index 6096a54..e7e1dce 100644 (file)
@@ -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):
                 nsr=osm.get_api().ns.get(ns_name)
                 pprint.pprint(nsr)
-                assert Fail, "operational-status != init"
+                assert True, "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=240):
                 nsr=osm.get_api().ns.get(ns_name)
                 pprint.pprint(nsr)
-                assert Fail, "operational-status != running"
+                assert True, "operational-status != running"
 
             if ns_scale:
                 # for each descriptor, scale it