This issue has been created
There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f0d9b903-4e91-426a-bcb2-f3c01c044196 XWIKI-22446 Open

Add automated test for "Solr Add to Index"

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-2d38a65c-46a1-4ebf-bc43-24f21a63603b Ilie Andriuta created this issue on 22/Aug/24 14:58
 
Summary: Add automated test for "Solr Add to Index"
Issue Type: cid:jira-generated-image-avatar-3d957505-7554-4759-b558-984956bd2ea0 Bug
Affects Versions: 11.10.13
Assignee: Unassigned
Components: Development Issues only
Created: 22/Aug/24 14:58
Priority: cid:jira-generated-image-static-major-2f14570b-b786-4ad0-9336-60b2a8a2ecf4 Major
Reporter: Ilie Andriuta
Description:

The manual test is here: Solr Add to Index

The test checks if add to index feature in Search from Administration works properly

 
Matrix discussion: https://matrix.to/#/!ikPtGZaGWtyblizzlR:matrix.xwiki.com/$1724330528616vRTfX:matrix.xwiki.com?via=matrix.org&via=matrix.xwiki.com&via=helsinki-systems.de

Ilie Andriuta: Hi! Continuing the manual tests migration, there is a test about checking if add to index feature in search from Administration works properly: https://test.xwiki.org/xwiki/bin/view/Administration%20Tests/Solr%20Add%20to%20Index. I've checked https://github.com/xwiki/xwiki-platform/blob/2a4f19ae290e48e30381dd97afd03f67e086ca0f/xwiki-platform-core/xwiki-platform-search/xwiki-platform-search-test/xwiki-platform-search-test-utils/src/main/java/org/xwiki/repository/test/SolrTestUtils.java but it seems I didn't find automated tests. Can you please confirm?

Thanks!

Vincent Massol: checking Ilie Andriuta

Vincent Massol: Ilie Andriuta: Note that SolrTestUtils is not a test, you need to check all test classes using it. I'm doing it
In practice the UI element is:

<select id="solrAdminAction" name="action">
<option value="index">Add to index</option>
<option value="delete">Delete from index</option>
<option value="reindex">Reindex</option>
</select>

and there's no usage of "solrAdminAction" in any Page Object/test
so the answer is that we don't have a test for it
I also checked for "Add to Index" in tests

Ilie Andriuta: I searched on github by repo:xwiki/xwiki-platform solr add to index test and I got a few results, but the best one I could find was the one with SolrTestUtils
ok, I'll add a task
thanks, Vincent!

 
 

2 updates

 
cid:jira-generated-image-avatar-2d38a65c-46a1-4ebf-bc43-24f21a63603b Changes by Ilie Andriuta on 22/Aug/24 14:58
 
Issue Type: Bug Task
Labels: testneeded