Skip to content

Commit

Permalink
addres test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yingjian Wu committed Mar 6, 2024
1 parent 27ae2f6 commit 9296322
Showing 1 changed file with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1573,13 +1573,6 @@ class MetacatSmokeSpec extends Specification {
def dto = api.getTable(catalogName, databaseName, tableName, false, true, true)
then:
metacatJson.convertValue(dto.getDefinitionMetadata().get('tags'), Set.class) == tags
tagApi.getTags() == tags
tagApi.search('tag', null, null, null).size() == 3
tagApi.search('tag', null, null, tableName).size() == 1
tagApi.search('tag', null, null, tableName).size() == 1
tagApi.list(tags, null, null, null, null, null).size() == 3
tagApi.list(tags, null, null, null, null, QualifiedName.Type.TABLE).size() == 1
tagApi.list(tags, null, null, null, "random_table", QualifiedName.Type.TABLE).size() == 0
cleanup:
tagApi.removeTableTags(catalogName, databaseName, tableName, true, [] as Set<String>)
api.deleteTable(catalogName, databaseName, tableName)
Expand Down Expand Up @@ -1670,7 +1663,7 @@ class MetacatSmokeSpec extends Specification {
def "Test tags for multiple tables #catalogName/#databaseName/#tableName"() {
setup:
def catalogName = "prodhive"
def catalogName = "hive-metastore"
def databaseName = "default"
when:
createTable(catalogName, databaseName, "table1")
Expand Down

0 comments on commit 9296322

Please sign in to comment.