test_preservation#
preservation_dataset_json#
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
preservation_dataset#
test_create_dataset_preservation#
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_create_dataset_preservation_without_contract#
Try updating preservation state without including a valid contract; this should fail.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_update_dataset_preservation_state#
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_update_dataset_preservation_state_remove_contract_error#
Try updating a dataset to remove the contract while retaining the current preservation state. This should fail.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_update_dataset_reset_preservation#
Try updating a dataset to reset the preservation process by clearing the preservation state and removing the contract
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_query_datasets_preservation_state#
Query datasets that have the given preservation state
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_delete_dataset_with_preservation#
Delete a dataset containing preservation data
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_update_dataset_preservation_indirect#
Try updating dataset's preservation state via the /v3/datasets/<id>
endpoint
and ensure preservation data must be complete in order to be accepted
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_delete_dataset_preservation#
Try deleting dataset preservation using the endpoint.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_get_dataset_preservation_anonymous#
Try retrieving dataset preservation as an anonymous user.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_get_dataset_nonexisting_preservation#
Preservation should return default values when preservation does not exist.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_patch_dataset_nonexisting_preservation#
Try patching preservation object that does not exist yet. Should work like put.
Source code in tests/unit/apps/core/api/dataset/test_preservation.py
test_put_dataset_nonexisting_preservation#
Try creating preservation object using put.