Skip to content

Commit

Permalink
wip: old-style amauat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ross-spencer committed Jan 8, 2020
1 parent 3dcd090 commit 4840c02
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 41 deletions.
2 changes: 1 addition & 1 deletion features/core/aip-encryption-mirror.feature
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Feature: AIP Encryption via Mirror Locations
And there is a standard GPG-encrypted Replicator location in the storage service
And the default AIP Storage location has the GPG-encrypted Replicator location as its replicator
And automated processing with all decision points resolved
When a transfer is initiated on directory SampleTransfers/BagTransfer
When a transfer is initiated on directory amauat-automated-acceptance-tests/bagit/BagTransfer
And the user waits for the AIP to appear in archival storage
And the user searches for the AIP UUID in the Storage Service
Then the master AIP and its replica are returned by the search
Expand Down
8 changes: 4 additions & 4 deletions features/core/aip-encryption.feature
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Feature: AIP Encryption
And there is a standard GPG-encrypted AIP Storage location in the storage service
And automated processing with all decision points resolved
And automated processing configured to Store AIP Encrypted in standard Archivematica Directory
When a transfer is initiated on directory SampleTransfers/BagTransfer
When a transfer is initiated on directory amauat-automated-acceptance-tests/bagit/BagTransfer
And the user waits for the AIP to appear in archival storage
And the user downloads the AIP pointer file
Then the pointer file contains a PREMIS:EVENT element for the encryption event
Expand All @@ -47,7 +47,7 @@ Feature: AIP Encryption
And automated processing with all decision points resolved
And the processing config decision "Select compression algorithm" is set to "Uncompressed"
And automated processing configured to Store AIP Encrypted in standard Archivematica Directory
When a transfer is initiated on directory SampleTransfers/BagTransfer
When a transfer is initiated on directory amauat-automated-acceptance-tests/bagit/BagTransfer
And the user waits for the AIP to appear in archival storage
And the user queries the API until the AIP has been stored
Then the uncompressed AIP on disk at /var/archivematica/sharedDirectory/www/AIPsStoreEncrypted/ is encrypted
Expand All @@ -61,7 +61,7 @@ Feature: AIP Encryption
And there is a standard GPG-encrypted Transfer Backlog location in the storage service
And automated processing with all decision points resolved
And the processing config decision "Create SIP(s)" is set to "Send to backlog"
When a transfer is initiated on directory SampleTransfers/BagTransfer
When a transfer is initiated on directory amauat-automated-acceptance-tests/bagit/BagTransfer
And the user waits for the SIP to appear in transfer backlog
Then the transfer on disk is encrypted
# TODO: implement the following steps. Spending time implementing these did
Expand All @@ -87,7 +87,7 @@ Feature: AIP Encryption
And automated processing with all decision points resolved
And automated processing configured to Store AIP Encrypted in standard Archivematica Directory
When the user creates a new GPG key and assigns it to the standard GPG-encrypted space
And an encrypted AIP is created from the directory at SampleTransfers/BagTransfer
And an encrypted AIP is created from the directory at amauat-automated-acceptance-tests/bagit/BagTransfer
And the user attempts to delete the new GPG key
Then the user is prevented from deleting the key because it is attached to a space
When the user assigns a different GPG key to the standard GPG-encrypted space
Expand Down
8 changes: 4 additions & 4 deletions features/core/ingest-mkv-conformance.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ Feature: Ingest (i.e., post-normalization) conformance check
Then all PREMIS implementation-check-type validation events have eventOutcome = <event_outcome>

Examples: Normalized for Preservation File Validity Possibilities
| file_validity | microservice_output | validation_result | event_outcome | transfer_path |
| valid | Completed successfully | Passed | pass | TestTransfers/acceptance-tests/preforma/when-normalized-all-valid |
#| not valid | Failed | Failed | fail | TestTransfers/acceptance-tests/preforma/when-normalized-none-valid |
| file_validity | microservice_output | validation_result | event_outcome | transfer_path |
| valid | Completed successfully | Passed | pass | amauat-automated-acceptance-tests/standard-transfer/preforma/when-normalized-all-valid |
| not valid | Failed | Failed | fail | amauat-automated-acceptance-tests/standard-transfer/preforma/when-normalized-none-valid |

@access
Scenario Outline: Isla wants to confirm that normalization to .mkv for access is successful
Expand All @@ -40,4 +40,4 @@ Feature: Ingest (i.e., post-normalization) conformance check

Examples: Normalized for Access File Validity Possibilities
| file_validity | microservice_output | validation_result | event_outcome | transfer_path |
| valid | Completed successfully | Passed | pass | TestTransfers/acceptance-tests/preforma/when-normalized-access-all-valid |
| valid | Completed successfully | Passed | pass | amauat-automated-acceptance-tests/standard-transfer/preforma/when-normalized-access-all-valid |
40 changes: 20 additions & 20 deletions features/core/ingest-policy-check.feature
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ Feature: Ingest policy check
Then the submissionDocumentation directory of the AIP does not contain a copy of the MediaConch policy file <policy_file>

