atlas-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Madhan Neethiraj (Jira)" <j...@apache.org>
Subject [jira] [Resolved] (ATLAS-1102) DefaultMetadataServiceTest can fail in json string comparison
Date Mon, 18 May 2020 04:59:00 GMT

     [ https://issues.apache.org/jira/browse/ATLAS-1102?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Madhan Neethiraj resolved ATLAS-1102.
-------------------------------------
    Resolution: Abandoned

This refers to code that doesn't exist any more in Atlas.

> DefaultMetadataServiceTest can fail in json string comparison
> -------------------------------------------------------------
>
>                 Key: ATLAS-1102
>                 URL: https://issues.apache.org/jira/browse/ATLAS-1102
>             Project: Atlas
>          Issue Type: Bug
>            Reporter: Dave Kantor
>            Assignee: Vimal Sharma
>            Priority: Minor
>
> When running build on a Linux VM, I observed DefaultMetadataServiceTest failing when
doing a comparison of json strings serialized from Reference instances.  The objects are equivalent
but the attributes are serialized in a different order.
> {noformat}
> DefaultMetadataServiceTest.testSpecialCharacters:231->assertReferenceableEquals:251
expected:<{
>   "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>   "id":{
>     "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>     "id":"-3902865145221408",
>     "version":0,
>     "typeName":"C23uFuNbhg\"${}%",
>     "state":"ACTIVE"
>   },
>   "typeName":"C23uFuNbhg\"${}%",
>   "values":{
>     "pSXqnaPYeh\"${}%":"DYm4diYqog\"${}%",
>     "ectzWlqBQt\"${}%":[
>       "rxstQGf9Ym\"${}%"
>     ],
>     "D9fOcAp4M5\"${}%":{
>       "sNZLOZhnno\"${}%":"aqhsYeSqwn\"${}%"
>     }
>   },
>   "traitNames":[
>   ],
>   "traits":{
>   }
> }> but was:<{
>   "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Reference",
>   "id":{
>     "jsonClass":"org.apache.atlas.typesystem.json.InstanceSerialization$_Id",
>     "id":"-3902865145221408",
>     "version":0,
>     "typeName":"C23uFuNbhg\"${}%",
>     "state":"ACTIVE"
>   },
>   "typeName":"C23uFuNbhg\"${}%",
>   "values":{
>     "ectzWlqBQt\"${}%":[
>       "rxstQGf9Ym\"${}%"
>     ],
>     "pSXqnaPYeh\"${}%":"DYm4diYqog\"${}%",
>     "D9fOcAp4M5\"${}%":{
>       "sNZLOZhnno\"${}%":"aqhsYeSqwn\"${}%"
>     }
>   },
>   "traitNames":[
>   ],
>   "traits":{
>   }
> }>
> {noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message