diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-29 13:42:32 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-09-30 16:28:08 +0200 |
commit | 4949bcaec5280aa01400ddb3be207f5d0d1b5d4c (patch) | |
tree | e25e12ab66312b6580f2f41b377813a9347b8dda | |
parent | 2793f3cc6d468ad930e3b77138b07a3e3b372a15 (diff) | |
download | sonarqube-4949bcaec5280aa01400ddb3be207f5d0d1b5d4c.tar.gz sonarqube-4949bcaec5280aa01400ddb3be207f5d0d1b5d4c.zip |
Set page size of active rules WS to 500
-rw-r--r-- | sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java | 2 | ||||
-rw-r--r-- | sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java b/sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java index 449cba0ccbc..c752b2f3871 100644 --- a/sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java +++ b/sonar-batch/src/main/java/org/sonar/batch/rule/DefaultActiveRulesLoader.java @@ -35,7 +35,7 @@ import java.io.InputStream; import java.util.List; public class DefaultActiveRulesLoader implements ActiveRulesLoader { - private static final String RULES_SEARCH_URL = "/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params&activation=true"; + private static final String RULES_SEARCH_URL = "/api/rules/search.protobuf?ps=500&f=repo,name,severity,lang,internalKey,templateKey,params&activation=true"; private final WSLoader wsLoader; diff --git a/sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java b/sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java index 766ad91ab81..9e96042319f 100644 --- a/sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java +++ b/sonar-batch/src/test/java/org/sonar/batch/rule/DefaultActiveRulesLoaderTest.java @@ -55,7 +55,7 @@ public class DefaultActiveRulesLoaderTest { Collection<Rule> activeRules = loader.load("java-sonar-way-26368", null); assertThat(activeRules).hasSize(100); - verify(ws).loadStream("/api/rules/search.protobuf?f=repo,name,severity,lang,internalKey,templateKey,params&activation=true&qprofile=java-sonar-way-26368"); + verify(ws).loadStream("/api/rules/search.protobuf?ps=500&f=repo,name,severity,lang,internalKey,templateKey,params&activation=true&qprofile=java-sonar-way-26368"); verifyNoMoreInteractions(ws); } |