Skip to content

Undo an Update Profile

The technology under test is able to restore an instance to its previous version (although the version number is updated).

Return previous version

The technology under test supports the command to restore the previous version of an instance.

Undo always returns to the version before the current one. A second undo therefore reverses the first, reinstating the update that the first undo reversed, rather than stepping back a further version. Each undo creates a new version.

Assertions
ID Description
repository-entity-lifecycle-19 entity has properties restored. This tests the undoEntityUpdate method of the OMRSMetadataCollection interface.
repository-entity-lifecycle-29 repository supports undo of operations. This tests the undoEntityUpdate method of the OMRSMetadataCollection interface.
repository-entity-lifecycle-45 second undo of entity reinstates the update that the first undo reversed. This tests the undoEntityUpdate method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-17 relationship has properties restored. This tests the undoRelationshipUpdate method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-29 repository supports undo of operations. This tests the undoRelationshipUpdate method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-43 second undo of relationship reinstates the update that the first undo reversed. This tests the undoRelationshipUpdate method of the OMRSMetadataCollection interface.

New version number on undo

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

Assertions
ID Description
repository-entity-lifecycle-20 entity after undo version number is <version>. This tests the undoEntityUpdate method of the OMRSMetadataCollection interface.
repository-entity-lifecycle-46 entity after second undo version number is <version>. This tests the undoEntityUpdate method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-18 relationship after undo version number is <version>. This tests the undoRelationshipUpdate method of the OMRSMetadataCollection interface.
repository-relationship-lifecycle-44 relationship after second undo version number is <version>. This tests the undoRelationshipUpdate method of the OMRSMetadataCollection interface.