-
-
Notifications
You must be signed in to change notification settings - Fork 552
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-20477: Upgrade to Solr 9.4.1 and Lucene 9.8.0
* finish Solr migration integration test
- Loading branch information
Showing
3 changed files
with
66 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
...-flavor-test-upgrade-1210-custom/src/test/it/org/xwiki/test/ui/Upgrade1210CustomTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
/* | ||
* See the NOTICE file distributed with this work for additional | ||
* information regarding copyright ownership. | ||
* | ||
* This is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU Lesser General Public License as | ||
* published by the Free Software Foundation; either version 2.1 of | ||
* the License, or (at your option) any later version. | ||
* | ||
* This software is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
* Lesser General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Lesser General Public | ||
* License along with this software; if not, write to the Free | ||
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA | ||
* 02110-1301 USA, or see the FSF site: http://www.fsf.org. | ||
*/ | ||
package org.xwiki.test.ui; | ||
|
||
import java.util.List; | ||
|
||
import org.xwiki.like.test.po.LikeButton; | ||
import org.xwiki.model.reference.LocalDocumentReference; | ||
import org.xwiki.platform.notifications.test.po.NotificationsTrayPage; | ||
|
||
import static org.junit.jupiter.api.Assertions.assertEquals; | ||
|
||
/** | ||
* Execute upgrade tests. | ||
* | ||
* @version $Id$ | ||
*/ | ||
public class Upgrade1210CustomTest extends UpgradeTest | ||
{ | ||
@Override | ||
protected void postUpdateValidate() throws Exception | ||
{ | ||
// Make sure the Solr migration went as planned | ||
assertSolrMigration(); | ||
} | ||
|
||
private void assertSolrMigration() throws Exception | ||
{ | ||
// We expect the page Test.Rating to be liked by users "Admin" and "user1" | ||
getUtil().gotoPage(new LocalDocumentReference(List.of("Test", "Rating"), "WebHome")); | ||
LikeButton likeButton = new LikeButton(); | ||
assertEquals(2, likeButton.getLikeNumber()); | ||
|
||
// We expect the user "user1" to have a notification associated | ||
NotificationsTrayPage.waitOnNotificationCount("xwiki:XWiki.user1", "xwiki", 1); | ||
} | ||
} |
47 changes: 0 additions & 47 deletions
47
...bution-flavor-test-upgrade-1210-custom/src/test/it/org/xwiki/test/ui/Upgrade1210Test.java
This file was deleted.
Oops, something went wrong.