Repository navigation
12281 data cite export - #12846
Merged
Merged
12281 data cite export#12846
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
pdurbin
approved these changes
Dec 3, 2026
Comment on lines
+4
to
+5
| import com.google.gson.annotations.SerializedName; | ||
|
|
Member
There was a problem hiding this comment.
I agree with AI that this import can be removed.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
1 similar comment
|
📦 Pushed preview images as 🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name. |
|
pdurbin
reviewed
Dec 3, 2026
| //.body("resource.dates.date[1].@dateType", CoreMatchers.equalTo("Available")) | ||
| .body("resource.dates.date[1]", CoreMatchers.equalTo("1999-12-31")) | ||
| .body("resource.version", equalTo("1.0")); | ||
|
|
Member
There was a problem hiding this comment.
I'm on e142332. Locally, I'm getting the error below. It's passing in CI so maybe something is different on my laptop.
pdurbin@beamish dataverse % mvn test -Dtest=DatasetsIT#testUpdateMultipleFileMetadata
[INFO] Scanning for projects...
(snip)
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running edu.harvard.iq.dataverse.api.DatasetsIT
Dec 03, 2026 7:03:30 PM edu.harvard.iq.dataverse.api.UtilIT getRestAssuredBaseUri
INFO: Base URL for tests: http://localhost:8080
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT createRandomUser
INFO: Creating random test user userc3330bb4
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT getUsernameFromResponse
INFO: Username found in create user response: userc3330bb4
Dec 03, 2026 7:03:31 PM edu.harvard.iq.dataverse.api.UtilIT getApiTokenFromResponse
INFO: API token found in create user response: d4102f32-f297-4163-ba66-bf755aabce93
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getAliasFromResponse
INFO: Alias found in create dataverse response: dv53d6ea0a
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDatasetIdFromResponse
INFO: Id found in create dataset response: 180
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDatasetPersistentIdFromResponse
INFO: Persistent id found in create dataset response: doi:10.5072/FK2/PBLWDC
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 181
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 182
Dec 03, 2026 7:03:32 PM edu.harvard.iq.dataverse.api.UtilIT getDataFileIdFromResponse
INFO: Id found in upload DataFile response: 183
{
"status": "OK",
"data": [
{
"lockType": "Ingest",
"date": "Thu Dec 03 19:03:32 UTC 2026",
"user": "userc3330bb4",
"dataset": "doi:10.5072/FK2/PBLWDC",
"message": "Ingest of 1 tabular data file(s) is in progress."
}
]
}
Dec 03, 2026 7:03:35 PM edu.harvard.iq.dataverse.api.UtilIT getProvFreeForm
INFO: Getting Provenance Free Form
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 4.820 s <<< FAILURE! -- in edu.harvard.iq.dataverse.api.DatasetsIT
[ERROR] edu.harvard.iq.dataverse.api.DatasetsIT.testUpdateMultipleFileMetadata -- Time elapsed: 3.566 s <<< FAILURE!
java.lang.AssertionError:
1 expectation failed.
Expected status code <200> but was <403>.
at java.base/jdk.internal.reflect.DirectConstructorHandleAccessor.newInstance(DirectConstructorHandleAccessor.java:62)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:502)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:486)
at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:73)
at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:108)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:57)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:263)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:277)
at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure.validate(ResponseSpecificationImpl.groovy:512)
at io.restassured.internal.ResponseSpecificationImpl$HamcrestAssertionClosure$validate$1.call(Unknown Source)
at io.restassured.internal.ResponseSpecificationImpl.validateResponseIfRequired(ResponseSpecificationImpl.groovy:696)
at io.restassured.internal.ResponseSpecificationImpl.this$2$validateResponseIfRequired(ResponseSpecificationImpl.groovy)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:198)
at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:62)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:135)
at io.restassured.specification.ResponseSpecification$statusCode$0.callCurrent(Unknown Source)
at io.restassured.internal.ResponseSpecificationImpl.statusCode(ResponseSpecificationImpl.groovy:143)
at io.restassured.internal.ValidatableResponseOptionsImpl.statusCode(ValidatableResponseOptionsImpl.java:89)
at edu.harvard.iq.dataverse.api.DatasetsIT.testUpdateMultipleFileMetadata(DatasetsIT.java:7233)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] DatasetsIT.testUpdateMultipleFileMetadata:7233 1 expectation failed.
Expected status code <200> but was <403>.
[INFO]
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 10.102 s
[INFO] Finished at: 2026-12-03T14:03:35-05:00
[INFO] ------------------------------------------------------------------------
pdurbin
approved these changes
Dec 3, 2026
pdurbin
left a comment
Member
There was a problem hiding this comment.
I tested with our test DataCite account locally. Works.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What this PR does / why we need it: Brings DataCite and OpenAire exports into better synch.
Which issue(s) this PR closes:
Special notes for your reviewer: I attempted to put comments in to denote where code changes were made for the sub issues with the number of the sub issue
Suggestions on how to test this: Review the exports from DataCite and Open Aire under the various scenarios described in the individual sub issues
Does this PR introduce a user interface change? If mockups are available, please link/include them here:
Is there a release notes update needed for this change?: Probably - forthcoming
Additional documentation: