From 30885bbdcb12462ba870113f7435ac78f6507f9c Mon Sep 17 00:00:00 2001 From: Eric Hartmann Date: Thu, 7 Dec 2017 16:55:49 +0100 Subject: [PATCH] SONAR-10147 Remove 'sonar.qualitygate' setting usage to store default quality gate --- .../ProjectQgateAssociationDaoTest/shared.xml | 6 --- .../qualitygate/QualityGateUpdater.java | 17 ++----- .../server/qualitygate/QualityGates.java | 29 ------------ .../qualitygate/RegisterQualityGates.java | 6 --- .../qualitygate/ws/SetAsDefaultAction.java | 44 ++++++++++++++++--- .../server/qualitygate/QualityGatesTest.java | 16 ------- 6 files changed, 42 insertions(+), 76 deletions(-) diff --git a/server/sonar-db-dao/src/test/resources/org/sonar/db/qualitygate/ProjectQgateAssociationDaoTest/shared.xml b/server/sonar-db-dao/src/test/resources/org/sonar/db/qualitygate/ProjectQgateAssociationDaoTest/shared.xml index 830b74c8798..081048e62f7 100644 --- a/server/sonar-db-dao/src/test/resources/org/sonar/db/qualitygate/ProjectQgateAssociationDaoTest/shared.xml +++ b/server/sonar-db-dao/src/test/resources/org/sonar/db/qualitygate/ProjectQgateAssociationDaoTest/shared.xml @@ -118,12 +118,6 @@ id="8" private="[false]"/> - propertyCaptor = ArgumentCaptor.forClass(PropertyDto.class); - verify(propertiesDao).saveProperty(any(DbSession.class), propertyCaptor.capture()); - - assertThat(propertyCaptor.getValue().getKey()).isEqualTo("sonar.qualitygate"); - assertThat(propertyCaptor.getValue().getValue()).isEqualTo("42"); - } } -- 2.39.5