Test Case CSIP29
CSIP29
Testable: TRUE Schema Valid: Valid Description: It is mandatory in CS IP but optional in METS. Therefore it should test: whether the attribute exists whether the checksum is correct. There is a dependency to CSIP30, since it must be stated what kind of checksum type it is before it can be checked whether the checksum is correct or not.
Rules
-
Rule ID: 1
Descripton: If dmdSec/mdRef-element is present there MUST be at CHECKSUM-attribute
ERROR: mets/dmdSec/mdRef/@CHECKSUM does not exist in METS.xml. @CHECKSUM is a mandatory attribute according to CS IP.
Packages:
IP_18000_CSIP29_1
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.86s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.03s True E-ARK Python Validator v1.1.3 1 invalid 0.37s False -
Rule ID: 2
Descripton: If dmdSec/mdRef-element is present there MUST be a CHECKSUM-attribute value that corresponds to the file's checksum
ERROR: mets/dmdSec/mdRef/@CHECKSUM has a value in METS.xml that does not match the actual file's checksum
Packages:
IP_18000_CSIP29_2
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.88s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.05s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False IP_18000_CSIP29_3
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.89s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.07s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False IP_18000_CSIP29_4
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.08s False E-ARK Python Validator v1.1.3 0 invalid 0.38s False