Skip to content

Commit

Permalink
Add initial implementation for integration
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Jun 2, 2024
1 parent 1fab4fd commit eee6b21
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -80,6 +81,7 @@ class TableServiceImplSpec extends Specification {
def connectorTableServiceProxy
def authorizationService
def ownerValidationService
def parentChildRelSvc

def service
def setup() {
Expand All @@ -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() {
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit eee6b21

Please sign in to comment.