usnistgov / oar-pdr

The NIST Open Access to Research (OAR) Public Data Repository (PDR) system software
11 stars 10 forks source link

python: fix tests that rely on data.nist.gov #124

Closed RayPlante closed 4 years ago

RayPlante commented 4 years ago

This PR fixes some unit tests that sometimes fail or hang because they rely on accessing the production distribution service on data.nist.gov. Instead, these unit tests now use a simulated distribution service running locally.

This PR leverages the PR#34 from oar-metadata that modifies the conversion of POD records to NERDm which previously was too specific to data.nist.gov. Conversion will now recognize distribution service URLs from any server, including a locally running one.

RayPlante commented 4 years ago

This fix is need for all development since without it Travis testing is susceptible to intermittent failures.