Examples: Policy Check Outcomes
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/all-conform-policy-norm-acc | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/none-conform-policy-norm-acc | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/all-conform-policy-norm-acc | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/none-conform-policy-norm-acc | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
# Uncomment the following two rows to test on the equivalent MediaConch .xsl policy files
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/all-conform-policy-norm-acc | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/none-conform-policy-norm-acc | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/all-conform-policy-norm-acc | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/none-conform-policy-norm-acc | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |

@preservation @nonmanual
Scenario Outline: Isla has preservation derivatives and she needs to know whether they conform to her preservation policy
Expand All @@ -49,12 +49,12 @@ Feature: Ingest policy check
And the logs directory of the AIP contains a MediaConch policy check output file for each policy file tested against <policy_file>

Examples: Policy Check Outcomes
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
# Uncomment the following two rows to test on the equivalent MediaConch .xsl policy files
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |

@preservation @manual
Scenario Outline: Isla has manually normalized preservation derivatives and she needs to know whether they conform to her preservation policy
Expand All @@ -74,11 +74,11 @@ Feature: Ingest policy check
And the logs directory of the AIP contains a MediaConch policy check output file for each policy file tested against <policy_file>

Examples: Policy Check Outcomes
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/manually-normalized-preservation-all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/manually-normalized-preservation-none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/manually-normalized-preservation-all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/manually-normalized-preservation-none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-preservation-all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-preservation-none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-preservation-all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-preservation-none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |

@access @manual
Scenario Outline: Isla has manually normalized access derivatives and she needs to know whether they conform to her access policy
Expand All @@ -97,8 +97,8 @@ Feature: Ingest policy check
Then the submissionDocumentation directory of the AIP does not contain a copy of the MediaConch policy file <policy_file>

Examples: Policy Check Outcomes
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/manually-normalized-access-all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/manually-normalized-access-none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| conform | Completed successfully | pass | successful | TestTransfers/acceptance-tests/preforma/manually-normalized-access-all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | TestTransfers/acceptance-tests/preforma/manually-normalized-access-none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| do_files_conform | microservice_output | event_outcome | verification_result | transfer_path | policy_file | purpose |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-access-all-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-access-none-conform-policy | NYULib_MKVFFV1_MODIFIED.xml | Validation against a policy |
| conform | Completed successfully | pass | successful | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-access-all-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
| not conform | Failed | fail | failed | amauat-automated-acceptance-tests/standard-transfer/preforma/manually-normalized-access-none-conform-policy | NYULibraries_MKVFFV1-MODIFIED.xsl | Validation against a policy |
2 changes: 1 addition & 1 deletion features/core/metadata-only-aip-reingest.feature
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Feature: Metadata-only AIP re-ingest

Scenario: Isla creates an AIP, and then performs a metadata-only re-ingest on it, adds metadata to it, and confirms that her newly added metadata are in the modified METS file.
Given automated processing with all decision points resolved
When a transfer is initiated on directory SampleTransfers/Images/pictures
When a transfer is initiated on directory amauat-automated-acceptance-tests/standard-transfer/pictures
And the user waits for the AIP to appear in archival storage
Then in the METS file the metsHdr element has a CREATEDATE attribute but no LASTMODDATE attribute
And in the METS file the metsHdr element has one dmdSec next sibling element(s)
Expand Down
4 changes: 2 additions & 2 deletions features/core/pid-binding.feature
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ Feature: Archivematica's entities can be assigned PIDs with specified resolution
And the empty directory in <empty_dir_rel_path> is in the normative structMap and has identifiers
Examples: transfer sources
| directory_path | empty_dir_rel_path |
| TestTransfers/acceptance-tests/pid-binding/hierarchy-with-empty-dir | dir2/dir2a/dir2aiii |
| directory_path | empty_dir_rel_path |
| amauat-automated-acceptance-tests/standard-transfer/pid-binding/hierarchy-with-empty-dir/ | dir2/dir2a/dir2aiii |
6 changes: 3 additions & 3 deletions features/core/transfer-mkv-conformance.feature
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Feature: Transfer (i.e., pre-ingest) Conformance Check
Then all PREMIS implementation-check-type validation events have eventOutcome = <event_outcome>

Examples: File Validity Possibilities
| file_validity | microservice_output | event_outcome | transfer_path |
| valid | Completed successfully | pass | TestTransfers/acceptance-tests/preforma/all-valid |
| not valid | Failed | fail | TestTransfers/acceptance-tests/preforma/none-valid |
| file_validity | microservice_output | event_outcome | transfer_path |
| valid | Completed successfully | pass | amauat-automated-acceptance-tests/standard-transfer/preforma/all-valid |
| not valid | Failed | fail | amauat-automated-acceptance-tests/standard-transfer/preforma/none-valid |
Loading

0 comments on commit 4840c02

Please sign in to comment.