ml_information_h info_h = NULL;
gchar *value;
+ const gchar *model_desc = "desc-model-test";
+
status = ml_service_model_delete (model_name, 0U);
assert (status == ML_ERROR_NONE || status == ML_ERROR_INVALID_PARAMETER);
- status = ml_service_model_register (model_name, test_model, true, NULL, &version);
+ status = ml_service_model_register (model_name, test_model, true, model_desc, &version);
assert_eq (ML_ERROR_NONE, status);
status = ml_service_model_get (model_name, version, &info_h);
gchar *description;
status = ml_information_get (info_h, "description", (void **) &description);
assert_eq (ML_ERROR_NONE, status);
- assert (0 == strcmp ("", description));
+ assert (0 == strcmp (model_desc, description));
status = ml_information_get (info_h, key, NULL);
assert_eq (ML_ERROR_INVALID_PARAMETER, status);