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 #92 — do "Primary" <Bundle_Member_Entry> only #94

Closed nutjob4life closed 3 years ago

nutjob4life commented 3 years ago

🕴 Executive Summary

This update includes a change to check for the <member_status> in each <Bundle_Member_Entry> and only go down those rabbit-holes that are Primary in status. The others get skipped. (And if they're missing, an exception is raised.) It also includes a new set of test data and updates to functional tests to expose the problem (#92) and demonstrate the fix.

🩺 Test Data and/or Report

fatalii 276 % hostname
fatalii.local
fatalii 277 % sw_vers
ProductName:    macOS
ProductVersion: 11.1
BuildVersion:   20C69
fatalii 278 % date -u
Tue Jan 12 17:05:06 UTC 2021
fatalii 279 % bin/test
Running tests at level 1
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.
  Running:
    13/16 (81.2%) test_logging_arguments (pds.aipgen.tests.test_utils.ArgumentTestCase)usage: 

  Ran 16 tests with 0 failures, 0 errors, 0 skipped in 0.493 seconds.
Tearing down left over layers:
  Tear down zope.testrunner.layer.UnitTests in 0.000 seconds.
fatalii 280 % echo \U+1F389
🎉
fatalii 281 % 

🧩Related Issues