Skip to content

Soft-Delete and Restore Profile

The technology under test allows an instance to be soft-deleted and restored.

Soft-delete instance

The technology under test supports the command to change the type of a metadata instance to either its super type or a subtype.

Assertions
ID Description
repository-entity-lifecycle-22 entity no longer retrievable after delete. This tests the getEntityDetail method of the OMRSMetadataCollection interface.
repository-entity-lifecycle-30 repository supports soft delete. This tests the deleteEntity method of the OMRSMetadataCollection interface.
repository-entity-proxy-lifecycle-07 repository supports soft delete of relationship instance for type <typeName>. This tests the deleteRelationship method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-20 relationship no longer retrievable after delete. This tests the getRelationship method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-30 repository supports soft delete. This tests the deleteRelationship method of the OMRSMetadataCollection interface.

Undelete instance

The technology under test supports the command to change the type of a metadata instance to either its super type or a subtype.

Assertions
ID Description
repository-entity-lifecycle-23 entity restored. This tests the restoreEntity method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-21 relationship restored. This tests the restoreRelationship method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-23 relationship retrieved following restore. This tests the isRelationshipKnown method of the OMRSMetadataCollection interface.

Incremented version number on restore

The technology under test ensures a restored instance has an incremented version number.

Assertions
ID Description
repository-entity-lifecycle-24 entity restored version number is <version>. This tests the restoreEntity method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-22 relationship restored version number is <version>. This tests the restoreRelationship method of the OMRSMetadataCollection interface.