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
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:
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