aboutsummaryrefslogtreecommitdiffstats
path: root/it
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-06-07 18:35:06 +0200
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-06-13 08:45:48 +0200
commitfc5c4eb0759899611099798d3704c71fc4f875d1 (patch)
tree96da6f95f86175d4a6406c22b28023b1b78087d3 /it
parentf97e92ae7ed4b79f4980dcb70502d755f4bf733c (diff)
downloadsonarqube-fc5c4eb0759899611099798d3704c71fc4f875d1.tar.gz
sonarqube-fc5c4eb0759899611099798d3704c71fc4f875d1.zip
SONAR-7692 support uuid columns in resource_index
Diffstat (limited to 'it')
-rw-r--r--it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java b/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java
index b49a6c9a7f3..be1a983e7dc 100644
--- a/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java
+++ b/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java
@@ -291,12 +291,12 @@ public class PurgeTest {
private void assertDeleted(String key) {
assertThat(count("snapshots s where s.project_id=(select p.id from projects p where p.kee='" + key + "')")).isZero();
- assertThat(count("resource_index ri where ri.resource_id=(select p.id from projects p where p.kee='" + key + "')")).isZero();
+ assertThat(count("resource_index ri where ri.component_uuid=(select p.uuid from projects p where p.kee='" + key + "')")).isZero();
}
private void assertSingleSnapshot(String key) {
assertThat(count("snapshots s where s.project_id=(select p.id from projects p where p.kee='" + key + "')")).isEqualTo(1);
- assertThat(count("resource_index ri where ri.resource_id=(select p.id from projects p where p.kee='" + key + "')")).isGreaterThan(1);
+ assertThat(count("resource_index ri where ri.component_uuid=(select p.uuid from projects p where p.kee='" + key + "')")).isGreaterThan(1);
}
private BuildResult scan(String path, String date) {