aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-webserver-webapi
diff options
context:
space:
mode:
authorAntoine Vigneau <antoine.vigneau@sonarsource.com>2024-08-06 13:45:14 +0200
committersonartech <sonartech@sonarsource.com>2024-08-16 20:02:58 +0000
commit461a47d22b55a5450062883a6c1bd22e0a4ec3dd (patch)
tree7107a6598c46d4f3899f9659a14232f4d4b552b8 /server/sonar-webserver-webapi
parent808cba5b51d54a61ef2a01e6e78e3874ef53eea5 (diff)
downloadsonarqube-461a47d22b55a5450062883a6c1bd22e0a4ec3dd.tar.gz
sonarqube-461a47d22b55a5450062883a6c1bd22e0a4ec3dd.zip
SONAR-22516 API v2 endpoints for managing the email configuration
Diffstat (limited to 'server/sonar-webserver-webapi')
-rw-r--r--server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java2
-rw-r--r--server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
index 6c54426c691..ad5226988ff 100644
--- a/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
+++ b/server/sonar-webserver-webapi/src/main/java/org/sonar/server/email/ws/EmailsWsModule.java
@@ -20,11 +20,13 @@
package org.sonar.server.email.ws;
import org.sonar.core.platform.Module;
+import org.sonar.server.common.email.config.EmailConfigurationService;
public class EmailsWsModule extends Module {
@Override
protected void configureModule() {
add(
+ EmailConfigurationService.class,
EmailsWs.class,
SendAction.class);
}
diff --git a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
index 8e076cb9c20..e5775c25f9f 100644
--- a/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
+++ b/server/sonar-webserver-webapi/src/test/java/org/sonar/server/email/ws/EmailsWsModuleTest.java
@@ -29,6 +29,6 @@ public class EmailsWsModuleTest {
public void verify_count_of_added_components() {
ListContainer container = new ListContainer();
new EmailsWsModule().configure(container);
- assertThat(container.getAddedObjects()).hasSize(2);
+ assertThat(container.getAddedObjects()).hasSize(3);
}
}