aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/test/json
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-03-23 10:37:10 +0100
committerStas Vilchik <vilchiks@gmail.com>2015-03-23 10:37:10 +0100
commit6c220cf23587774804fea19b2d8d108b8120f163 (patch)
tree471357f3988eece3ef9a608e941e1119a2f83825 /server/sonar-web/src/test/json
parentd871fdd2dda38b9768367c3ab6ba71fba3ccb10b (diff)
downloadsonarqube-6c220cf23587774804fea19b2d8d108b8120f163.tar.gz
sonarqube-6c220cf23587774804fea19b2d8d108b8120f163.zip
fix reactivation of a custom rule
Diffstat (limited to 'server/sonar-web/src/test/json')
-rw-r--r--server/sonar-web/src/test/json/coding-rules-page-should-create-custom-rules/create.json34
1 files changed, 34 insertions, 0 deletions
diff --git a/server/sonar-web/src/test/json/coding-rules-page-should-create-custom-rules/create.json b/server/sonar-web/src/test/json/coding-rules-page-should-create-custom-rules/create.json
new file mode 100644
index 00000000000..ef93a9be8d8
--- /dev/null
+++ b/server/sonar-web/src/test/json/coding-rules-page-should-create-custom-rules/create.json
@@ -0,0 +1,34 @@
+{
+ "rule": {
+ "key": "squid:My_Custom_Rule",
+ "repo": "squid",
+ "name": "My Custom Rule",
+ "createdAt": "2015-03-23T09:30:40+0100",
+ "severity": "MAJOR",
+ "status": "READY",
+ "internalKey": "ArchitecturalConstraint",
+ "isTemplate": false,
+ "templateKey": "squid:ArchitecturalConstraint",
+ "tags": [],
+ "sysTags": [],
+ "lang": "java",
+ "langName": "Java",
+ "htmlDesc": "My Description",
+ "mdDesc": "My Description",
+ "debtOverloaded": false,
+ "params": [
+ {
+ "key": "toClasses",
+ "htmlDesc": "Mandatory. Ex : java.util.Vector, java.util.Hashtable, java.util.Enumeration",
+ "type": "STRING",
+ "defaultValue": "java.util.Vector"
+ },
+ {
+ "key": "fromClasses",
+ "htmlDesc": "Optional. If this property is not defined, all classes should adhere to this constraint. Ex : *<em>.web.</em>*",
+ "type": "STRING",
+ "defaultValue": "java.util.Hashtable"
+ }
+ ]
+ }
+}