diff options
author | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-06-25 12:57:36 +0200 |
---|---|---|
committer | Julien Lancelot <julien.lancelot@sonarsource.com> | 2014-06-25 12:57:36 +0200 |
commit | 1a8e027826df25a65ef72a57f2644c3354aac3f5 (patch) | |
tree | 7b4fd23c14e4d8c3742786d636c50bb09dbe0029 /sonar-server/src/test/resources/org | |
parent | 0d001db8e1bd9dae369de553f5ed4a3bdf29405d (diff) | |
download | sonarqube-1a8e027826df25a65ef72a57f2644c3354aac3f5.tar.gz sonarqube-1a8e027826df25a65ef72a57f2644c3354aac3f5.zip |
SONAR-5407 Add a some medium tests on rule with debt
Diffstat (limited to 'sonar-server/src/test/resources/org')
-rw-r--r-- | sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_and_overridden_debt_infos.json | 27 | ||||
-rw-r--r-- | sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_debt_infos.json | 27 | ||||
-rw-r--r-- | sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_overridden_debt_infos.json (renamed from sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_debt_infos.json) | 0 |
3 files changed, 54 insertions, 0 deletions
diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_and_overridden_debt_infos.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_and_overridden_debt_infos.json new file mode 100644 index 00000000000..7bbf8f63577 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_and_overridden_debt_infos.json @@ -0,0 +1,27 @@ +{ + "rule": { + "key": "java:S001", + "repo": "java", + "name": "Rule S001", + "htmlDesc": "Rule S001 <b>description</b>", + "severity": "MINOR", + "status": "BETA", + "isTemplate": false, + "tags": ["tag1", "tag2"], + "sysTags": ["systag1", "systag2"], + "debtChar": "OS", + "debtSubChar": "OS_RELATED_PORTABILITY", + "debtRemFnType": "LINEAR_OFFSET", + "debtRemFnCoeff": "5d", + "debtRemFnOffset": "10h", + "lang": "xoo", + "params": [ + { + "key": "regex", + "desc": "Reg ex", + "defaultValue": ".*" + } + ] + } +} + diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_debt_infos.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_debt_infos.json new file mode 100644 index 00000000000..84a0cc89f5e --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_default_debt_infos.json @@ -0,0 +1,27 @@ +{ + "rule": { + "key": "java:S001", + "repo": "java", + "name": "Rule S001", + "htmlDesc": "Rule S001 <b>description</b>", + "severity": "MINOR", + "status": "BETA", + "isTemplate": false, + "tags": ["tag1", "tag2"], + "sysTags": ["systag1", "systag2"], + "debtChar": "API", + "debtSubChar": "API_ABUSE", + "debtRemFnType": "LINEAR_OFFSET", + "debtRemFnCoeff": "5d", + "debtRemFnOffset": "10h", + "lang": "xoo", + "params": [ + { + "key": "regex", + "desc": "Reg ex", + "defaultValue": ".*" + } + ] + } +} + diff --git a/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_debt_infos.json b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_overridden_debt_infos.json index 67aa980fb1c..67aa980fb1c 100644 --- a/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_debt_infos.json +++ b/sonar-server/src/test/resources/org/sonar/server/rule/ws/ShowActionMediumTest/show_rule_with_overridden_debt_infos.json |