]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5329 - Added logs Table to DatabaseVersion definition
authorStephane Gamard <stephane.gamard@searchbox.com>
Tue, 10 Jun 2014 19:45:17 +0000 (21:45 +0200)
committerStephane Gamard <stephane.gamard@searchbox.com>
Tue, 10 Jun 2014 19:45:17 +0000 (21:45 +0200)
sonar-core/src/main/java/org/sonar/core/persistence/DatabaseVersion.java
sonar-server/src/test/java/org/sonar/server/log/LogBackendMediumTest.java

index ac36c77d2775f21deba66f0792b8b4a0dcfb3381..9f4dd4f5b0c874a20a8a4ecaabbf7599c403618e 100644 (file)
@@ -92,7 +92,8 @@ public class DatabaseVersion implements BatchComponent, ServerComponent {
     "users",
     "user_roles",
     "widgets",
-    "widget_properties"
+    "widget_properties",
+    "logs"
     );
 
   private MyBatis mybatis;
index 20f41c446bd0b6eddb2282346b1d35238c9536a9..55a1b187dec86fb2cf22c47920791d978b376a46 100644 (file)
@@ -101,7 +101,8 @@ public class LogBackendMediumTest {
 
   @Test
   public void massive_insert() {
-    int max = 50;
+    assertThat(dao.findAll(dbSession)).hasSize(0);
+    int max = 20;
     final String testValue = "hello world";
     for (int i = 0; i < max; i++) {
       service.write(dbSession, Log.Type.ACTIVE_RULE, testValue + "_" + i);