diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-10 15:04:49 +0200 |
---|---|---|
committer | Duarte Meneses <duarte.meneses@sonarsource.com> | 2015-08-12 16:12:50 +0200 |
commit | 3be4a0c53385a59c40e87f7e8ba5283b1c5928d3 (patch) | |
tree | f49d582e482c3664281b2f60d9214a4e8223812d /sonar-batch/src/test/resources | |
parent | 3dfd88128803a86d614d4085a19c004e230f73ef (diff) | |
download | sonarqube-3be4a0c53385a59c40e87f7e8ba5283b1c5928d3.tar.gz sonarqube-3be4a0c53385a59c40e87f7e8ba5283b1c5928d3.zip |
SONAR-6777 Project cache sync
Diffstat (limited to 'sonar-batch/src/test/resources')
10 files changed, 362 insertions, 7 deletions
diff --git a/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/BatchPluginUnzipperTest/sonar-checkstyle-plugin-2.8.jar b/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/BatchPluginJarExploderTest/sonar-checkstyle-plugin-2.8.jar Binary files differindex f937399bec5..f937399bec5 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/BatchPluginUnzipperTest/sonar-checkstyle-plugin-2.8.jar +++ b/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/BatchPluginJarExploderTest/sonar-checkstyle-plugin-2.8.jar diff --git a/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/JdbcDriverHolderTest/jdbc-driver.jar b/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/JdbcDriverHolderTest/jdbc-driver.jar Binary files differdeleted file mode 100644 index c2bde4e5fff..00000000000 --- a/sonar-batch/src/test/resources/org/sonar/batch/bootstrap/JdbcDriverHolderTest/jdbc-driver.jar +++ /dev/null diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_rules_list.protobuf b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_rules_list.protobuf Binary files differnew file mode 100644 index 00000000000..1d417ce2880 --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_rules_list.protobuf diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_GitScmProvider.text b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_GitScmProvider.text new file mode 100644 index 00000000000..a9ad538e80a --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_GitScmProvider.text @@ -0,0 +1,49 @@ +523048e7f5ca9550505f2d8ea6d587e7 +50ff1975ec4309da19591231c6b5104b +eba1d423f8632818ce94c4eac1b90713 +6112a40c70ed55453a0753030d5564a4 +3389dae361af79b04c9c8e7057f60cc6 +eac5fc1130394e7268b1cfbc54cd7e4d +c0b153d8c08365f2de343e278d3b54c7 +eb4521cb5d193e1d37ecac25b0ffea43 +9210ed0dec59ed663c744d7fb68f0275 +3389dae361af79b04c9c8e7057f60cc6 +cd0fbdfa49d32525ecbdb8dab19dafe6 +ea12a10f5b7730daa639fe133867e088 +69739b9bc9312dfb1a6b8625a08c652a +ec21e054f7f5748d0161fe27cdad6462 +3389dae361af79b04c9c8e7057f60cc6 +951a83e8074813100da0cba92092b385 +c93caecd79a332773cfb06cd5d3b8895 +5832d52d5fcb22a3350f62c856993f0d +c4c9bdd47ee05028cb84873da0ebf2b5 +f89e422b117e518acef69df33f199d10 + +90aa2aae2384f6412c3b86d085d5ffa5 +647f262205ad09f32b0091df388992ed + +943d54ba3e8812437c4d26ef8aa263f8 + +340385b760d1441d3b74e5e39399cc0c + +a94613fd32125cd63160b0c1cf2bd078 + +3415664f5f4a608772e6a4c73a993804 +597b7f5598c56e77bd28b9ff15a30802 +cbb184dd8e05c9709e5dcaedaa0495cf + +2c953c12d2eb6ea958b7f3045ecf8e81 +864d4d5a0cd65f52d791700443cec75e +1b2437750694bba602fedc0a568c65de +cbb184dd8e05c9709e5dcaedaa0495cf + +2c953c12d2eb6ea958b7f3045ecf8e81 +d18a921e891f6f9af8564a882efea289 +8bc5ef2851a7dcf1cf096a68e2a47ba6 +cbb184dd8e05c9709e5dcaedaa0495cf + +2c953c12d2eb6ea958b7f3045ecf8e81 +9cf0f8aa69740d88788fb437589ed33f +0df2777822bbc7799716a10478ca58d4 +cbb184dd8e05c9709e5dcaedaa0495cf +cbb184dd8e05c9709e5dcaedaa0495cf diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_JGitBlameCommand.text b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_JGitBlameCommand.text new file mode 100644 index 00000000000..e21a25bd7b6 --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/api_sources_hash_JGitBlameCommand.text @@ -0,0 +1,149 @@ +523048e7f5ca9550505f2d8ea6d587e7 +50ff1975ec4309da19591231c6b5104b +eba1d423f8632818ce94c4eac1b90713 +6112a40c70ed55453a0753030d5564a4 +3389dae361af79b04c9c8e7057f60cc6 +eac5fc1130394e7268b1cfbc54cd7e4d +c0b153d8c08365f2de343e278d3b54c7 +eb4521cb5d193e1d37ecac25b0ffea43 +9210ed0dec59ed663c744d7fb68f0275 +3389dae361af79b04c9c8e7057f60cc6 +cd0fbdfa49d32525ecbdb8dab19dafe6 +ea12a10f5b7730daa639fe133867e088 +69739b9bc9312dfb1a6b8625a08c652a +ec21e054f7f5748d0161fe27cdad6462 +3389dae361af79b04c9c8e7057f60cc6 +951a83e8074813100da0cba92092b385 +c93caecd79a332773cfb06cd5d3b8895 +5832d52d5fcb22a3350f62c856993f0d +c4c9bdd47ee05028cb84873da0ebf2b5 +f89e422b117e518acef69df33f199d10 + +9e0ae10d6ada18721c856844d765b465 +ea3c894506f93b88c9fc6c9790da9008 +c5c303a0f47f5f15f22b6776fc1c8c93 +4f592acdcfc11c97e7f19231de9d69b0 +6aea6951956275cb62d01063a1e695fe +293f7a3f08e54359c17d5e984f721665 +18d24bd6a2c2c15d3914502e2776e372 +107e08f15be7e18888da7e69948ac3ba +90aa2aae2384f6412c3b86d085d5ffa5 +ef76944333105582ae8d3a51d29b3b8a +2a592c3d07126847ae4cbbed4a2b4d46 +6f382821d6f35beb6ae4080607046898 + +943d54ba3e8812437c4d26ef8aa263f8 +6fa05171389dfbeda44181c98e580d18 +391715e38dad3a13b75205d527e82c8a +bb3900a63a8cecc1e79592e054915c97 +7c8d40302b1200413bc859331a4f241d +0e2ad2ad1ad56b970e4348a3967d1e81 +049ace1ff1516be8a5fd7cddc0ab2f30 +d2c44db3922004ac2ae41fb402d005b1 +b0ba7766e9e1fddaf40e86b62a5c2900 + +62e220c0092e8ae61f5937f18e4b03bc + +a5eeb3bd06bd4499f8a9ad20ba426bbd + +2bb44a6b46970b3efd87cc8a68848fae + +5b9e24bad64529f3e35ba4f1aed892f2 +78f4e1ffbbf29629025b20f6b1be36f5 +cbb184dd8e05c9709e5dcaedaa0495cf + +2c953c12d2eb6ea958b7f3045ecf8e81 +0f253056876c021c4fd3f3e5ddc4d5b6 +520e98566046a173f9250aa3b7a40ec9 +c31394024dee65cba7e5c526c69af278 +80d5b17efc16ace990c07580fc3e85eb +d28bc6d296024d650b16efe1369128b0 +38ba857d93d3a54a6b7f1bfc1b8fb090 +d41f14cd3267e8d9c17b47ddcb71b0c1 +54f339c05c18199eca937a31fdc07857 +7efc34bf8e2ba01cec26c50875ac8acd +5a29aee8cfe3a5110dc892ab8adfc17f +d271e10accbea4cb6365b85150505b0d +cbb184dd8e05c9709e5dcaedaa0495cf +cbb184dd8e05c9709e5dcaedaa0495cf + +319f70c2d340b01002c3539d09dabbec +b225a5ae163bfc56684d172522993825 +791c95e71dd996b4d723f96df3f37ca4 +80d5b17efc16ace990c07580fc3e85eb +2a8af480cbdcc0ee9b44187a078c8fe7 +4340b548cda0dbc6043cbf4cf49d1b12 +2df758e8d85494e7ee23a02d4c3aa6a7 +e44feb14b61ab99767239eaded464459 +eb375774c265dedeefeb29283ceea9bc +c87c662bc284c5f9c01d3551957ee32e +cbb184dd8e05c9709e5dcaedaa0495cf +cbb184dd8e05c9709e5dcaedaa0495cf +cbb184dd8e05c9709e5dcaedaa0495cf + +1fcefdfae441ded6478da69428a30f12 +8fcd1ffa896d0e214539b1bfa179f3e8 +7a64b5f6e57cc9f13d5a1be99b9f7c23 +8884d72adb8d93474c6af620a7d6fdba +cbb184dd8e05c9709e5dcaedaa0495cf +7e53b1d2085d8c7ae88417eccc5a0893 +cbb184dd8e05c9709e5dcaedaa0495cf + +5f68d8059a28922be107658c3890c230 +6ded45bc62f1d535345e67001dac69d5 +34165242e2230ffca31d7942ec577e6b +02f5ec563dbaaef9ef402c6941a36c98 +784b65e21ca0539f3cefb1710ccc7768 +982e86cf85e0f121ba1a2f0ef462aa6b +cbb184dd8e05c9709e5dcaedaa0495cf +80d5b17efc16ace990c07580fc3e85eb +34c0d764eb79cc7c6dccb53e711fd4be +a5b2391dd7127292b7240c7c8c1ee92a +54d7949984c901073fffda9956190c12 +da38c234aa3fdca9ec1e0e2b991d3568 +6b2decb38be3882440910fd75ec508cd +ce51581950deb12616108c0e909f9c53 +cbb184dd8e05c9709e5dcaedaa0495cf +cbb184dd8e05c9709e5dcaedaa0495cf + +e8165f1ae4cf11035542d4b60ac7b14d +c8272ad357e7feaf2671a0612e52d3b5 +2c953c12d2eb6ea958b7f3045ecf8e81 +209935c0f7c635d91164fe2b14314a3d +448b1c0a64288dbeac516ba67c9f2574 +540c13e9e156b687226421b24f2df178 +cbb184dd8e05c9709e5dcaedaa0495cf +c0c97e22db5055def551d1cef15fb251 +cbb184dd8e05c9709e5dcaedaa0495cf + +8983f749749a87599ea48c8bc08cac86 +f298d78afda5708f64ded32af0e7f541 +248e216059cad9c12bc8ff8b3b6289e2 +80d5b17efc16ace990c07580fc3e85eb +318ddd60a422c3d0435acd5f7aa6923c +7c3bca9656325d15227ffac4ce5dfde9 +7d992ab2241888573c1c7bdfe5d33a35 +cd620097a91b074942d29535e822ebb0 +a50e423de97896afb97123424a960664 +35bb4ed816814a612f9605aec97c69fb +cbb184dd8e05c9709e5dcaedaa0495cf +280db1f26dcc577de8fc62d40627112b +e5b027822061ae041ced3d958b6f7f37 +11a0dde589dec02e8d95c4ea6d83780f +e5acab4c66ae60432ccc5a45d718d152 +3c4b4570f7e4c7037693b1aa1fd5a9ca +420d9af4c91e3248bb2a4e72a683a03a +d69bf14adaf9ea45b48c0fdfefa4f69d +505b97969baa28c3f607a38ee02f4f2d +cbb184dd8e05c9709e5dcaedaa0495cf +da94121a62e940229bd622927ad7702f +9d2a20a55b185c4a864efd3484a870fa +cbb184dd8e05c9709e5dcaedaa0495cf +daada2d57491a2d0b4d237f29fc039dc +53220ad5b69915dec696a01167d5237b +2fb05fbd558fb020eacca16faa325246 +cbb184dd8e05c9709e5dcaedaa0495cf +423c485e2882c1fd9a1b19983b812f50 +cbb184dd8e05c9709e5dcaedaa0495cf + +cbb184dd8e05c9709e5dcaedaa0495cf diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_issues.protobuf b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_issues.protobuf Binary files differnew file mode 100644 index 00000000000..8b610d8f73c --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_issues.protobuf diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_project.json b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_project.json new file mode 100644 index 00000000000..2887ce18d10 --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_project.json @@ -0,0 +1,164 @@ +{ + "timestamp": 0, + "qprofilesByLanguage": { + "java": { + "key": "java-sonar-way-72608", + "name": "Sonar way", + "language": "java", + "rulesUpdatedAt": "2015-08-10T12:06:53+0200" + } + }, + "activeRules": [ + { + "repositoryKey": "common-java", + "ruleKey": "DuplicatedBlocks", + "name": "Source files should not have any duplicated blocks", + "severity": "MAJOR", + "language": "java", + "params": {} + }, + { + "repositoryKey": "common-java", + "ruleKey": "InsufficientBranchCoverage", + "name": "Branches should have sufficient coverage by unit tests", + "severity": "MAJOR", + "language": "java", + "params": { + "minimumBranchCoverageRatio": "65.0" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "RightCurlyBraceStartLineCheck", + "name": "A close curly brace should be located at the beginning of a line", + "severity": "MINOR", + "internalKey": "RightCurlyBraceStartLineCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "UselessParenthesesCheck", + "name": "Useless parentheses around expressions should be removed to prevent any misunderstanding", + "severity": "MAJOR", + "internalKey": "UselessParenthesesCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeCheck", + "name": "The Object.finalize() method should not be called", + "severity": "CRITICAL", + "internalKey": "ObjectFinalizeCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeOverridenCheck", + "name": "The Object.finalize() method should not be overriden", + "severity": "CRITICAL", + "internalKey": "ObjectFinalizeOverridenCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ObjectFinalizeOverridenCallsSuperFinalizeCheck", + "name": "super.finalize() should be called at the end of Object.finalize() implementations", + "severity": "BLOCKER", + "internalKey": "ObjectFinalizeOverridenCallsSuperFinalizeCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "ClassVariableVisibilityCheck", + "name": "Class variable fields should not have public accessibility", + "severity": "MAJOR", + "internalKey": "ClassVariableVisibilityCheck", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2188", + "name": "JUnit test cases should call super methods", + "severity": "CRITICAL", + "internalKey": "S2188", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2186", + "name": "JUnit assertions should not be used in \"run\" methods", + "severity": "CRITICAL", + "internalKey": "S2186", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2187", + "name": "TestCases should contain tests", + "severity": "MAJOR", + "internalKey": "S2187", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2391", + "name": "JUnit framework methods should be declared properly", + "severity": "CRITICAL", + "internalKey": "S2391", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S2325", + "name": "\"private\" methods that don\u0027t access instance data should be \"static\"", + "severity": "MINOR", + "internalKey": "S2325", + "language": "java", + "params": {} + }, + { + "repositoryKey": "squid", + "ruleKey": "S1166", + "name": "Exception handlers should preserve the original exception", + "severity": "CRITICAL", + "internalKey": "S1166", + "language": "java", + "params": { + "exceptions": "java.lang.InterruptedException, java.lang.NumberFormatException, java.text.ParseException, java.net.MalformedURLException" + } + }, + { + "repositoryKey": "squid", + "ruleKey": "S2970", + "name": "Assertions should be complete", + "severity": "CRITICAL", + "internalKey": "S2970", + "language": "java", + "params": {} + } + + ], + "settingsByModule": {}, + "fileDataByModuleAndPath": { + "org.codehaus.sonar-plugins:sonar-scm-git-plugin": { + "src/test/java/org/sonar/plugins/scm/git/JGitBlameCommandTest.java": { + "needBlame": true + }, + "src/main/java/org/sonar/plugins/scm/git/GitScmProvider.java": { + "hash": "90082117d0dc0f1189ab7e4990a20667", + "needBlame": true + } + } + }, + "lastAnalysisDate": "2015-08-10T13:20:09+0200" +}
\ No newline at end of file diff --git a/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_users.protobuf b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_users.protobuf new file mode 100644 index 00000000000..e69de29bb2d --- /dev/null +++ b/sonar-batch/src/test/resources/org/sonar/batch/cache/ProjectCacheSynchronizerTest/batch_users.protobuf diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data-result.xml deleted file mode 100644 index b710ad3c272..00000000000 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data-result.xml +++ /dev/null @@ -1,4 +0,0 @@ -<dataset> - <snapshots id="100" project_id="200" islast="[true]"/> - <snapshot_data id="1" snapshot_id="100" resource_id="200" snapshot_data="org/struts/Action.java=123ABC" data_type="file_hashes" created_at="[null]" updated_at="[null]"/> -</dataset>
\ No newline at end of file diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data.xml deleted file mode 100644 index a83b8aad101..00000000000 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/FileHashesPersisterTest/should_persist_component_data.xml +++ /dev/null @@ -1,3 +0,0 @@ -<dataset> - <snapshots id="100" project_id="200" islast="[true]"/> -</dataset>
\ No newline at end of file |