aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-plugin/src/test/resources
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2011-12-05 17:05:21 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2011-12-05 17:05:21 +0100
commit6fcc40818bc6e92b642e7e3aa36726233da24e95 (patch)
treeb98e86ff51a863e37c1356bde7efe1e1efa3e599 /plugins/sonar-core-plugin/src/test/resources
parent801627b7da7edfcdfff3a1456c63d1ec219c9dea (diff)
downloadsonarqube-6fcc40818bc6e92b642e7e3aa36726233da24e95.tar.gz
sonarqube-6fcc40818bc6e92b642e7e3aa36726233da24e95.zip
SONAR-1974 automatically close reviews that relate to resolved manual violations
Diffstat (limited to 'plugins/sonar-core-plugin/src/test/resources')
-rw-r--r--plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldCloseResolvedManualViolations.xml91
1 files changed, 91 insertions, 0 deletions
diff --git a/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldCloseResolvedManualViolations.xml b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldCloseResolvedManualViolations.xml
new file mode 100644
index 00000000000..d5dd2a25938
--- /dev/null
+++ b/plugins/sonar-core-plugin/src/test/resources/org/sonar/plugins/core/sensors/CloseReviewsDecoratorTest/shouldCloseResolvedManualViolations.xml
@@ -0,0 +1,91 @@
+<dataset>
+
+ <snapshots
+ id="11"
+ project_id="555"
+ status="P" islast="false"/>
+
+ <!-- Automatic violations -->
+ <rule_failures
+ id="1"
+ permanent_id="1"
+ snapshot_id="11"
+ rule_id="1"
+ failure_level="1"/>
+
+
+ <!-- Manual violations -->
+ <rule_failures
+ id="2"
+ permanent_id="2"
+ snapshot_id="22"
+ rule_id="2"
+ failure_level="4"/>
+
+ <rule_failures
+ id="3"
+ permanent_id="3"
+ snapshot_id="22"
+ rule_id="2"
+ failure_level="4"/>
+
+
+ <!--
+
+ Reviews on automatic violation
+
+ -->
+ <reviews
+ id="1"
+ status="CLOSED"
+ rule_failure_permanent_id="1"
+ resolution="[null]"
+ created_at="[null]"
+ updated_at="[null]"
+ project_id="[null]"
+ resource_line="[null]"
+ severity="MINOR"
+ user_id="[null]"
+ resource_id="555"
+ rule_id="1"
+ manual_violation="false"/>
+
+ <!--
+
+ Reviews on manual violations
+
+ -->
+
+ <!-- to be closed -->
+ <reviews
+ id="2"
+ status="RESOLVED"
+ rule_failure_permanent_id="2"
+ resolution="FIXED"
+ created_at="[null]"
+ updated_at="[null]"
+ project_id="[null]"
+ resource_line="18"
+ severity="BLOCKER"
+ user_id="[null]"
+ resource_id="555"
+ rule_id="2"
+ manual_violation="true"/>
+
+ <!-- to keep opened -->
+ <reviews
+ id="3"
+ status="OPEN"
+ rule_failure_permanent_id="3"
+ resolution="[null]"
+ created_at="[null]"
+ updated_at="[null]"
+ project_id="[null]"
+ resource_line="18"
+ severity="BLOCKER"
+ user_id="[null]"
+ resource_id="555"
+ rule_id="2"
+ manual_violation="true"/>
+
+</dataset> \ No newline at end of file