Fixing feature

This commit is contained in:
Luca Frosini 2020-06-22 15:51:11 +02:00
parent 0743445abe
commit 1ef0537f0e
2 changed files with 2 additions and 1 deletions

View File

@ -230,6 +230,7 @@ public class CKANPackage extends CKAN {
// owner organization must be specified if the token belongs to a VRE
String organizationFromContext = getOrganizationName();
ckanOrganization = checkGotOrganization(organizationFromContext);
objectNode.put(OWNER_ORG_KEY, organizationFromContext);
}
return ckanOrganization;

View File

@ -235,7 +235,7 @@ public class CKANPackageTest extends ContextTest {
itemObjectNode.put(PRIVATE_KEY, false);
itemObjectNode.put(NOTES_KEY, "A research of Luca Frosini");
itemObjectNode.put(URL_KEY, "http://www.d4science.org");
itemObjectNode.put(CKANPackage.OWNER_ORG_KEY, "nextnext");
// itemObjectNode.put(CKANPackage.OWNER_ORG_KEY, "devvre");
ArrayNode tagArrayNode = itemObjectNode.putArray(CKANPackage.TAGS_KEY);
ObjectNode tagNode = mapper.createObjectNode();