Commit 16146e03 authored by Thomas Mortagne's avatar Thomas Mortagne
Browse files

XCOMMONS-2446: Remove the <originalMetadataAuthor> element from XAR sources

* update tests
parent fe598dd0
...@@ -44,13 +44,6 @@ void executeWithWrongAuthor() throws Exception ...@@ -44,13 +44,6 @@ void executeWithWrongAuthor() throws Exception
"- Effective author must be [xwiki:XWiki.Admin] but was [wrongAuthor]", "There are errors in the XAR XML files!"); "- Effective author must be [xwiki:XWiki.Admin] but was [wrongAuthor]", "There are errors in the XAR XML files!");
} }
@Test
void executeWithWrongOriginalAuthor() throws Exception
{
verifyExecution("/wrongOriginalAuthor", "Verifying [Space/WebHome.xml]... errors",
"- Original author must be [xwiki:XWiki.Admin] but was [wrongAuthor]", "There are errors in the XAR XML files!");
}
@Test @Test
void executeWithWrongAttachmentAuthorsAndMimetypes() throws Exception void executeWithWrongAttachmentAuthorsAndMimetypes() throws Exception
{ {
...@@ -241,6 +234,17 @@ void executeWithDatesPresent() throws Exception ...@@ -241,6 +234,17 @@ void executeWithDatesPresent() throws Exception
// @formatter:on // @formatter:on
} }
@Test
void executeWithOriginalAuthorPresent() throws Exception
{
// @formatter:off
verifyExecution("/wrongOriginalAuthor",
"Verifying [Space/WebHome.xml]... errors",
"- 'originalMetadataAuthor' field is present",
"There are errors in the XAR XML files!");
// @formatter:on
}
@Test @Test
void executeWithSkippedDatesCheck() throws Exception void executeWithSkippedDatesCheck() throws Exception
{ {
......
...@@ -36,7 +36,6 @@ ...@@ -36,7 +36,6 @@
<parent>Main.WebHome</parent> <parent>Main.WebHome</parent>
<creator>xwiki:XWiki.Admin</creator> <creator>xwiki:XWiki.Admin</creator>
<author>xwiki:XWiki.Admin</author> <author>xwiki:XWiki.Admin</author>
<originalMetadataAuthor>xwiki:XWiki.Admin</originalMetadataAuthor>
<customClass/> <customClass/>
<contentAuthor>xwiki:XWiki.Admin</contentAuthor> <contentAuthor>xwiki:XWiki.Admin</contentAuthor>
<version>1.1</version> <version>1.1</version>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment