mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-02 06:08:01 +00:00
parent
930fc16ad8
commit
28c76fe2e1
@ -11,7 +11,7 @@
|
|||||||
"description": "Name of the tag.",
|
"description": "Name of the tag.",
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"minLength": 2,
|
"minLength": 2,
|
||||||
"maxLength": 25
|
"maxLength": 64
|
||||||
},
|
},
|
||||||
"tagCategoryType": {
|
"tagCategoryType": {
|
||||||
"description": "Type of tag category.",
|
"description": "Type of tag category.",
|
||||||
|
@ -273,7 +273,7 @@ public class TagResourceTest extends CatalogApplicationTest {
|
|||||||
// Long name
|
// Long name
|
||||||
create.withName(TestUtils.LONG_ENTITY_NAME).withCategoryType(TagCategoryType.Descriptive);
|
create.withName(TestUtils.LONG_ENTITY_NAME).withCategoryType(TagCategoryType.Descriptive);
|
||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
() -> createAndCheckCategory(create, ADMIN_AUTH_HEADERS), BAD_REQUEST, "name size must be between 2 and 25");
|
() -> createAndCheckCategory(create, ADMIN_AUTH_HEADERS), BAD_REQUEST, "name size must be between 2 and 64");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Order(1)
|
@Order(1)
|
||||||
@ -313,13 +313,13 @@ public class TagResourceTest extends CatalogApplicationTest {
|
|||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
() -> createPrimaryTag(USER_TAG_CATEGORY.getName(), create, ADMIN_AUTH_HEADERS),
|
() -> createPrimaryTag(USER_TAG_CATEGORY.getName(), create, ADMIN_AUTH_HEADERS),
|
||||||
BAD_REQUEST,
|
BAD_REQUEST,
|
||||||
"name size must be between 2 and 25");
|
"name size must be between 2 and 64");
|
||||||
|
|
||||||
// Long secondary tag name
|
// Long secondary tag name
|
||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
() -> createSecondaryTag(USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), create, ADMIN_AUTH_HEADERS),
|
() -> createSecondaryTag(USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), create, ADMIN_AUTH_HEADERS),
|
||||||
BAD_REQUEST,
|
BAD_REQUEST,
|
||||||
"name size must be between 2 and 25");
|
"name size must be between 2 and 64");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -374,7 +374,7 @@ public class TagResourceTest extends CatalogApplicationTest {
|
|||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
() -> updateCategory(USER_TAG_CATEGORY.getName(), create, ADMIN_AUTH_HEADERS),
|
() -> updateCategory(USER_TAG_CATEGORY.getName(), create, ADMIN_AUTH_HEADERS),
|
||||||
BAD_REQUEST,
|
BAD_REQUEST,
|
||||||
"name size must be between 2 and 25");
|
"name size must be between 2 and 64");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
@ -417,7 +417,7 @@ public class TagResourceTest extends CatalogApplicationTest {
|
|||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
() -> updatePrimaryTag(USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), create, ADMIN_AUTH_HEADERS),
|
() -> updatePrimaryTag(USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), create, ADMIN_AUTH_HEADERS),
|
||||||
BAD_REQUEST,
|
BAD_REQUEST,
|
||||||
"name size must be between 2 and 25");
|
"name size must be between 2 and 64");
|
||||||
|
|
||||||
// Long secondary tag name
|
// Long secondary tag name
|
||||||
assertResponseContains(
|
assertResponseContains(
|
||||||
@ -425,7 +425,7 @@ public class TagResourceTest extends CatalogApplicationTest {
|
|||||||
updateSecondaryTag(
|
updateSecondaryTag(
|
||||||
USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), "Secondary", create, ADMIN_AUTH_HEADERS),
|
USER_TAG_CATEGORY.getName(), ADDRESS_TAG.getName(), "Secondary", create, ADMIN_AUTH_HEADERS),
|
||||||
BAD_REQUEST,
|
BAD_REQUEST,
|
||||||
"name size must be between 2 and 25");
|
"name size must be between 2 and 64");
|
||||||
}
|
}
|
||||||
|
|
||||||
private TagCategory createAndCheckCategory(CreateTagCategory create, Map<String, String> authHeaders)
|
private TagCategory createAndCheckCategory(CreateTagCategory create, Map<String, String> authHeaders)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user