-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: apiml Spring-Modulith based module with Gateway and Discovery services #4051
base: v3.x.x
Are you sure you want to change the base?
Conversation
Signed-off-by: nx673747 <[email protected]>
Signed-off-by: nx673747 <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: nx673747 <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
…nto reboot/modulith
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Andrea Tabone <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Andrea Tabone <[email protected]>
…zowe/api-layer into reboot/modulith_security_config
Signed-off-by: Pablo Carle <[email protected]>
.setInstanceId(String.format("%s:%s:%d", hostname, serviceId, port)) | ||
.setAppName(serviceId) | ||
.setHostName(hostname) | ||
.setHomePageUrl(null, String.format("%s://%s:%d", scheme, hostname, port)) //TODO Will it break something else other than catalog? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess it's solved?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I need to improve this, it's a quick fix only, thanks for spotting it
Signed-off-by: Pablo Carle <[email protected]>
…nto reboot/modulith
|
||
# Service specific messages | ||
# 700-999 | ||
- key: org.zowe.apiml.common.unauthorized |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe this import is not necessary, this message is already in common-log-messages.yml
which is already included in the MessageService
bean, but we should verify it
@@ -32,26 +34,44 @@ public class BasicAuthFilter implements WebFilter { | |||
|
|||
@Override | |||
public Mono<Void> filter(ServerWebExchange exchange, WebFilterChain chain) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
some javadoc for this filter would be good too
gateway-service/src/main/java/org/zowe/apiml/gateway/service/GatewayIndexService.java
Outdated
Show resolved
Hide resolved
} | ||
|
||
// TODO Add test when primary registration |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
todo
gateway-service/src/test/java/org/zowe/apiml/gateway/services/ServicesInfoServiceTest.java
Outdated
Show resolved
Hide resolved
InstanceInfo instance4 = createBasicTestInstance(InstanceInfo.InstanceStatus.UP); | ||
List<InstanceInfo> instances = Arrays.asList(instance1, instance2, instance3, instance4); | ||
when(eurekaClient.getApplication(CLIENT_SERVICE_ID)).thenReturn(new Application(CLIENT_SERVICE_ID, instances)); | ||
var instance1 = createBasicTestInstance(InstanceInfo.InstanceStatus.STARTING); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you put them globally since they are used in more than one test?
...n-tests/src/test/java/org/zowe/apiml/functional/apicatalog/ApiCatalogAuthenticationTest.java
Show resolved
Hide resolved
…atewayIndexService.java Co-authored-by: Andrea Tabone <[email protected]> Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
|
Signed-off-by: Pablo Carle <[email protected]>
Signed-off-by: Pablo Carle <[email protected]>
Description
Gateway and Discovery as part of Spring Modulith APIML module.
Type of change
Checklist: