Repository entity lifecycle test case¶
This test validates that entities can be managed through all stages of their life cycle.
Operation¶
The entity lifecycle tests extract each of the type definitions for entity and create an instance of that entity and drive it through each phase of its lifecycle validating that the entity values are correctly maintained.
Assertions¶
- repository-entity-lifecycle-01 -
typeNamenew entity created. - repository-entity-lifecycle-02 -
typeNamenew entity has createdBy user. - repository-entity-lifecycle-03 -
typeNamenew entity has creation time. - repository-entity-lifecycle-04 -
typeNamenew entity has correct provenance type. - repository-entity-lifecycle-05 -
typeNamenew entity has correct initial status. - repository-entity-lifecycle-06 -
typeNamenew entity has correct type. - repository-entity-lifecycle-07 -
typeNamenew entity has local metadata collection. - repository-entity-lifecycle-08 -
typeNamenew entity has version greater than zero. - repository-entity-lifecycle-09 -
typeNamenew entity is known. - repository-entity-lifecycle-10 -
typeNamenew entity summarized. - repository-entity-lifecycle-11 -
typeNamenew entity retrieved. - repository-entity-lifecycle-12 -
typeNamenew entity is unattached. - repository-entity-lifecycle-13 -
typeNameentity status updated. - repository-entity-lifecycle-14 -
typeNameentity new status isstatus - repository-entity-lifecycle-15 -
typeNameentity with new status version number isversionNumber - repository-entity-lifecycle-16 -
typeNameentity can not be set to DELETED status. - repository-entity-lifecycle-17 -
typeNameentity properties cleared to min. - repository-entity-lifecycle-18 -
typeNameentity with min properties version number isversionNumber - repository-entity-lifecycle-19 -
typeNameentity has properties restored. - repository-entity-lifecycle-20 -
typeNameentity after undo version number isversionNumber - repository-entity-lifecycle-21 -
typeNameentity deleted version number isversionNumber - repository-entity-lifecycle-22 -
typeNameentity no longer retrievable after delete. - repository-entity-lifecycle-23 -
typeNameentity restored version number isversionNumber - repository-entity-lifecycle-24 -
typeNameentity purged.
Discovered Properties¶
The discovered properties for this test show which of the optional capabilities are supported for this type.
typeNameundo support : Enabled/Disabled - indicates whether the optional support for the undo command is enabled or not.typeNamesoft delete support Enabled/Disabled - indicates whether the optional support for soft delete is enabled or not.
Sample Output¶
This is the sample output for the Asset type.
{
"class" : "OpenMetadataTestCaseResult",
"testCaseId" : "repository-entity-lifecycle",
"testCaseName" : "Repository entity lifecycle test case",
"testCaseDescriptionURL" : "https://egeria.odpi.org/open-metadata-conformance-suite/docs/repository-workbench/repository-entity-lifecycle-test-case.md",
"assertionMessage" : "Entities can be managed through their lifecycle",
"successfulAssertions" : [ "Asset new entity created.", "Asset new entity has createdBy user.", "Asset new entity has creation time.", "Asset new entity has correct provenance type.", "Asset new entity has correct initial status.", "Asset new entity has correct type.", "Asset new entity has local metadata collection.", "Asset new entity has version greater than zero.", "Asset new entity is known.", "Asset new entity summarized.", "Asset new entity retrieved.", "Asset new entity is unattached.", "Asset entity status updated.", "Asset entity new status is Active", "Asset entity with new status version number is 2", "Asset entity can not be set to DELETED status.", "Asset entity properties cleared to min.", "Asset entity with min properties version number is 3", "Asset entity has properties restored.", "Asset entity after undo version number is 4", "Asset entity deleted version number is 5", "Asset entity no longer retrievable after delete.", "Asset entity restored version number is 6", "Asset entity purged." ],
"unsuccessfulAssertions" : [ ],
"discoveredProperties" : {
"Asset undo support" : "Enabled",
"Asset soft delete support" : "Enabled"
}
}
Raise an issue or comment below