codice / ddf

DDF Distributed Data Framework - an open source, modular integration framework.
http://ddf.codice.org
Other
132 stars 181 forks source link

[2.26.x] Add endpoint to test for the downloadability of a local resource #6783

Closed glenhein closed 5 months ago

glenhein commented 6 months ago

What does this PR do?

Add endpoint to test for the downloadability of a local resource.

Who is reviewing it?

Select relevant component teams:

Ask 2 committers to review/merge the PR and tag them here.

How should this be tested?

Upload two local products. For one of the products, manually delete the resource file in data/content.

Using the following CURL as a guide (adjust for you installation), try hitting the endpoint for each product. The product that was manually delete should return a 404. For the other product, the endpoint should return a 200.

curl \
  --verbose \
  --get \
  --insecure "https://localhost:8993/services/catalog/doesExist/<metacardID>/<sourceID>"

Any background context you want to provide?

What are the relevant tickets?

Fixes: #____

Screenshots

Checklist:

Notes on Review Process

Please see Notes on Review Process for further guidance on requirements for merging and abbreviated reviews.

Review Comment Legend:

glenhein commented 6 months ago

I think this has to be re-visited because it does not cover a use case for a downstream project.

glenhein commented 5 months ago

build now

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

glenhein commented 5 months ago

build now

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

glenhein commented 5 months ago

build now

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

glenhein commented 5 months ago

build now

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

glenhein commented 5 months ago

build now

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build FAILURE See the job results in legacy Jenkins UI or in Blue Ocean UI.

cxddfbot commented 5 months ago

Internal build has been started, your results will be available at build completion.

cxddfbot commented 5 months ago

Build SUCCESS See the job results in legacy Jenkins UI or in Blue Ocean UI.

jlcsmith commented 5 months ago

Hero successful - verified endpoint works correctly for local and and non-local sources where content is and is not in the local content provider.