Jackan Test #1487

Test didn't pass!

java.lang.reflect.InvocationTargetException
	at sun.reflect.GeneratedMethodAccessor167.invoke(Unknown Source)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTest(CkanTestReporter.java:188)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.runTests(CkanTestReporter.java:266)
	at eu.trentorise.opendata.jackan.test.ckan.CkanTestReporter.main(CkanTestReporter.java:102)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:606)
	at org.codehaus.mojo.exec.ExecJavaMojo$1.run(ExecJavaMojo.java:293)
	at java.lang.Thread.run(Thread.java:745)
Caused by: eu.trentorise.opendata.jackan.exceptions.CkanException: Couldn't interpret json returned by the server! Returned text was: {"help": "https://data.hdx.rwlabs.org/api/3/action/help_show?name=organization_show", "success": true, "result": {"users": [{"email_hash": "8b7e9cd3b1e496d89e656cd25acdee45", "about": null, "capacity": "admin", "name": "cmuasya-3001", "created": "2015-03-20T06:21:53.067841", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 0, "display_name": "cmuasya-3001", "fullname": null, "id": "650ba503-e0c3-4806-ad00-decb55244b1d", "number_created_packages": 0}, {"email_hash": "38e4f31249da252e572fb6d96e7176b8", "about": null, "capacity": "admin", "name": "llocke-3769", "created": "2015-03-20T06:23:29.647754", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 0, "display_name": "llocke-3769", "fullname": null, "id": "88a9c99e-47db-47ff-9a8d-fbf1d0891c55", "number_created_packages": 0}, {"email_hash": "e83465f772a59b4b3121b2701aeed5ad", "about": "", "capacity": "admin", "name": "pisabirye", "created": "2015-02-20T14:11:44.142330", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 6, "display_name": "Patricia Isabirye", "fullname": "Patricia Isabirye", "id": "b071af04-adac-45ac-9dbd-231a164f4c94", "number_created_packages": 0}, {"email_hash": "58c01b62183a667f1a4fc0e61585179a", "about": null, "capacity": "admin", "name": "tdwyer-779", "created": "2015-03-20T06:22:52.800068", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "display_name": "tdwyer-779", "fullname": null, "id": "7ac4a744-f060-4609-947f-747b56ba8d96", "number_created_packages": 0}], "display_name": "Adeso", "description": "Adeso, formerly known as Horn Relief, was established in 1991 in response to Somalia\u2019s devastating humanitarian crisis and civil war. We started as a small grassroots organization dedicated to helping Somalia\u2019s pastoralist groups, particularly women and youth. Adeso has since grown into an African-based organization working in Kenya, Somalia and South Sudan where we advocate for much-needed resources for our partner communities and work hard to co-create innovative long-lasting solutions.", "image_display_url": "", "package_count": 0, "created": "2015-02-23T02:48:05.548937", "name": "adeso", "is_organization": true, "state": "active", "extras": [{"value": "", "state": "active", "key": "fts_id", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "group_id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "id": "d70d9147-c257-4871-87d0-7ae222f4958e"}, {"value": "http://www.adesoafrica.org/", "state": "active", "key": "org_url", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "group_id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "id": "ae0165ed-c984-4d87-8b6a-4bbc999ac477"}], "image_url": "", "groups": [], "type": "organization", "title": "Adeso", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "num_followers": 1, "id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "tags": [], "approval_status": "approved"}}  CkanClient{catalogURL=http://data.hdx.rwlabs.org, ckanToken=null}
	at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:530)
	at eu.trentorise.opendata.jackan.CkanClient.getOrganization(CkanClient.java:1111)
	at eu.trentorise.opendata.jackan.test.ckan.ReadCkanIT.testOrganization(ReadCkanIT.java:350)
	... 12 more
