8000 Add conceptdoi to mocked Zenodo responses by kathy-t · Pull Request #5903 · dockstore/dockstore · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add conceptdoi to mocked Zenodo responses #5903

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ public final class Hoverfly {

public static final String ZENODO_SIMULATION_URL = "https://sandbox.zenodo.org";
public static final SimulationSource ZENODO_SIMULATION_SOURCE = dsl(service(ZENODO_SIMULATION_URL)
.andDelay(200, TimeUnit.MILLISECONDS).forAll() // I don't know why, but need a short delay for random integers to be generated and not be repeated
.andDelay(500, TimeUnit.MILLISECONDS).forAll() // I don't know why, but need a short delay for random integers to be generated and not be repeated
.post("/oauth/token").anyBody().willReturn(success(GSON.toJson(getFakeTokenResponse("")), MediaType.APPLICATION_JSON))
// createDeposit
.post("/api/deposit/depositions").anyBody().anyQueryParams().willReturn(success(fixture("fixtures/createDepositResponse.json"), MediaType.APPLICATION_JSON))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"conceptrecid": 51309,
"conceptdoi": "10.5072/zenodo.{{ randomIntegerRange 10000 99999 }}",
"created": "2024-05-02T15:13:00.593467+00:00",
"files": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"conceptrecid": 51309,
"conceptdoi": "10.5072/zenodo.{{ randomIntegerRange 10000 99999 }}",
"created": "2024-05-02T15:13:00.593467+00:00",
"files": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"conceptrecid": {{ randomIntegerRange 10000 99999 }},
"conceptdoi": "10.5072/zenodo.{{ randomIntegerRange 10000 99999 }}",
"created": "2024-05-02T15:13:00.593467+00:00",
"files": [
{
Expand Down
0