Skip to content

Commit 22e6700

Browse files
authored
Rename notification-server into study-notification-server (#71)
Signed-off-by: Florent MILLOT <[email protected]>
1 parent 7634789 commit 22e6700

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

src/main/java/org/gridsuite/gateway/ServiceURIsConfig.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ public class ServiceURIsConfig {
3030
@Value("${backing-services.merge-orchestrator-server.base-uri:http://merge-orchestrator-server/}")
3131
String mergeOrchestratorServerBaseUri;
3232

33-
@Value("${backing-services.notification-server.base-uri:http://notification-server/}")
34-
String notificationServerBaseUri;
33+
@Value("${backing-services.study-notification-server.base-uri:http://study-notification-server/}")
34+
String studyNotificationServerBaseUri;
3535

3636
@Value("${backing-services.merge-notification-server.base-uri:http://merge-notification-server/}")
3737
String mergeNotificationServerBaseUri;

src/main/java/org/gridsuite/gateway/endpoints/StudyNotificationServer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
@Component(value = StudyNotificationServer.ENDPOINT_NAME)
1616
public class StudyNotificationServer implements EndPointServer {
1717

18-
public static final String ENDPOINT_NAME = "notification";
18+
public static final String ENDPOINT_NAME = "study-notification";
1919

2020
private final ServiceURIsConfig servicesURIsConfig;
2121

@@ -25,7 +25,7 @@ public StudyNotificationServer(ServiceURIsConfig servicesURIsConfig) {
2525

2626
@Override
2727
public String getEndpointBaseUri() {
28-
return servicesURIsConfig.getNotificationServerBaseUri();
28+
return servicesURIsConfig.getStudyNotificationServerBaseUri();
2929
}
3030

3131
@Override

src/main/resources/application-local.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ backing-services:
88
base-uri: http://localhost:5001
99
merge-orchestrator-server:
1010
base-uri: http://localhost:5020
11-
notification-server:
11+
study-notification-server:
1212
base-uri: http://localhost:5009
1313
merge-notification-server:
1414
base-uri: http://localhost:5002

src/test/java/org/gridsuite/gateway/TokenValidationTest.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
"backing-services.merge-notification-server.base-uri=http://localhost:${wiremock.server.port}",
5959
"backing-services.directory-notification-server.base-uri=http://localhost:${wiremock.server.port}",
6060
"backing-services.actions-server.base-uri=http://localhost:${wiremock.server.port}",
61-
"backing-services.notification-server.base-uri=http://localhost:${wiremock.server.port}",
61+
"backing-services.study-notification-server.base-uri=http://localhost:${wiremock.server.port}",
6262
"backing-services.config-server.base-uri=http://localhost:${wiremock.server.port}",
6363
"backing-services.config-notification-server.base-uri=http://localhost:${wiremock.server.port}",
6464
"backing-services.directory-server.base-uri=http://localhost:${wiremock.server.port}",
@@ -374,7 +374,7 @@ public void testWebsockets() {
374374
.withStatus(101)
375375
.withStatusMessage("Switching Protocols")));
376376

377-
testWebsocket("notification");
377+
testWebsocket("study-notification");
378378
testWebsocket("config-notification");
379379
testWebsocket("merge-notification");
380380
testWebsocket("directory-notification");
@@ -534,7 +534,7 @@ public void invalidToken() {
534534
// test without a token
535535
WebSocketClient client = new StandardWebSocketClient();
536536
client.execute(URI.create("ws://localhost:" +
537-
this.localServerPort + "/notification/notify"),
537+
this.localServerPort + "/study-notification/notify"),
538538
ws -> ws.receive().then()).doOnSuccess(s -> Assert.fail("Should have thrown"));
539539
}
540540

0 commit comments

Comments
 (0)