diff options
author | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-03 23:06:45 +0100 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@sonarsource.com> | 2015-02-10 14:05:59 +0100 |
commit | 605a62f9e0342e63b55b50e76db3260dee1ef748 (patch) | |
tree | 798721d3f9b4af5df1eda911f37353a317deab44 /sonar-batch/src/test/resources/org | |
parent | e1104eb967ad973c40ac2ae7f50732aaef0cc734 (diff) | |
download | sonarqube-605a62f9e0342e63b55b50e76db3260dee1ef748.tar.gz sonarqube-605a62f9e0342e63b55b50e76db3260dee1ef748.zip |
SONAR-2570 compress db table FILE_SOURCES
Diffstat (limited to 'sonar-batch/src/test/resources/org')
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml | 24 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources_missing_src_hash.xml | 2 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/shared.xml (renamed from sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources.xml) | 4 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistDontTouchUnchanged-result.xml | 4 | ||||
-rw-r--r-- | sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml | 6 |
5 files changed, 8 insertions, 32 deletions
diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml deleted file mode 100644 index 07f08fb086c..00000000000 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/MeasurePersisterTest/shouldUpdateMeasure-result.xml +++ /dev/null @@ -1,24 +0,0 @@ -<dataset> - - <project_measures id="1" VALUE="12.5" METRIC_ID="2" SNAPSHOT_ID="3001" alert_text="[null]" RULES_CATEGORY_ID="[null]" - RULE_ID="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" - alert_status="[null]" description="[null]" rule_priority="[null]" characteristic_id="[null]" url="[null]" - person_id="[null]" - variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]" variation_value_4="[null]" variation_value_5="[null]" - measure_data="[null]"/> - - <project_measures id="2" VALUE="[null]" METRIC_ID="2" SNAPSHOT_ID="3001" alert_text="[null]" RULES_CATEGORY_ID="[null]" - RULE_ID="[null]" text_value="SHORT" tendency="[null]" measure_date="[null]" project_id="[null]" - alert_status="[null]" description="[null]" rule_priority="[null]" characteristic_id="[null]" url="[null]" - person_id="[null]" - variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]" variation_value_4="[null]" variation_value_5="[null]" - measure_data="[null]"/> - - <project_measures id="3" VALUE="[null]" METRIC_ID="2" SNAPSHOT_ID="3002" alert_text="[null]" RULES_CATEGORY_ID="[null]" - RULE_ID="[null]" text_value="[null]" tendency="[null]" measure_date="[null]" project_id="[null]" - alert_status="[null]" description="[null]" rule_priority="[null]" characteristic_id="[null]" url="[null]" - person_id="[null]" - variation_value_1="[null]" variation_value_2="[null]" variation_value_3="[null]" variation_value_4="[null]" variation_value_5="[null]" - measure_data="MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OTAxMjM0NTY3ODkwMTIzNDU2Nzg5MDEyMzQ1Njc4OQ=="/> - -</dataset> diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources_missing_src_hash.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources_missing_src_hash.xml index 4a26ff98e6a..2fc32f5845b 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources_missing_src_hash.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources_missing_src_hash.xml @@ -1,6 +1,6 @@ <dataset> <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" - data=",,,,,,,,,,,,,,,unchanged ,,,,,,,,,,,,,,,content " + binary_data="[null]" line_hashes="8d7b3d6b83c0a517eac07e1aac94b773 9a0364b9e99bb480dd25e1f0284c8555" data_hash="0263047cd758c68c27683625f072f010" src_hash="[null]" diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/shared.xml index 61fa8fc265a..14fded38340 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/file_sources.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/shared.xml @@ -1,6 +1,6 @@ <dataset> - <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" - data=",,,,,,,,,,,,,,,unchanged ,,,,,,,,,,,,,,,content " + <file_sources id="1" project_uuid="PROJECT_UUID" file_uuid="FILE_UUID" + binary_data="[null]" line_hashes="8d7b3d6b83c0a517eac07e1aac94b773 9a0364b9e99bb480dd25e1f0284c8555" data_hash="0263047cd758c68c27683625f072f010" src_hash="123456" diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistDontTouchUnchanged-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistDontTouchUnchanged-result.xml index 940080dc041..0942d062ede 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistDontTouchUnchanged-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistDontTouchUnchanged-result.xml @@ -1,7 +1,7 @@ <dataset> - <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" - data=",,,,,,,,,,,,,,,unchanged ,,,,,,,,,,,,,,,content " + <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" + binary_data="[null]" line_hashes="8d7b3d6b83c0a517eac07e1aac94b773 9a0364b9e99bb480dd25e1f0284c8555" data_hash="0263047cd758c68c27683625f072f010" src_hash="123456" diff --git a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml index 184e155cb02..0bdadc4bacc 100644 --- a/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml +++ b/sonar-batch/src/test/resources/org/sonar/batch/index/SourcePersisterTest/testPersistEmptyFile-result.xml @@ -1,12 +1,12 @@ <dataset> - <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" - data=",,,,,,,,,,,,,,,unchanged ,,,,,,,,,,,,,,,content " + <file_sources id="101" project_uuid="projectUuid" file_uuid="uuidsame" + binary_data="[null]" line_hashes="8d7b3d6b83c0a517eac07e1aac94b773 9a0364b9e99bb480dd25e1f0284c8555" data_hash="0263047cd758c68c27683625f072f010" src_hash="123456" created_at="1412952242000" updated_at="1412952242000" /> - <file_sources id="102" project_uuid="projectUuid" file_uuid="uuidempty" data="[null]" + <file_sources id="102" project_uuid="projectUuid" file_uuid="uuidempty" binary_data="[null]" line_hashes="[null]" src_hash="abcd" data_hash="0" created_at="1414597442000" updated_at="1414597442000" /> |