NASA-PDS / deep-archive

PDS Open Archival Information System (OAIS) utilities, including Submission Information Package (SIP) and Archive Information Package (AIP) generators
https://nasa-pds.github.io/deep-archive/
Other
7 stars 4 forks source link

Resolve #111 #113

Closed nutjob4life closed 3 years ago

nutjob4life commented 3 years ago

📜 Summary

Merging this might just resolve #111 by making this repository (which pds-predated the pds-template-repo-python) look more pds-like the pds-template-repo-python. This includes:

🩺 Test Data and/or Report

$ python3 -m venv venv
$ venv/bin/python setup.py develop
…
$ venvbin/python setup.py test
…
test_logging_arguments (pds.aipgen.tests.test_utils.ArgumentTestCase) ... usage: 
ok
test_lid_vid_retrieval (pds.aipgen.tests.test_utils.BundleParsingTestCase) ... ok
test_getDigest (pds.aipgen.tests.test_utils.HashingTestCase)
Ensure getDigest works on URLs and various hashing algorithms ... ok
test_getMD5 (pds.aipgen.tests.test_utils.HashingTestCase)
Ensure getMD5 works on file streams ... ok
test_invalid_url (pds.aipgen.tests.test_utils.URLValidatorTest)
Ensure an invalid URL is caught early ... ok
test_state (pds.aipgen.tests.test_utils.URLValidatorTest)
Ensure the state of URL checking is consistent ... ok
test_label_url (pds.aipgen.tests.test_functional.LADEESIPTest)
Test if the label of a SIP manifest has the right ``manifest_url`` ... 👀 Cannot parse XML document at «/Users/kelly/Documents/Clients/JPL/PDS/Development/pds-deep-archive/src/pds/aipgen/tests/data/ladee_test/mission_bundle/xml_schema/empty.xml»; ignoring it
ok
test_sip (pds.aipgen.tests.test_functional.LADEESIPTest)
Test if a SIP manifest works as expected ... ok
test_manifests (pds.aipgen.tests.test_functional.LADEAIPTest)
See if the AIP generator makes the two manifest files ... ok
test_label_url (pds.aipgen.tests.test_functional.InsightAllSIPTest)
Test if the label of a SIP manifest has the right ``manifest_url`` ... ok
test_sip (pds.aipgen.tests.test_functional.InsightAllSIPTest)
Test if a SIP manifest works as expected ... ok
test_manifests (pds.aipgen.tests.test_functional.InsightAllAIPTest)
See if the AIP generator makes the two manifest files ... ok
test_label_url (pds.aipgen.tests.test_functional.InsightLatestSIPTest)
Test if the label of a SIP manifest has the right ``manifest_url`` ... ok
test_sip (pds.aipgen.tests.test_functional.InsightLatestSIPTest)
Test if a SIP manifest works as expected ... ok
test_manifests (pds.aipgen.tests.test_functional.InsightLatestAIPTest)
See if the AIP generator makes the two manifest files ... ok
test_label_url (pds.aipgen.tests.test_functional.SecondaryCollectionSIPTest)
Test if the label of a SIP manifest has the right ``manifest_url`` ... 👀 Cannot parse XML document at «/Users/kelly/Documents/Clients/JPL/PDS/Development/pds-deep-archive/src/pds/aipgen/tests/data/secondary_test/mission_bundle/xml_schema/empty.xml»; ignoring it
ok
test_sip (pds.aipgen.tests.test_functional.SecondaryCollectionSIPTest)
Test if a SIP manifest works as expected ... ok
test_manifests (pds.aipgen.tests.test_functional.SecondaryCollectionAIPTest)
See if the AIP generator makes the two manifest files ... ok
test_label_url (pds.aipgen.tests.test_functional.LADEESIPWithBadBaseURLTest)
Test if the label of a SIP manifest has the right ``manifest_url`` ... ok
test_sip (pds.aipgen.tests.test_functional.LADEESIPWithBadBaseURLTest)
Make sure that the SIP generation fails with a URLError due to a non-existent base URL ... ok

----------------------------------------------------------------------
Ran 20 tests in 0.738s

OK
$ echo \U+1F389
🎉

🧩 Related Issues