From 2dbed652688d87b303f7821ea619ed36ba654a19 Mon Sep 17 00:00:00 2001 From: Evgeny Mandrikov Date: Fri, 27 May 2011 02:07:33 +0400 Subject: SONAR-1922 Add a kind of version control for quality profiles Apply patch, which was contributed by Julien Henry: * Following algorithm was implemented: Every profile starts with version=1 and used=false. As soon as there is an analysis of a project, the involved profile is set to used=true. Every modification to a quality profile (activation, deactivation or modification of rule) is logged in DB in dedicated tables. When a modification is done on a profile that is used=true, then version number is increased and profile is set to used=false. * Introduced new metric to store profile version, which was used during analysis. * If profile for project is different than the one used during previous analysis, then event would be created. * Introduced new tab 'changelog' for profiles. Following fixes were applied on original patch: * Index name limited to 30 characters in Oracle DB, so names were reduced. * Field ActiveRuleChange.profileVersion never read locally, because ruby read it directly from DB, so getter added. * Direction doesn't make sense for 'profile_version' metric, so was removed. * Fixed ProfileEventsSensor: it seems that TimeMachine not guarantee that the order of measures would be the same as in query, so we should perform two sequential queries. * Fixed handling of null values during migration. --- .../configuration/InheritedProfilesTest.java | 10 +-- .../sonar/server/configuration/RuleChangeTest.java | 99 ++++++++++++++++++++++ .../configuration/BackupTest/backup-valid.xml | 4 + .../shouldActivateInChildren-result.xml | 4 +- .../shouldActivateInChildren.xml | 4 +- .../shouldChangeParent-result.xml | 6 +- .../InheritedProfilesTest/shouldChangeParent.xml | 6 +- .../InheritedProfilesTest/shouldCheckCycles.xml | 6 +- .../shouldDeactivateInChildren-result.xml | 4 +- .../shouldDeactivateInChildren.xml | 4 +- .../shouldNotDeleteInheritedProfile-result.xml | 6 +- .../shouldRemoveParent-result.xml | 4 +- .../InheritedProfilesTest/shouldRemoveParent.xml | 4 +- .../shouldRenameInheritedProfile-result.xml | 6 +- .../shouldSetParent-result.xml | 4 +- .../InheritedProfilesTest/shouldSetParent.xml | 4 +- .../RuleChangeTest/changeParentProfile-result.xml | 5 ++ .../RuleChangeTest/changeParentProfile.xml | 22 +++++ .../configuration/RuleChangeTest/initialData.xml | 21 +++++ .../RuleChangeTest/ruleActivated-result.xml | 5 ++ .../RuleChangeTest/ruleDeactivated-result.xml | 7 ++ .../RuleChangeTest/ruleParamChanged-result.xml | 7 ++ .../RuleChangeTest/ruleReverted-result.xml | 8 ++ .../configuration/RuleChangeTest/ruleReverted.xml | 19 +++++ .../RuleChangeTest/ruleSeverityChanged-result.xml | 5 ++ .../versionIncreaseIfUsed-result.xml | 7 ++ .../versionIncreaseIfUsedAndInChildren-result.xml | 7 ++ ...dDisableProfilesWithMissingLanguages-result.xml | 10 +-- .../shouldDisableProfilesWithMissingLanguages.xml | 10 +-- ...ouldEnableProfilesWithKnownLanguages-result.xml | 10 +-- .../shouldEnableProfilesWithKnownLanguages.xml | 10 +-- .../RegisterMetricsTest/cleanAlerts-result.xml | 4 +- .../startup/RegisterMetricsTest/cleanAlerts.xml | 4 +- .../disableDeprecatedActiveRuleParameters.xml | 2 +- .../disableDeprecatedActiveRules.xml | 2 +- 35 files changed, 278 insertions(+), 62 deletions(-) create mode 100644 sonar-server/src/test/java/org/sonar/server/configuration/RuleChangeTest.java create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/initialData.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleActivated-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleDeactivated-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleParamChanged-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleSeverityChanged-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsed-result.xml create mode 100644 sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsedAndInChildren-result.xml (limited to 'sonar-server/src/test') diff --git a/sonar-server/src/test/java/org/sonar/server/configuration/InheritedProfilesTest.java b/sonar-server/src/test/java/org/sonar/server/configuration/InheritedProfilesTest.java index 1b95129ad95..55eb7b378f9 100644 --- a/sonar-server/src/test/java/org/sonar/server/configuration/InheritedProfilesTest.java +++ b/sonar-server/src/test/java/org/sonar/server/configuration/InheritedProfilesTest.java @@ -71,35 +71,35 @@ public class InheritedProfilesTest extends AbstractDbUnitTestCase { @Test public void shouldSetParent() { setupData("shouldSetParent"); - profilesManager.changeParentProfile(2, "parent"); + profilesManager.changeParentProfile(2, "parent", "admin"); checkTables("shouldSetParent", "active_rules", "rules_profiles"); } @Test public void shouldChangeParent() { setupData("shouldChangeParent"); - profilesManager.changeParentProfile(3, "new_parent"); + profilesManager.changeParentProfile(3, "new_parent", "admin"); checkTables("shouldChangeParent", "active_rules", "rules_profiles"); } @Test public void shouldRemoveParent() { setupData("shouldRemoveParent"); - profilesManager.changeParentProfile(2, null); + profilesManager.changeParentProfile(2, null, "admin"); checkTables("shouldRemoveParent", "active_rules", "rules_profiles"); } @Test public void shouldDeactivateInChildren() { setupData("shouldDeactivateInChildren"); - profilesManager.deactivated(1, 1); + profilesManager.deactivated(1, 1, "admin"); checkTables("shouldDeactivateInChildren", "active_rules", "rules_profiles"); } @Test public void shouldActivateInChildren() { setupData("shouldActivateInChildren"); - profilesManager.activatedOrChanged(1, 1); + profilesManager.activated(1, 1, "admin"); checkTables("shouldActivateInChildren", "active_rules", "rules_profiles", "active_rule_parameters"); } diff --git a/sonar-server/src/test/java/org/sonar/server/configuration/RuleChangeTest.java b/sonar-server/src/test/java/org/sonar/server/configuration/RuleChangeTest.java new file mode 100644 index 00000000000..d6f3bfd26e4 --- /dev/null +++ b/sonar-server/src/test/java/org/sonar/server/configuration/RuleChangeTest.java @@ -0,0 +1,99 @@ +/* + * Sonar, open source software quality management tool. + * Copyright (C) 2008-2011 SonarSource + * mailto:contact AT sonarsource DOT com + * + * Sonar is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 3 of the License, or (at your option) any later version. + * + * Sonar is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with Sonar; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02 + */ +package org.sonar.server.configuration; + +import org.sonar.api.rules.RulePriority; + +import org.junit.Before; +import org.junit.Test; +import org.sonar.api.profiles.RulesProfile; +import org.sonar.api.utils.ValidationMessages; +import org.sonar.jpa.test.AbstractDbUnitTestCase; + +import static org.hamcrest.Matchers.is; +import static org.hamcrest.Matchers.nullValue; +import static org.junit.Assert.assertThat; + +public class RuleChangeTest extends AbstractDbUnitTestCase { + private ProfilesManager profilesManager; + + @Before + public void setUp() { + profilesManager = new ProfilesManager(getSession(), null); + } + + @Test + public void testVersionIncreaseIfUsed() { + setupData("initialData"); + profilesManager.activated(2, 3, "admin"); + checkTables("versionIncreaseIfUsed", "rules_profiles"); + } + + @Test + public void testVersionIncreaseIfUsedAndInChildren() { + setupData("initialData"); + profilesManager.activated(1, 1, "admin"); + checkTables("versionIncreaseIfUsedAndInChildren", "rules_profiles"); + } + + @Test + public void testRuleActivated() { + setupData("initialData"); + profilesManager.activated(2, 3, "admin"); + checkTables("ruleActivated", new String[] {"change_date"}, "active_rule_changes"); + } + + @Test + public void testRuleDeactivated() { + setupData("initialData"); + profilesManager.deactivated(2, 3, "admin"); + checkTables("ruleDeactivated", new String[] {"change_date"}, "active_rule_changes"); + } + + @Test + public void testRuleParamChanged() { + setupData("initialData"); + profilesManager.ruleParamChanged(2, 3, "param1", "20", "30", "admin"); + checkTables("ruleParamChanged", new String[] {"change_date"}, "active_rule_changes", "active_rule_param_changes"); + } + + @Test + public void testRuleSeverityChanged() { + setupData("initialData"); + profilesManager.ruleSeverityChanged(2, 3, RulePriority.BLOCKER, RulePriority.CRITICAL, "admin"); + checkTables("ruleSeverityChanged", new String[] {"change_date"}, "active_rule_changes"); + } + + @Test + public void testRuleReverted() { + setupData("ruleReverted"); + profilesManager.revert(2, 3, "admin"); + checkTables("ruleReverted", new String[] {"change_date"}, "active_rule_changes", "active_rule_param_changes"); + } + + @Test + public void testChangeParentProfile() { + setupData("changeParentProfile"); + profilesManager.changeParentProfile(2, "parent", "admin"); + checkTables("changeParentProfile", new String[] {"change_date"}, "active_rule_changes"); + } + + +} diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml index fb33ff6a535..b5df287f5ce 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/BackupTest/backup-valid.xml @@ -36,8 +36,10 @@ + + @@ -64,10 +66,12 @@ + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml index c6e3fb56922..f34a0b494fd 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren-result.xml @@ -5,9 +5,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml index 130072bb538..62081abc403 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldActivateInChildren.xml @@ -5,9 +5,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml index 524f5db30ea..84ca4c97e9d 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent-result.xml @@ -6,11 +6,11 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml index a5d444cf42e..b2daef7a8eb 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldChangeParent.xml @@ -6,11 +6,11 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldCheckCycles.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldCheckCycles.xml index 38df95e0995..5200875be21 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldCheckCycles.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldCheckCycles.xml @@ -3,10 +3,10 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml index 18e99729416..3371d019f58 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren-result.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml index b8489c1fbd2..8d4e2c9072c 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldDeactivateInChildren.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldNotDeleteInheritedProfile-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldNotDeleteInheritedProfile-result.xml index 38df95e0995..5200875be21 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldNotDeleteInheritedProfile-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldNotDeleteInheritedProfile-result.xml @@ -3,10 +3,10 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml index 540b18c3ace..a27f357b556 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent-result.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml index b8489c1fbd2..8d4e2c9072c 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRemoveParent.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRenameInheritedProfile-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRenameInheritedProfile-result.xml index a7374525f59..c7a2355a55a 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRenameInheritedProfile-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldRenameInheritedProfile-result.xml @@ -3,10 +3,10 @@ - + - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml index b8489c1fbd2..5d9be47123b 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent-result.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml index 540b18c3ace..253e69aac65 100644 --- a/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/InheritedProfilesTest/shouldSetParent.xml @@ -3,9 +3,9 @@ - + - + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile-result.xml new file mode 100644 index 00000000000..62e8b337fec --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile-result.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile.xml new file mode 100644 index 00000000000..7c4d381feea --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/changeParentProfile.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/initialData.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/initialData.xml new file mode 100644 index 00000000000..aa0cb98276e --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/initialData.xml @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleActivated-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleActivated-result.xml new file mode 100644 index 00000000000..9af4ad48837 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleActivated-result.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleDeactivated-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleDeactivated-result.xml new file mode 100644 index 00000000000..179a8ffd239 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleDeactivated-result.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleParamChanged-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleParamChanged-result.xml new file mode 100644 index 00000000000..6704d22dea1 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleParamChanged-result.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted-result.xml new file mode 100644 index 00000000000..14b1c9d3c8b --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted-result.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted.xml new file mode 100644 index 00000000000..2ec87b2cd7b --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleReverted.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleSeverityChanged-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleSeverityChanged-result.xml new file mode 100644 index 00000000000..cd395478a45 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/ruleSeverityChanged-result.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsed-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsed-result.xml new file mode 100644 index 00000000000..b5be9280b9a --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsed-result.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsedAndInChildren-result.xml b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsedAndInChildren-result.xml new file mode 100644 index 00000000000..8c3d85e7418 --- /dev/null +++ b/sonar-server/src/test/resources/org/sonar/server/configuration/RuleChangeTest/versionIncreaseIfUsedAndInChildren-result.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages-result.xml b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages-result.xml index 62dce741d80..23de3e4d491 100644 --- a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages-result.xml @@ -1,9 +1,9 @@ - - - + + + - - + + \ No newline at end of file diff --git a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages.xml b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages.xml index f2c684b5735..082f8785417 100644 --- a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages.xml +++ b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldDisableProfilesWithMissingLanguages.xml @@ -1,7 +1,7 @@ - - - - - + + + + + \ No newline at end of file diff --git a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages-result.xml b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages-result.xml index d89acc7ae0b..505d4bc123f 100644 --- a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages-result.xml @@ -1,11 +1,11 @@ - - + + - - + + - + \ No newline at end of file diff --git a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages.xml b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages.xml index c32281a33db..7d26e5127f0 100644 --- a/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages.xml +++ b/sonar-server/src/test/resources/org/sonar/server/startup/EnableProfilesTest/shouldEnableProfilesWithKnownLanguages.xml @@ -1,7 +1,7 @@ - - - - - + + + + + \ No newline at end of file diff --git a/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/cleanAlerts-result.xml b/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/cleanAlerts-result.xml index 1bf29a3a0d2..a17525b594e 100644 --- a/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/cleanAlerts-result.xml +++ b/sonar-server/src/test/resources/org/sonar/server/startup/RegisterMetricsTest/cleanAlerts-result.xml @@ -6,8 +6,8 @@