Test Case CSIP27
CSIP27
Testable: TRUE Schema Valid: Valid Description: Size of the linked file in bytes - dmdSec/mdRef/@SIZE It has cardinality '1..1' and level 'MUST' in CSIP. It is optional according to its XML Schema. Rule needed for the existence of the attribute SIZE for element dmdSec/mdRef. ERROR if it does not exists. Ensure test set contains inconsistent sizes, i.e. stated size and actual file size differ.
Rules
-
Rule ID: 1
Descripton: dmdSec/mdRef/@SIZE is a mandatory attribute if dmdSec/mdRef exist
ERROR: There is a dmdSec/mdRef element in METS.xml but no @SIZE-attribute. There must be a @SIZE-attribute
Packages:
IP_18000_CSIP27_1
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.92s True E-ARK Python Validator v1.1.3.dev7 0 invalid 1.99s True E-ARK Python Validator v1.1.3 1 invalid 0.37s False -
Rule ID: 2
Descripton: Size of the linked file in bytes as given in METS MUST correspond to the size of the file
ERROR: There is a mismatch between file size described in METS.xml versus the actual file size
Packages:
IP_18000_CSIP27_2
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.85s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.02s False E-ARK Python Validator v1.1.3 0 invalid 0.39s False