Skip to content

Commit

Permalink
add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Jul 1, 2024
1 parent f6b60bc commit 3cce656
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2078,7 +2078,7 @@ class MetacatSmokeSpec extends Specification {
api.createTable(catalogName, databaseName, child11, child11TableDto)
then:
e = thrown(Exception)
e.message.contains("Cannot have a child table having more than one parent")
assert e.message.contains("already exists")
// Test Parent 1 parentChildInfo
assert parent1Table.definitionMetadata.get("parentChildRelationInfo").get("isParent").booleanValue()
Expand Down Expand Up @@ -2142,7 +2142,7 @@ class MetacatSmokeSpec extends Specification {
api.createTable(catalogName, databaseName, parent1, parent1TableDto)
then:
e = thrown(Exception)
e.message.contains("Cannot have a child table having more than one parent")
assert e.message.contains("already exists")
// Test Parent 1 parentChildInfo
assert parent1Table.definitionMetadata.get("parentChildRelationInfo").get("isParent").booleanValue()
Expand Down

0 comments on commit 3cce656

Please sign in to comment.