mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-06-27 04:22:05 +00:00
Minor: update git-blmae-ignore-revs, and uncomment ClassificationResourceTest tests code (#14431)
This commit is contained in:
parent
451a20b3cd
commit
123ed59923
@ -1 +1 @@
|
|||||||
8c2a1e415dbe00b89e7105905f0e1e7e6296a5c4
|
1294f93e15258c4d0ea2f8d4f0b746a6267dd6cc
|
||||||
|
Binary file not shown.
@ -40,6 +40,7 @@ import org.openmetadata.schema.api.classification.CreateClassification;
|
|||||||
import org.openmetadata.schema.entity.classification.Classification;
|
import org.openmetadata.schema.entity.classification.Classification;
|
||||||
import org.openmetadata.schema.entity.classification.Tag;
|
import org.openmetadata.schema.entity.classification.Tag;
|
||||||
import org.openmetadata.schema.type.ChangeDescription;
|
import org.openmetadata.schema.type.ChangeDescription;
|
||||||
|
import org.openmetadata.schema.type.ProviderType;
|
||||||
import org.openmetadata.service.Entity;
|
import org.openmetadata.service.Entity;
|
||||||
import org.openmetadata.service.exception.CatalogExceptionMessage;
|
import org.openmetadata.service.exception.CatalogExceptionMessage;
|
||||||
import org.openmetadata.service.resources.EntityResourceTest;
|
import org.openmetadata.service.resources.EntityResourceTest;
|
||||||
@ -98,17 +99,18 @@ public class ClassificationResourceTest
|
|||||||
@Override
|
@Override
|
||||||
public void validateCreatedEntity(
|
public void validateCreatedEntity(
|
||||||
Classification createdEntity, CreateClassification request, Map<String, String> authHeaders) {
|
Classification createdEntity, CreateClassification request, Map<String, String> authHeaders) {
|
||||||
// assertEquals(
|
assertEquals(
|
||||||
// request.getProvider() == null ? ProviderType.USER : request.getProvider(),
|
request.getProvider() == null ? ProviderType.USER : request.getProvider(),
|
||||||
// createdEntity.getProvider());
|
createdEntity.getProvider());
|
||||||
assertEquals(request.getMutuallyExclusive(), createdEntity.getMutuallyExclusive());
|
assertEquals(request.getMutuallyExclusive(), createdEntity.getMutuallyExclusive());
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void compareEntities(
|
public void compareEntities(
|
||||||
Classification expected, Classification updated, Map<String, String> authHeaders) {
|
Classification expected, Classification updated, Map<String, String> authHeaders) {
|
||||||
// assertEquals(expected.getProvider() == null ? ProviderType.USER : expected.getProvider(),
|
assertEquals(
|
||||||
// updated.getProvider());
|
expected.getProvider() == null ? ProviderType.USER : expected.getProvider(),
|
||||||
|
updated.getProvider());
|
||||||
assertEquals(expected.getMutuallyExclusive(), updated.getMutuallyExclusive());
|
assertEquals(expected.getMutuallyExclusive(), updated.getMutuallyExclusive());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user