aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/test/json
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-06-26 10:25:53 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-06-26 10:26:01 +0200
commit788189d99db2116687bff11122131b3b4ccdf3f7 (patch)
treee31de73c42a37d7204d9677cce20a1c2c5bdcb8d /server/sonar-web/src/test/json
parent87fac1a5010e2a01b4efee27eec7f5da2125c212 (diff)
downloadsonarqube-788189d99db2116687bff11122131b3b4ccdf3f7.tar.gz
sonarqube-788189d99db2116687bff11122131b3b4ccdf3f7.zip
SONAR-6661 add update center web tests
Diffstat (limited to 'server/sonar-web/src/test/json')
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/available.json68
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/installed.json63
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/pending.json54
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/system-updates.json26
-rw-r--r--server/sonar-web/src/test/json/update-center-spec/updates.json118
5 files changed, 329 insertions, 0 deletions
diff --git a/server/sonar-web/src/test/json/update-center-spec/available.json b/server/sonar-web/src/test/json/update-center-spec/available.json
new file mode 100644
index 00000000000..95658631f6d
--- /dev/null
+++ b/server/sonar-web/src/test/json/update-center-spec/available.json
@@ -0,0 +1,68 @@
+{
+ "plugins": [
+ {
+ "key": "abap",
+ "name": "ABAP",
+ "category": "Languages",
+ "description": "Enable analysis and reporting on ABAP projects",
+ "license": "Commercial",
+ "termsAndConditionsUrl": "http://dist.sonarsource.com/SonarSource_Terms_And_Conditions.pdf",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "release": {
+ "version": "3.2",
+ "date": "2015-03-10",
+ "description": "14 new rules, most of them designed to detect potential performance hotspots.",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10054&version=10575"
+ },
+ "update": {
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ },
+ {
+ "key": "visualstudio",
+ "name": "Analysis Bootstrapper for Visual Studio Projects",
+ "category": "Languages",
+ "description": "Bootstraps the analysis from Visual Studio solution and project files.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "release": {
+ "version": "1.2",
+ "date": "2014-10-23",
+ "description": "Support multi-language (JavaScript, CSS) and SonarQube 4.5"
+ },
+ "update": {
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ },
+ {
+ "key": "android",
+ "name": "Android",
+ "category": "Languages",
+ "description": "Import Android Lint reports.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Jerome Van Der Linden, Stephane Nicolas, Florian Roncari, Thomas Bores",
+ "organizationUrl": "http://www.sonarsource.com",
+ "release": {
+ "version": "1.1",
+ "date": "2015-04-23",
+ "description": "This plugin has been renamed \"Android Lint\" to prevent any misunderstanding about its purpose: an Android project can be analysed with the standard SonarQube Java plugin and this plugin just allows to import Android Lint reports if needed. This new version provides a default sqale mapping for the Android Lint rules and the ability to automatically execute lint has been dropped.",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10944&version=11729"
+ },
+ "update": {
+ "status": "COMPATIBLE",
+ "requires": [
+ {
+ "key": "java",
+ "name": "Java",
+ "description": "SonarQube rule engine."
+ }
+ ]
+ }
+ }
+ ],
+ "updateCenterRefresh": "2015-06-26T09:24:39+0200"
+}
diff --git a/server/sonar-web/src/test/json/update-center-spec/installed.json b/server/sonar-web/src/test/json/update-center-spec/installed.json
new file mode 100644
index 00000000000..b1ef6f707bb
--- /dev/null
+++ b/server/sonar-web/src/test/json/update-center-spec/installed.json
@@ -0,0 +1,63 @@
+{
+ "plugins": [
+ {
+ "key": "scmgit",
+ "name": "Git",
+ "description": "Git SCM Provider.",
+ "version": "1.0",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/scmgit.html",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARSCGIT",
+ "implementationBuild": "9ce9d330c313c296fab051317cc5ad4b26319e07"
+ },
+ {
+ "key": "java",
+ "name": "Java",
+ "description": "SonarQube rule engine.",
+ "version": "3.2-SNAPSHOT",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/java.html",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARJAVA",
+ "implementationBuild": "c5c58e015c8d44b4f46dea7eea353e42ea7059a2"
+ },
+ {
+ "key": "javascript",
+ "name": "JavaScript",
+ "description": "Enables analysis of JavaScript projects.",
+ "version": "2.6",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Eriks Nukis",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/javascript.html",
+ "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARJS",
+ "implementationBuild": "6bd2bfe2eb0d5db6760d8f566ca399bcbcf80a5d"
+ },
+ {
+ "key": "php",
+ "name": "PHP",
+ "description": "Enables analysis of PHP projects.",
+ "version": "2.4",
+ "license": "GNU LGPL v3",
+ "organizationName": "SonarSource and Akram Ben Aissi",
+ "organizationUrl": "http://www.sonarsource.com/",
+ "homepageUrl": "http://docs.codehaus.org/display/SONAR/PHP+Plugin",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARPHP",
+ "implementationBuild": "1b445c1b06da39330051cf943f24e361ee9001f6"
+ },
+ {
+ "key": "python",
+ "name": "Python",
+ "description": "Enable analysis and reporting on python projects.",
+ "version": "1.3",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Waleri Enns",
+ "homepageUrl": "http://docs.codehaus.org/display/SONAR/Python+Plugin",
+ "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARPY",
+ "implementationBuild": "2683ee7b41164f809454470c08d3764c53903722"
+ }
+ ]
+}
diff --git a/server/sonar-web/src/test/json/update-center-spec/pending.json b/server/sonar-web/src/test/json/update-center-spec/pending.json
new file mode 100644
index 00000000000..5aab8a77595
--- /dev/null
+++ b/server/sonar-web/src/test/json/update-center-spec/pending.json
@@ -0,0 +1,54 @@
+{
+ "installing": [
+ {
+ "key": "visualstudio",
+ "name": "Analysis Bootstrapper for Visual Studio Projects",
+ "description": "Bootstraps the analysis from Visual Studio solution and project files.",
+ "version": "1.2",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://docs.codehaus.org/x/TAA1Dg",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARVS",
+ "implementationBuild": "debe8e3820709cb34658d23f4de77d65577d42b1"
+ },
+ {
+ "key": "java",
+ "name": "Java",
+ "description": "SonarQube rule engine.",
+ "version": "3.3",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/java.html",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARJAVA",
+ "implementationBuild": "8edb61630d99c752a252842633254374c0a3e70d"
+ },
+ {
+ "key": "php",
+ "name": "PHP",
+ "description": "Enables analysis of PHP projects.",
+ "version": "2.6",
+ "license": "GNU LGPL v3",
+ "organizationName": "SonarSource and Akram Ben Aissi",
+ "organizationUrl": "http://www.sonarsource.com/",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/php.html",
+ "issueTrackerUrl": "http://jira.codehaus.org/browse/SONARPHP",
+ "implementationBuild": "153f397dc6cac76c93eca5df541278447ed85ea4"
+ }
+ ],
+ "removing": [
+ {
+ "key": "javascript",
+ "name": "JavaScript",
+ "description": "Enables analysis of JavaScript projects.",
+ "version": "2.6",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Eriks Nukis",
+ "organizationUrl": "http://www.sonarsource.com",
+ "homepageUrl": "http://redirect.sonarsource.com/plugins/javascript.html",
+ "issueTrackerUrl": "https://jira.codehaus.org/browse/SONARJS",
+ "implementationBuild": "6bd2bfe2eb0d5db6760d8f566ca399bcbcf80a5d"
+ }
+ ]
+}
diff --git a/server/sonar-web/src/test/json/update-center-spec/system-updates.json b/server/sonar-web/src/test/json/update-center-spec/system-updates.json
new file mode 100644
index 00000000000..290ff5647bf
--- /dev/null
+++ b/server/sonar-web/src/test/json/update-center-spec/system-updates.json
@@ -0,0 +1,26 @@
+{
+ "upgrades": [
+ {
+ "version": "5.3",
+ "description": "New!",
+ "releaseDate": "2015-06-19",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10930&version=11625",
+ "downloadUrl": "https://downloads.sonarsource.com/sonarqube/sonarqube-5.0.zip",
+ "plugins": {
+ "requireUpdate": [
+ {
+ "key": "python",
+ "name": "Python",
+ "category": "Languages",
+ "description": "Enable analysis and reporting on python projects.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Waleri Enns",
+ "version": "1.5"
+ }
+ ],
+ "incompatible": []
+ }
+ }
+ ],
+ "updateCenterRefresh": "2015-06-26T09:59:51+0200"
+}
diff --git a/server/sonar-web/src/test/json/update-center-spec/updates.json b/server/sonar-web/src/test/json/update-center-spec/updates.json
new file mode 100644
index 00000000000..dc040f6d2a7
--- /dev/null
+++ b/server/sonar-web/src/test/json/update-center-spec/updates.json
@@ -0,0 +1,118 @@
+{
+ "plugins": [
+ {
+ "key": "scmgit",
+ "name": "Git",
+ "category": "Integration",
+ "description": "Git SCM Provider.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "updates": [
+ {
+ "release": {
+ "version": "1.1",
+ "date": "2015-06-01",
+ "description": "Use Git commit date instead of author date",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10964&version=11856"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ ]
+ },
+ {
+ "key": "java",
+ "name": "Java",
+ "category": "Languages",
+ "description": "SonarQube rule engine.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource",
+ "organizationUrl": "http://www.sonarsource.com",
+ "updates": [
+ {
+ "release": {
+ "version": "3.3",
+ "date": "2015-05-19",
+ "description": "Detection of locks left locked and new rules",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10973&version=11898"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ ]
+ },
+ {
+ "key": "php",
+ "name": "PHP",
+ "category": "Languages",
+ "description": "Enables analysis of PHP projects.",
+ "license": "GNU LGPL v3",
+ "organizationName": "SonarSource and Akram Ben Aissi",
+ "organizationUrl": "http://www.sonarsource.com/",
+ "updates": [
+ {
+ "release": {
+ "version": "2.4.1",
+ "date": "2015-02-24",
+ "description": "Bug fix release",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11824"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ },
+ {
+ "release": {
+ "version": "2.5",
+ "date": "2015-05-19",
+ "description": "5 bug detection rules, removal of all known parsing limitations and import of PHPUnit IT coverage report",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11825"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ },
+ {
+ "release": {
+ "version": "2.6",
+ "date": "2015-06-05",
+ "description": "5 new rules & improvement of existing ones",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10956&version=11826"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ ]
+ },
+ {
+ "key": "python",
+ "name": "Python",
+ "category": "Languages",
+ "description": "Enable analysis and reporting on python projects.",
+ "license": "GNU LGPL 3",
+ "organizationName": "SonarSource and Waleri Enns",
+ "updates": [
+ {
+ "release": {
+ "version": "1.4",
+ "date": "2015-03-24",
+ "description": "Provides a SQALE definition to PyLint rules, allows the import of Pylint reports and adds tags to rules.",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10958&version=11835"
+ },
+ "status": "INCOMPATIBLE",
+ "requires": []
+ },
+ {
+ "release": {
+ "version": "1.5",
+ "date": "2015-04-02",
+ "description": "Provides 20 new rules and fixes some parsing issues.",
+ "changeLogUrl": "http://jira.sonarsource.com/secure/ReleaseNote.jspa?projectId=10958&version=11836"
+ },
+ "status": "COMPATIBLE",
+ "requires": []
+ }
+ ]
+ }
+ ],
+ "updateCenterRefresh": "2015-06-26T09:27:08+0200"
+}