Testing new Importer in 2.25

Hi,

We are testing metadata sync on 2.25. When metadata is imported in a new instance using the new Importer, we observe that the response returned by the below api is different (only order is different) in both the instances.

/api/charts/<chart_id>

This is the screenshot of userGroupAccesses section in response of the above api from both the instances

image

This is causing our tests to fail as they are asserting on output of the api. Is this expected behavior?

Thanks

Srikanth.

Hi Srikanth

userGroupAccesses is a Set<>, so you can’t depend on the order of that. It was like this in 224 also, but maybe you got lucky.

image

···

On Tue, Dec 20, 2016 at 1:26 PM, Srikanth Katta srikantk@thoughtworks.com wrote:

Hi,

We are testing metadata sync on 2.25. When metadata is imported in a new instance using the new Importer, we observe that the response returned by the below api is different (only order is different) in both the instances.

/api/charts/<chart_id>

This is the screenshot of userGroupAccesses section in response of the above api from both the instances

This is causing our tests to fail as they are asserting on output of the api. Is this expected behavior?

Thanks

Srikanth.


Mailing list: https://launchpad.net/~dhis2-devs

Post to : dhis2-devs@lists.launchpad.net

Unsubscribe : https://launchpad.net/~dhis2-devs

More help : https://help.launchpad.net/ListHelp

Morten Olav Hansen

Senior Engineer, DHIS 2

University of Oslo

http://www.dhis2.org