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 5c801b9 commit 4ba9a32
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class MetacatFunctionalSpec extends Specification {

def dataUri = "file:/tmp/${catalog.name}/${databaseName}/${tableName}".toString()
def definitionMetadata = metacatJson.parseJsonObject('{"objectField": {}}')
def responseDefinitionMetadata = metacatJson.parseJsonObject('{"objectField":{},"owner":{"userId":"metacat-test"}}')
def responseDefinitionMetadata = metacatJson.parseJsonObject('{"objectField":{},"owner":{"userId":"metacat-test"},"parentChildRelationInfo":{}}')
def dataMetadata = metacatJson.emptyObjectNode().put('data_field', 4)
def dto = new TableDto(
name: QualifiedName.ofTable(catalog.name, databaseName, tableName),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,9 @@ private ObjectNode createParentChildObjectNode(@Nullable final ParentInfo parent
rootNode.set("parentInfo", parentNode);
}

if (childInfos.isEmpty()) {
if (!childInfos.isEmpty()) {
// Convert Set<ChildInfo> to an ArrayNode
final ArrayNode childrenArrayNode = objectMapper.createArrayNode();
final ArrayNode childrenArrayNode = objectMapper.createArrayNode();
for (ChildInfo childInfo : childInfos) {
final ObjectNode childNode = objectMapper.createObjectNode();
childNode.put("name", childInfo.getName());
Expand Down

0 comments on commit 4ba9a32

Please sign in to comment.