Caused by: com.fasterxml.jackson.databind.exc.InvalidFormatException: Can not construct instance of eu.trentorise.opendata.jackan.model.CkanState from String value 'pending': value not one of declared Enum instance names: [deleted, active]
 at [Source: {"help": "https://data.hdx.rwlabs.org/api/3/action/help_show?name=organization_show", "success": true, "result": {"users": [{"email_hash": "8b7e9cd3b1e496d89e656cd25acdee45", "about": null, "capacity": "admin", "name": "cmuasya-3001", "created": "2015-03-20T06:21:53.067841", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 0, "display_name": "cmuasya-3001", "fullname": null, "id": "650ba503-e0c3-4806-ad00-decb55244b1d", "number_created_packages": 0}, {"email_hash": "38e4f31249da252e572fb6d96e7176b8", "about": null, "capacity": "admin", "name": "llocke-3769", "created": "2015-03-20T06:23:29.647754", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 0, "display_name": "llocke-3769", "fullname": null, "id": "88a9c99e-47db-47ff-9a8d-fbf1d0891c55", "number_created_packages": 0}, {"email_hash": "e83465f772a59b4b3121b2701aeed5ad", "about": "", "capacity": "admin", "name": "pisabirye", "created": "2015-02-20T14:11:44.142330", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "active", "number_of_edits": 6, "display_name": "Patricia Isabirye", "fullname": "Patricia Isabirye", "id": "b071af04-adac-45ac-9dbd-231a164f4c94", "number_created_packages": 0}, {"email_hash": "58c01b62183a667f1a4fc0e61585179a", "about": null, "capacity": "admin", "name": "tdwyer-779", "created": "2015-03-20T06:22:52.800068", "openid": null, "sysadmin": false, "activity_streams_email_notifications": false, "state": "pending", "number_of_edits": 0, "display_name": "tdwyer-779", "fullname": null, "id": "7ac4a744-f060-4609-947f-747b56ba8d96", "number_created_packages": 0}], "display_name": "Adeso", "description": "Adeso, formerly known as Horn Relief, was established in 1991 in response to Somalia\u2019s devastating humanitarian crisis and civil war. We started as a small grassroots organization dedicated to helping Somalia\u2019s pastoralist groups, particularly women and youth. Adeso has since grown into an African-based organization working in Kenya, Somalia and South Sudan where we advocate for much-needed resources for our partner communities and work hard to co-create innovative long-lasting solutions.", "image_display_url": "", "package_count": 0, "created": "2015-02-23T02:48:05.548937", "name": "adeso", "is_organization": true, "state": "active", "extras": [{"value": "", "state": "active", "key": "fts_id", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "group_id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "id": "d70d9147-c257-4871-87d0-7ae222f4958e"}, {"value": "http://www.adesoafrica.org/", "state": "active", "key": "org_url", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "group_id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "id": "ae0165ed-c984-4d87-8b6a-4bbc999ac477"}], "image_url": "", "groups": [], "type": "organization", "title": "Adeso", "revision_id": "62b46795-dc06-4db3-808b-b6581040ded0", "num_followers": 1, "id": "ac6b71aa-42b6-4406-83ad-d256579e02a6", "tags": [], "approval_status": "approved"}}; line: 1, column: 1574] (through reference chain: eu.trentorise.opendata.jackan.OrganizationResponse["result"]->eu.trentorise.opendata.jackan.model.CkanOrganization["users"]->java.util.ArrayList[3]->eu.trentorise.opendata.jackan.model.CkanUser["state"])
	at com.fasterxml.jackson.databind.exc.InvalidFormatException.from(InvalidFormatException.java:55)
	at com.fasterxml.jackson.databind.DeserializationContext.weirdStringException(DeserializationContext.java:904)
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer._deserializeAltString(EnumDeserializer.java:130)
	at com.fasterxml.jackson.databind.deser.std.EnumDeserializer.deserialize(EnumDeserializer.java:84)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:245)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:217)
	at com.fasterxml.jackson.databind.deser.std.CollectionDeserializer.deserialize(CollectionDeserializer.java:25)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:95)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:520)
	at com.fasterxml.jackson.databind.deser.impl.FieldProperty.deserializeAndSet(FieldProperty.java:101)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.vanillaDeserialize(BeanDeserializer.java:256)
	at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:125)
	at com.fasterxml.jackson.databind.ObjectMapper._readMapAndClose(ObjectMapper.java:3702)
	at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:2714)
	at eu.trentorise.opendata.jackan.CkanClient.getHttp(CkanClient.java:528)
	... 14 more