Test Case CSIP20
CSIP20
Testable: TRUE Schema Valid: Valid Description: Quote: Status of the metadata. Used to indicate the currency of the package. If used the two values “SUPERSEDED” or “CURRENT” from the vocabulary is used. See also: dmdSec status Comment: This testcase is for requirement CSIP20, which relates to descriptive metadata; the optional dmdSec elements in the mets.xml file. The requirement CSIP20 is not stringent and therefore difficult to test, it is based on nested conditions - and optional elements. I takes two rules to validate the requirement: Rule 1: The attribute is optional. Rule 2: If the attribute exists the value of it is “SUPERSEDED” or “CURRENT” according to http://earkcsip.dilcis.eu/schema/DILCISVocabulariesIP.xml
Rules
-
Rule ID: 1
Descripton: There SHOULD be an STATUS attribute for optional element dmdSec in the mets.xml
ERROR: mets/dmdSec/@STATUS does not exists. It SHOULD be there, it is not a MUST.
Packages:
IP_18000_CSIP20_1
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.95s False E-ARK Python Validator v1.1.3.dev7 0 invalid 1.98s True E-ARK Python Validator v1.1.3 0 invalid 0.40s True -
Rule ID: 2
Descripton: The value of attribute mets/dmd/@STATUS MUST be either "SUPERSEDED" or "CURRENT"
ERROR: The value of optional attribute mets/dmd/@STATUS is invalid. It MUST be either "SUPERSEDED" or "CURRENT".
Packages:
IP_18000_CSIP20_2
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.95s True E-ARK Python Validator v1.1.3.dev7 0 invalid 1.97s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True IP_18000_CSIP20_3
Expected result: invalid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.93s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.01s True E-ARK Python Validator v1.1.3 0 invalid 0.41s True IP_18000_CSIP20_4
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.90s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.03s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False IP_18000_CSIP20_5
Expected result: Valid
Validator Version Ret Code Valid Duration Contains Code Commons IP Validator v2.10.0 0 invalid 0.94s False E-ARK Python Validator v1.1.3.dev7 0 invalid 2.01s False E-ARK Python Validator v1.1.3 0 invalid 0.40s False