From beef5229082acf340954dd5ba4f29bce1056612f Mon Sep 17 00:00:00 2001 From: Yingjian Wu Date: Wed, 6 Mar 2024 14:41:06 -0500 Subject: [PATCH] address test --- .../groovy/com/netflix/metacat/MetacatSmokeSpec.groovy | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy index 17b39d889..63b1f574a 100644 --- a/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy +++ b/metacat-functional-tests/src/functionalTest/groovy/com/netflix/metacat/MetacatSmokeSpec.groovy @@ -1669,7 +1669,9 @@ class MetacatSmokeSpec extends Specification { createTable(catalogName, databaseName, "table1") tagApi.setTableTags(catalogName, databaseName, "table1", ['table1', 'test'] as Set) then: - tagApi.getTags().size() == 2 + // Bt default, the setup already contains the following tags + // [data-category:non-customer, test, test_tag, unused, do_not_drop, iceberg_migration_do_not_modify, do_not_rename] + tagApi.getTags().size() == 8 tagApi.list(['table1', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.search('test', null, null, null).size() == 3 tagApi.search('table1', null, null, null).size() == 3 @@ -1677,7 +1679,7 @@ class MetacatSmokeSpec extends Specification { createTable(catalogName, databaseName, "table2") tagApi.setTableTags(catalogName, databaseName, "table2", ['table2', 'test'] as Set) then: - tagApi.getTags().size() == 3 + tagApi.getTags().size() == 9 tagApi.list(['table1', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.list(['table2', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.list(['test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 2 @@ -1688,7 +1690,7 @@ class MetacatSmokeSpec extends Specification { createTable(catalogName, databaseName, "table3") tagApi.setTableTags(catalogName, databaseName, "table3", ['table3', 'unused'] as Set) then: - tagApi.getTags().size() == 5 + tagApi.getTags().size() == 11 tagApi.list(['table1', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.list(['table2', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.list(['test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 2 @@ -1702,7 +1704,7 @@ class MetacatSmokeSpec extends Specification { when: api.deleteTable(catalogName, databaseName, "table1") then: - tagApi.getTags().size() == 5 + tagApi.getTags().size() == 11 tagApi.list(['table1', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 0 tagApi.list(['table2', 'test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1 tagApi.list(['test'] as Set, null, null, null, null, QualifiedName.Type.TABLE).size() == 1