Support for deleting files using native API#9383
Conversation
pdurbin
left a comment
There was a problem hiding this comment.
Hi @ErykKul thanks for the pull request! People have wanted this for a long time!
I was going to test this but hit a snag when merging the latest from develop. Can you please try and check out my comments about this and other things? Thanks!
|
@pdurbin thank you for your review. I have implemented the changes. I am not sure if the integration test that I wrote works correctly, as I could not run any integration tests. Maybe it has something to do with my testing on Payara 6, I do not know yet. Probably something to do with the configuration on my machine. I will try to fix it and verify the test. |
|
Integration test is working now. |
|
Yes! Your test is passing on our Jenkins (firewalled off for you, sorry!): https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-9383/11/testReport/edu.harvard.iq.dataverse.api/FilesIT/testDeleteFile/ |
|
@ErykKul I am out today but your updated test would test the failing case. Thanks! |
a7a7608 to
69120b8
Compare
|
I thought I have found what the problem was, but I still can't run the integration tests. I am not sure if it only at my machine, or if there is a more general problem with the tests (the resulting aoi docker image does not work properly and many tests fail). |
|
@ErykKul here's the latest from https://jenkins.dataverse.org/job/IQSS-Dataverse-Develop-PR/job/PR-9383/18/testReport/edu.harvard.iq.dataverse.api/FilesIT/testDeleteFile/ I haven't tried running the IT tests in docker-aio for quite some months. In the Containerization Working Group, we've talked about the possibility of using the new Dockerized Dataverse environment (PR #9439) for this, to allow developers like yourself (or me!) run the integration tests within Docker. Would that be of interest? |
|
@ErykKul do you need a hand with this? How can I help? |
|
@pdurbin I have tried to fix the integration test, but since I was not able to run it locally, I am waiting for the continuous integration to finish. |
|
@ErykKul thanks for the feedback on testing in Docker. I passed it along at https://dataverse.zulipchat.com/#narrow/stream/375812-containers/topic/running.20API.20tests if you'd like to continue talking there. It's strange, the API test you wrote seems to run just fine for me in Dockerized Dataverse. To get set up I'm following the steps laid out at http://preview.guides.gdcc.io/en/develop/container/dev-usage.html Importantly, in that "final setup" script we run Anyway, below is the failure I'm seeing. While I'm on this branch I'll see if I can fix it quick: Here's the full test run: testrun.txt To run just your "delete file" test I used this: |
|
@pdurbin |
|
@ErykKul great. Looking good! I also added a way to check the filename with some weird REST Assured syntax. I think we're good now. Back to QA! Thanks! |
What this PR does / why we need it:
Support for deleting files using native API.
Which issue(s) this PR closes:
Closes #3913
Is there a release notes update needed for this change?:
Yes.