aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/it
diff options
context:
space:
mode:
authorOrlovAlexander <alexander.orlov@sonarsource.com>2024-10-14 09:03:02 +0200
committersonartech <sonartech@sonarsource.com>2024-10-16 20:03:02 +0000
commitc63283fce767013e11ca6bf1c26170a11c0d48da (patch)
treecd01b86e456639d5149ab9854b4ef65a363a6cf0 /server/sonar-db-dao/src/it
parenta49dcbfad564db95c05d538d7aff110a33db12a1 (diff)
downloadsonarqube-c63283fce767013e11ca6bf1c26170a11c0d48da.tar.gz
sonarqube-c63283fce767013e11ca6bf1c26170a11c0d48da.zip
SONAR-23250 Support impacts in QP export-import
Diffstat (limited to 'server/sonar-db-dao/src/it')
-rw-r--r--server/sonar-db-dao/src/it/java/org/sonar/db/qualityprofile/QualityProfileExportDaoIT.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/it/java/org/sonar/db/qualityprofile/QualityProfileExportDaoIT.java b/server/sonar-db-dao/src/it/java/org/sonar/db/qualityprofile/QualityProfileExportDaoIT.java
index d89759ca42a..75e3e435b93 100644
--- a/server/sonar-db-dao/src/it/java/org/sonar/db/qualityprofile/QualityProfileExportDaoIT.java
+++ b/server/sonar-db-dao/src/it/java/org/sonar/db/qualityprofile/QualityProfileExportDaoIT.java
@@ -104,6 +104,7 @@ class QualityProfileExportDaoIT {
ActiveRuleDto activeCustomRule =
activeRules.stream().filter(activeRuleDto -> activeRuleDto.getRuleKey().equals(customRule.getKey())).findFirst().get();
assertThat(exportCustomRuleDto.getSeverityString()).isEqualTo(activeCustomRule.getSeverityString());
+ assertThat(exportCustomRuleDto.getImpacts()).isEqualTo(activeCustomRule.getImpactsString());
// verify regular rule
ExportRuleDto exportRuleDto = results.stream().filter(regularRule -> !regularRule.isCustomRule()).findFirst().get();
@@ -119,6 +120,7 @@ class QualityProfileExportDaoIT {
ActiveRuleDto activeRule =
activeRules.stream().filter(activeRuleDto -> activeRuleDto.getRuleKey().equals(rule.getKey())).findFirst().get();
assertThat(exportRuleDto.getSeverityString()).isEqualTo(activeRule.getSeverityString());
+ assertThat(exportRuleDto.getImpacts()).isEqualTo(activeRule.getImpactsString());
}
@Test