[SEARCH-2139]

updated custom model
This commit is contained in:
eliaporciani
2020-05-05 15:26:07 +02:00
parent e2572e839d
commit 27690817ec
2 changed files with 22 additions and 25 deletions
@@ -9,33 +9,23 @@
</namespaces>
<data-types/>
<constraints/>
<types>
<type name="allfieldtypes:document">
<title>allfieldtypes Content</title>
<parent>cm:content</parent>
<aspects>
<aspect name="allfieldtypes:content">
<title>content</title>
<properties>
<property name="allfieldtypes:TextPropertyA">
<title>Text</title>
<type>d:text</type>
<property name="allfieldtypes:contentTokenizedBoth">
<title>alltypecontent</title>
<type>d:content</type>
<mandatory>false</mandatory>
<index enabled="true">
<tokenised>BOTH</tokenised>
</index>
</property>
</properties>
<associations>
<association name="allfieldtypes:allfieldtypesContent">
<source>
<mandatory>false</mandatory>
<many>false</many>
</source>
<target>
<class>cm:content</class>
<mandatory>false</mandatory>
<many>false</many>
</target>
</association>
</associations>
</type>
</types>
<aspects>
<associations/>
<overrides/>
<mandatory-aspects/>
</aspect>
<aspect name="allfieldtypes:text">
<title>text</title>
<properties>
@@ -34,7 +34,14 @@ public class FieldDefinitionTest extends AbstractSearchServicesE2ETest {
// dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "D:allfieldtypes:document", new CustomObjectTypeProperties()
// .addProperty("allfieldtypes:mltextLOVPartial", "text folder-2"));
dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "allfieldtypes:document", new CustomObjectTypeProperties());
dataContent.usingUser(testUser).usingSite(testSite).createCustomContent(File1, "cmis:document", new CustomObjectTypeProperties());
cmisApi.authenticateUser(testUser).usingResource(File1).addSecondaryTypes("P:allfieldtypes:text", "P:allfieldtypes:content")
.updateProperty("allfieldtypes:mltextLOVPartial", "field definition test")
.updateProperty("allfieldtypes:textPatternUnique", "field definition test");
// .updateProperty("allfieldtypes:contentTokenizedBoth", "field definition content test");
}
@Test(priority = 1)