mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
Merge remote-tracking branch 'remotes/origin/release/V2.7.0.x' into feature/RM-6310_securityMarksSearchNotProperlyUpdated_AutomationTests
This commit is contained in:
@@ -689,7 +689,8 @@ public class BaseRMRestTest extends RestTest
|
||||
* @param expectedResults
|
||||
* @return
|
||||
*/
|
||||
public List<String> searchForRMContentAsUser(UserModel user, String term, String sortby, List<String> expectedResults)
|
||||
public List<String> searchForRMContentAsUser(UserModel user, String term, String sortby, boolean includeFolders,
|
||||
boolean includeCategories, List<String> expectedResults)
|
||||
{
|
||||
List<String> results = new ArrayList<>();
|
||||
// wait for solr indexing
|
||||
@@ -702,12 +703,13 @@ public class BaseRMRestTest extends RestTest
|
||||
try
|
||||
{
|
||||
this.wait(waitInMilliSeconds);
|
||||
} catch (InterruptedException e)
|
||||
}
|
||||
catch (InterruptedException e)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
results = searchApi.searchForRmContentAsUser(user.getUsername(), user.getPassword(), term, sortby);
|
||||
results = searchApi.searchForRecordsAsUser(user.getUsername(), user.getPassword(), term, sortby,
|
||||
includeFolders, includeCategories);
|
||||
if (!results.isEmpty() && results.containsAll(expectedResults))
|
||||
{
|
||||
break;
|
||||
|
Reference in New Issue
Block a user