IQSS / dataverse-client-r

R Client for Dataverse Repositories
https://iqss.github.io/dataverse-client-r
61 stars 25 forks source link

Complete testsuite for upload / creation #4

Closed leeper closed 4 months ago

leeper commented 8 years ago

edit: jump to list of functions to test

pdurbin commented 4 years ago
* Use test server

Very recently we set up a Jenkins server that spins up Dataverse on AWS EC2. (And that EC2 instance is terminated later that day.) If we want, we could close this issue and focus on testing over at #22. I'm fine with whatever. 😄

wibeasley commented 4 years ago

Approximate order of functions to write tests for. The later functions tend to depend on the earlier ones. The classification & order will be updated as I learn more.

Downloading Structure & Metadata

Downloading Files

Creating & Publishing

Uploading

Deleting

I haven't studied/classified yet

kuriwaki commented 2 years ago

See also #40 for discussion on how we will use a live Dataverse for this task. Will close when more of the checklist ^ is completed.

pdurbin commented 1 year ago

@kuriwaki @wibeasley I just posted a message intended mostly for @JR-1991 about newly published containers for API testing: https://dataverse.zulipchat.com/#narrow/stream/377090-python/topic/containers.20for.20API.20testing

You're very welcome to join Zulip and discuss! (That's the "python" stream but I'm happy to create more streams if you want one.)

Thanks, as always, for all of your contributions to the dataverse package! ❤️ 🎉 🚀

pdurbin commented 1 year ago

It works! @kuriwaki @wibeasley check out this awesome work by @JR-1991

https://github.com/gdcc/container-test/blob/6cb49d8e58b2269acaec71e3509f9dd5fbec8cc7/.github/workflows/run_dv.yml

https://github.com/gdcc/container-test/actions/runs/4854677636

kuriwaki commented 1 year ago

Great to see it in action! This github actions setup looks like the ideal setup for our test environment. And thank you, @JR-1991.

pdurbin commented 1 year ago

@kuriwaki I'm getting a strange error when I upload a file: https://dataverse.zulipchat.com/#narrow/stream/377090-python/topic/containers.20for.20API.20testing/near/355010545

Here's my workflow file if you want to try to iterate on it: https://github.com/IQSS/dataverse-sample-data/actions/runs/4856813925/workflow

I am able to create a collection and a dataset, at least, so maybe you could try adding tests for that.

wibeasley commented 1 year ago

This looks awesome.

pdurbin commented 1 year ago

Yes! @poikilotherm got it working today! Check it out! https://github.com/IQSS/dataverse-sample-data/actions/runs/4872123218/jobs/8689917400#step:8:74

You should be able to use this as a starting point: https://github.com/IQSS/dataverse-sample-data/compare/container-test

pdurbin commented 10 months ago

Beep boop.

These days I'm actively using https://github.com/gdcc/api-test-runner to spin up Dataverse in containers using GitHub Actions (the "develop" workflow, usually). You're very welcome to copy it, if it helps. After I spin up Dataverse, I run our (Java-based) API test suite against it.

Longer term we are working on https://github.com/gdcc/dataverse-action which (once it's ready), we'll publish to the GitHub Marketplace.

This is all on topic for our weekly Containerization Working Groups meetings, if you're interested! https://ct.gdcc.io

pdurbin commented 8 months ago

A new PR from pyDataverse that spins up Dataverse in containers locally:

kuriwaki commented 4 months ago

I suggest we use #134 for an updated discussion ghaction and pyDataverse. Thanks @pdurbin for the updates about pyDataverse and containers here.