def entities_are_not_stored_in_mongo(context): """ verify that entities are not stored in mongo :param context: It’s a clever place where you and behave can store information to share around. It runs at three levels, automatically managed by behave. """ __logger__.debug(" >> verifying entities are not stored in mongo") mongo = Mongo(host=props_mongo["MONGO_HOST"], port=props_mongo["MONGO_PORT"], user=props_mongo["MONGO_USER"], password=props_mongo["MONGO_PASS"]) ngsi = NGSI() ngsi.verify_entities_stored_in_mongo(mongo, context.cb.get_entity_context(), context.cb.get_headers(), False) __logger__.info(" >> verified entities are not stored in mongo")
def entities_are_not_stored_in_mongo(context): """ verify that entities are not stored in mongo """ global cb properties_class = Properties() props_mongo = properties_class.read_properties()["mongo_env"] # mongo properties dict __logger__.debug(" >> verifying entities are not stored in mongo") m = Mongo(host=props_mongo["MONGO_HOST"], port=props_mongo["MONGO_PORT"], user=props_mongo["MONGO_USER"], password=props_mongo["MONGO_PASS"]) ngsi = NGSI() ngsi.verify_entities_stored_in_mongo(m, cb.get_entity_context(), cb.get_headers(), False) __logger__.info(" >> verified entities are not stored in mongo")
def entities_are_not_stored_in_mongo(context): """ verify that entities are not stored in mongo :param context: It’s a clever place where you and behave can store information to share around. It runs at three levels, automatically managed by behave. """ __logger__.debug(" >> verifying entities are not stored in mongo") mongo = Mongo(host=props_mongo["MONGO_HOST"], port=props_mongo["MONGO_PORT"], user=props_mongo["MONGO_USER"], password=props_mongo["MONGO_PASS"]) ngsi = NGSI() ngsi.verify_entities_stored_in_mongo(mongo, context.cb.get_entity_context(), context.cb.get_headers(), False) __logger__.info(" >> verified entities are not stored in mongo")
def entities_are_not_stored_in_mongo(context): """ verify that entities are not stored in mongo """ global cb properties_class = Properties() props_mongo = properties_class.read_properties()[ "mongo_env"] # mongo properties dict __logger__.debug(" >> verifying entities are not stored in mongo") m = Mongo(host=props_mongo["MONGO_HOST"], port=props_mongo["MONGO_PORT"], user=props_mongo["MONGO_USER"], password=props_mongo["MONGO_PASS"]) ngsi = NGSI() ngsi.verify_entities_stored_in_mongo(m, cb.get_entity_context(), cb.get_headers(), False) __logger__.info(" >> verified entities are not stored in mongo")