atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Neeru Gupta <nee...@us.ibm.com>
Subject Review Request 42967: ATLAS-396: propagate TypeNotFoundException when entity creation fails due to unknown type
Date Fri, 29 Jan 2016 18:31:02 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/42967/
-----------------------------------------------------------

Review request for atlas.


Bugs: ATLAS-396
    https://issues.apache.org/jira/browse/ATLAS-396


Repository: atlas


Description
-------

Creating an entity with non-existing type results in "Unable to deserialize json" error. This
error message should have been "Unknown datatype: "


Diffs
-----

  repository/src/main/java/org/apache/atlas/services/DefaultMetadataService.java b38facec98b46ddb595ed30af19cb5016d5d967d

  repository/src/test/java/org/apache/atlas/service/DefaultMetadataServiceTest.java 085888d5cf0753e4caf5ba73f5f806db2a3596f8


Diff: https://reviews.apache.org/r/42967/diff/


Testing
-------

Have added new test case to expect unknown type exception. 

Tested by trying to create an entity with unknow type and got the "Unknow datatype error".

Tried to create an entity with incorrect json format. Received expected, "Unable to deserialize
error".


Thanks,

Neeru Gupta


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message