Package org.openmetadata.service.jdbi3
Class TestCaseRepository
java.lang.Object
org.openmetadata.service.jdbi3.EntityRepository<TestCase>
org.openmetadata.service.jdbi3.TestCaseRepository
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classclassNested classes/interfaces inherited from class org.openmetadata.service.jdbi3.EntityRepository
EntityRepository.DescriptionTaskWorkflow, EntityRepository.EntityUpdater, EntityRepository.Operation, EntityRepository.TagTaskWorkflow -
Field Summary
FieldsFields inherited from class org.openmetadata.service.jdbi3.EntityRepository
allowedFields, CACHE_WITH_ID, CACHE_WITH_NAME, dao, daoCollection, entityType, putFields, quoteFqn, renameAllowed, searchRepository, supportsDataProducts, supportsDomain, supportsExperts, supportsExtension, supportsFollower, supportsLifeCycle, supportsOwner, supportsReviewers, supportsSearch, supportsSoftDelete, supportsStyle, supportsTags, supportsVotes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddTestCaseResult(String updatedBy, javax.ws.rs.core.UriInfo uriInfo, String fqn, TestCaseResult testCaseResult) addTestCasesToLogicalTestSuite(TestSuite testSuite, List<UUID> testCaseIds) voidclearFields(TestCase test, EntityUtil.Fields fields) Set the requested fields in an entity.deleteTestCaseFromLogicalTestSuite(UUID testSuiteId, UUID testCaseId) deleteTestCaseResult(String updatedBy, String fqn, Long timestamp) getParentEntity(TestCase entity, String fields) getTaskWorkflow(FeedRepository.ThreadContext threadContext) intgetTestCaseCount(List<UUID> testCaseIds) getTestCaseResults(String fqn, Long startTs, Long endTs) getUpdater(TestCase original, TestCase updated, EntityRepository.Operation operation) voidisTestSuiteExecutable(String testSuiteFqn) listAfter(javax.ws.rs.core.UriInfo uriInfo, EntityUtil.Fields fields, ListFilter filter, int limitParam, String after) listBefore(javax.ws.rs.core.UriInfo uriInfo, EntityUtil.Fields fields, ListFilter filter, int limitParam, String before) patchTestCaseResults(String fqn, Long timestamp, javax.json.JsonPatch patch) protected voidpostDelete(TestCase test) protected voidvoidThis method is used for validating an entity to be created during POST, PUT, and PATCH operations and prepare the entity with all the required attributes and relationships.voidsetFields(TestCase test, EntityUtil.Fields fields) Set the requested fields in an entity.voidSet fullyQualifiedName of an entityvoidsetInheritedFields(TestCase testCase, EntityUtil.Fields fields) This method is called to set inherited fields that an entity inherits from its parent.voidstoreEntity(TestCase test, boolean update) An entity is stored in the backend database as JSON document.voidstoreRelationships(TestCase test) This method is called to store all the relationships of an entity.Methods inherited from class org.openmetadata.service.jdbi3.EntityRepository
addFollower, addRelationship, addRelationship, addRelationship, addServiceRelationship, applyColumnTags, applySuggestion, applyTags, applyTags, bulkAddToRelationship, bulkAssetsOperation, checkSystemEntityDeletion, cleanup, clearFieldsInternal, copy, create, createInternal, createOrUpdate, delete, deleteByName, deleteExtensionAtTimestamp, deleteExtensionBeforeTimestamp, deleteFollower, deleteFrom, deleteFromSearch, deleteInternal, deleteInternalByName, deleteRelationship, deleteTo, ensureSingleRelationship, exportToCsv, find, findBoth, findByName, findByNameOrNull, findFrom, findFromRecords, findTo, findToRecords, get, get, getAllowedFieldsCopy, getAllTags, getByName, getByName, getChildren, getCommonFields, getContainer, getContainer, getCustomPropertyFQN, getCustomPropertyFQNPrefix, getDomain, getEntitiesFromSeedData, getEntitiesFromSeedData, getEntitiesFromSeedData, getExperts, getExtension, getExtensionAtTimestamp, getFields, getFields, getFollowers, getFromEntityRef, getHref, getIngestionPipelines, getLatestExtensionFromTimeSeries, getOwner, getOwner, getParent, getReference, getReferenceByName, getResultList, getResultList, getResultsFromAndToTimestamps, getResultsFromAndToTimestamps, getReviewers, getSuggestionFields, getSuggestionWorkflow, getTags, getTags, getTagsByPrefix, getToEntityRef, getVersion, getVotes, importFromCsv, inheritDomain, inheritExperts, inheritOwner, inheritReviewers, initializeEntity, initSeedDataFromResources, listAfterWithSkipFailure, listAll, listVersions, patch, populateOwner, postCreate, postUpdate, prepareInternal, removeExtension, restoreEntity, restoreFromSearch, restorePatchAttributes, setFieldsInternal, store, storeDataProducts, storeDomain, storeExtension, storeOwner, storeRelationshipsInternal, storeTimeSeries, update, updateOwner, updateVote, validateColumnTags, validateDataProducts, validateDomain, validateDomain, validateOwner, validateRoles, validateTags, validateTags, validateTaskThread, validateUsers, withHref
-
Field Details
-
COLLECTION_PATH
- See Also:
-
TESTCASE_RESULT_EXTENSION
- See Also:
-
-
Constructor Details
-
TestCaseRepository
public TestCaseRepository()
-
-
Method Details
-
setFields
Description copied from class:EntityRepositorySet the requested fields in an entity. This is used for requesting specific fields in the object during GET operations. It is also used during PUT and PATCH operations to set up fields that can be updated.- Specified by:
setFieldsin classEntityRepository<TestCase>
-
setInheritedFields
Description copied from class:EntityRepositoryThis method is called to set inherited fields that an entity inherits from its parent.- Overrides:
setInheritedFieldsin classEntityRepository<TestCase>- See Also:
-
getParentEntity
- Overrides:
getParentEntityin classEntityRepository<TestCase>
-
clearFields
Description copied from class:EntityRepositorySet the requested fields in an entity. This is used for requesting specific fields in the object during GET operations. It is also used during PUT and PATCH operations to set up fields that can be updated.- Specified by:
clearFieldsin classEntityRepository<TestCase>
-
patchTestCaseResults
public RestUtil.PatchResponse<TestCaseResult> patchTestCaseResults(String fqn, Long timestamp, javax.json.JsonPatch patch) -
setFullyQualifiedName
Description copied from class:EntityRepositorySet fullyQualifiedName of an entity- Overrides:
setFullyQualifiedNamein classEntityRepository<TestCase>
-
prepare
Description copied from class:EntityRepositoryThis method is used for validating an entity to be created during POST, PUT, and PATCH operations and prepare the entity with all the required attributes and relationships.The implementation of this method must perform the following:
- Prepare the values for attributes that are not required in the request but can be derived on the server side. Example - >FullyQualifiedNames of an entity can be derived from the hierarchy that an entity belongs to .
- Validate all the attributes of an entity.
- Validate all the relationships of an entity. As an example - during table creation, relationships such as Tags, Owner, Databasea table belongs to are validated. During validation additional information that is not required in the create/update request are set up in the corresponding relationship fields.
- Specified by:
preparein classEntityRepository<TestCase>- See Also:
-
storeEntity
Description copied from class:EntityRepositoryAn entity is stored in the backend database as JSON document. The JSON includes some attributes of the entity and does not include attributes such as href. The relationship fields of an entity is never stored in the JSON document. It is always reconstructed based on relationship edges from the backend database.
As an example, when table entity is stored, the attributes such as href and the relationships such as owner, database, and tags are set to null. These attributes are restored back after the JSON document is stored to be sent as response.- Specified by:
storeEntityin classEntityRepository<TestCase>- See Also:
-
storeRelationships
Description copied from class:EntityRepositoryThis method is called to store all the relationships of an entity. It is expected that all relationships are already validated and completely setup before this method is called and no validation of relationships is required.- Specified by:
storeRelationshipsin classEntityRepository<TestCase>- See Also:
-
postDelete
- Overrides:
postDeletein classEntityRepository<TestCase>
-
addTestCaseResult
public RestUtil.PutResponse<TestCaseResult> addTestCaseResult(String updatedBy, javax.ws.rs.core.UriInfo uriInfo, String fqn, TestCaseResult testCaseResult) -
deleteTestCaseResult
public RestUtil.PutResponse<TestCaseResult> deleteTestCaseResult(String updatedBy, String fqn, Long timestamp) -
getTestCaseResults
-
getTestCaseCount
-
isTestSuiteExecutable
-
addTestCasesToLogicalTestSuite
public RestUtil.PutResponse<TestSuite> addTestCasesToLogicalTestSuite(TestSuite testSuite, List<UUID> testCaseIds) -
deleteTestCaseFromLogicalTestSuite
public RestUtil.DeleteResponse<TestCase> deleteTestCaseFromLogicalTestSuite(UUID testSuiteId, UUID testCaseId) -
getUpdater
public EntityRepository<TestCase>.EntityUpdater getUpdater(TestCase original, TestCase updated, EntityRepository.Operation operation) - Overrides:
getUpdaterin classEntityRepository<TestCase>
-
preDelete
- Overrides:
preDeletein classEntityRepository<TestCase>
-
listAfter
public ResultList<TestCase> listAfter(javax.ws.rs.core.UriInfo uriInfo, EntityUtil.Fields fields, ListFilter filter, int limitParam, String after) - Overrides:
listAfterin classEntityRepository<TestCase>
-
listBefore
public ResultList<TestCase> listBefore(javax.ws.rs.core.UriInfo uriInfo, EntityUtil.Fields fields, ListFilter filter, int limitParam, String before) - Overrides:
listBeforein classEntityRepository<TestCase>
-
getTaskWorkflow
- Overrides:
getTaskWorkflowin classEntityRepository<TestCase>
-