aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorStephane Gamard <stephane.gamard@searchbox.com>2014-07-25 15:45:59 +0200
committerStephane Gamard <stephane.gamard@searchbox.com>2014-07-25 15:45:59 +0200
commitc799e9745bb3f33e7146b870853ede4eb05a8a1f (patch)
treeaae7295086e4d37937ac70686d7beaa3293febd3 /sonar-server
parent83d4e04cfd57d992e0f67da2cfe06260e413408f (diff)
parent5de168c51c20ef298d1257cc91517eeca9db7d9c (diff)
downloadsonarqube-c799e9745bb3f33e7146b870853ede4eb05a8a1f.tar.gz
sonarqube-c799e9745bb3f33e7146b870853ede4eb05a8a1f.zip
Merge branch 'master' into SONAR-4898
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_and_overridden_debt_values.json18
-rw-r--r--sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_constant_debt.json17
-rw-r--r--sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_linear_debt.json17
3 files changed, 52 insertions, 0 deletions
diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_and_overridden_debt_values.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_and_overridden_debt_values.json
new file mode 100644
index 00000000000..3aa6211c764
--- /dev/null
+++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_and_overridden_debt_values.json
@@ -0,0 +1,18 @@
+{"total": 1, "p": 1, "ps": 10, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "LINEAR_OFFSET",
+ "debtRemFnCoeff": "2h",
+ "debtRemFnOffset": "25min",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}
diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_constant_debt.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_constant_debt.json
new file mode 100644
index 00000000000..6ae75abecb5
--- /dev/null
+++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_constant_debt.json
@@ -0,0 +1,17 @@
+{"total": 1, "p": 1, "ps": 10, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "CONSTANT_ISSUE",
+ "debtRemFnOffset": "5min",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}
diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_linear_debt.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_linear_debt.json
new file mode 100644
index 00000000000..b1c457e13c0
--- /dev/null
+++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/RulesWebServiceMediumTest/search_debt_rules_with_default_linear_offset_and_overridden_linear_debt.json
@@ -0,0 +1,17 @@
+{"total": 1, "p": 1, "ps": 10, "rules": [
+ {
+ "key": "xoo:x1",
+ "debtChar": "RELIABILITY",
+ "debtCharName": "Reliability",
+ "debtSubChar": "SOFT_RELIABILITY",
+ "debtSubCharName": "Soft Reliability",
+ "debtRemFnType": "LINEAR",
+ "debtRemFnCoeff": "1h",
+ "debtOverloaded": true,
+ "defaultDebtChar": "RELIABILITY",
+ "defaultDebtSubChar": "HARD_RELIABILITY",
+ "defaultDebtRemFnType": "LINEAR_OFFSET",
+ "defaultDebtRemFnCoeff": "1h",
+ "defaultDebtRemFnOffset": "15min"
+ }
+]}