From eee6b21a0efad1af92e28f2934e77a90d095edda Mon Sep 17 00:00:00 2001 From: Yingjian Wu Date: Sun, 2 Jun 2024 09:46:09 -0700 Subject: [PATCH] Add initial implementation for integration --- .../metacat/main/services/impl/TableServiceImplSpec.groovy | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/metacat-main/src/test/groovy/com/netflix/metacat/main/services/impl/TableServiceImplSpec.groovy b/metacat-main/src/test/groovy/com/netflix/metacat/main/services/impl/TableServiceImplSpec.groovy index 286c78696..e6de01440 100644 --- a/metacat-main/src/test/groovy/com/netflix/metacat/main/services/impl/TableServiceImplSpec.groovy +++ b/metacat-main/src/test/groovy/com/netflix/metacat/main/services/impl/TableServiceImplSpec.groovy @@ -50,6 +50,7 @@ import com.netflix.spectator.api.DefaultRegistry import com.netflix.spectator.api.NoopRegistry import spock.lang.Specification import spock.lang.Unroll +import com.netflix.metacat.common.server.usermetadata.ParentChildRelMetadataService; import javax.annotation.meta.When @@ -80,6 +81,7 @@ class TableServiceImplSpec extends Specification { def connectorTableServiceProxy def authorizationService def ownerValidationService + def parentChildRelSvc def service def setup() { @@ -96,10 +98,11 @@ class TableServiceImplSpec extends Specification { connectorTableServiceProxy = new ConnectorTableServiceProxy(connectorManager, converterUtil) authorizationService = new DefaultAuthorizationService(config) ownerValidationService = Mock(OwnerValidationService) + parentChildRelSvc = Mock(ParentChildRelMetadataService) service = new TableServiceImpl(connectorManager, connectorTableServiceProxy, databaseService, tagService, usermetadataService, new MetacatJsonLocator(), - eventBus, registry, config, converterUtil, authorizationService, ownerValidationService) + eventBus, registry, config, converterUtil, authorizationService, ownerValidationService, parentChildRelSvc) } def testTableGet() { @@ -311,7 +314,7 @@ class TableServiceImplSpec extends Specification { connectorManager, connectorTableServiceProxy, databaseService, tagService, usermetadataService, new MetacatJsonLocator(), eventBus, new DefaultRegistry(), config, converterUtil, authorizationService, - new DefaultOwnerValidationService(new NoopRegistry())) + new DefaultOwnerValidationService(new NoopRegistry()), parentChildRelSvc) def initialDefinitionMetadataJson = toObjectNode(initialDefinitionMetadata) tableDto = new TableDto(