]> source.dussan.org Git - sonarqube.git/commit
Fix Elasticsearch UT which is failing
authorJacek <jacek.poreda@sonarsource.com>
Tue, 29 Mar 2022 09:07:36 +0000 (11:07 +0200)
committersonartech <sonartech@sonarsource.com>
Fri, 1 Apr 2022 10:07:37 +0000 (10:07 +0000)
commit6f5086ae866864ec4f70128a2d05db1351f617be
treeb834a4ad37fe6c2540b2015d2cf4c7f241c541b4
parenta6bc912ec91e944fc767ce75f3602d544eebb44a
Fix Elasticsearch UT which is failing

- Reason for failing is that documents are soft deleted in Elasticsearch (Lucene underneath). This was affecting documents score, which were wrongly calculated. The fix is about recreating index for this specific tests as this is costly operation.
build.gradle
server/sonar-server-common/build.gradle
server/sonar-server-common/src/testFixtures/java/org/sonar/server/es/EsTester.java
server/sonar-webserver-es/src/test/java/org/sonar/server/component/index/ComponentIndexScoreTest.java
sonar-application/build.gradle