diff options
author | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-06-09 17:09:20 +0200 |
---|---|---|
committer | Sébastien Lesaint <sebastien.lesaint@sonarsource.com> | 2016-06-14 16:12:01 +0200 |
commit | a9f33af2ab0e8a72609d7304af65758c3f39bfa7 (patch) | |
tree | 7a2cc8c54bb735841f380636c1205904c80841e1 /it | |
parent | daee45d773b4f7ca9fa835c761b66ecec134d961 (diff) | |
download | sonarqube-a9f33af2ab0e8a72609d7304af65758c3f39bfa7.tar.gz sonarqube-a9f33af2ab0e8a72609d7304af65758c3f39bfa7.zip |
SONAR-7693 support removal of ID columns in SNAPSHOTS
Diffstat (limited to 'it')
-rw-r--r-- | it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java | 6 |
1 files changed, 3 insertions, 3 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 be1a983e7dc..bd7683fb5a8 100644 --- a/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java +++ b/it/it-tests/src/test/java/it/dbCleaner/PurgeTest.java @@ -146,7 +146,7 @@ public class PurgeTest { // analyse twice scan(PROJECT_SAMPLE_PATH); // and check we have 2 snapshots - assertThat(count("snapshots s where s.project_id=(select p.id from projects p where p.kee='com.sonarsource.it.samples:multi-modules-sample')")).isEqualTo(2); + assertThat(count("snapshots s where s.component_uuid=(select p.uuid from projects p where p.kee='com.sonarsource.it.samples:multi-modules-sample')")).isEqualTo(2); } /** @@ -290,12 +290,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("snapshots s where s.component_uuid=(select p.uuid 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("snapshots s where s.component_uuid=(select p.uuid from projects p where p.kee='" + key + "')")).isEqualTo(1); assertThat(count("resource_index ri where ri.component_uuid=(select p.uuid from projects p where p.kee='" + key + "')")).isGreaterThan(1); } |