-
Notifications
You must be signed in to change notification settings - Fork 63
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
fix: zaas client supports v2 compatibility with both gateway endpoint base Url paths #2227
fix: zaas client supports v2 compatibility with both gateway endpoint base Url paths #2227
Conversation
33b9a7e
to
7e02681
Compare
165a181
to
2467bf0
Compare
zaas-client/src/main/java/org/zowe/apiml/zaasclient/config/DefaultZaasClientConfiguration.java
Outdated
Show resolved
Hide resolved
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 believe line 20 expects that REST API service is hosted on the same host as Gateway server.. instead it could default to apiml.service.customMetadata.apiml.gatewayHostname (similar to how gateway port) ..
zaas-client/src/main/java/org/zowe/apiml/zaasclient/config/DefaultZaasClientConfiguration.java
Outdated
Show resolved
Hide resolved
|
||
@ParameterizedTest | ||
@ValueSource(strings = {"/api/v1/gateway/auth", "api/v1/gateway/auth", "/gateway/api/v1/auth", "gateway/api/v1/auth"}) | ||
void transformOrDontChangeZoweV2BaseUrl(String baseUrl) { |
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.
given_when_then format for unit tests :)
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.
Done
Signed-off-by: Amanda D'Errico <[email protected]>
Signed-off-by: Amanda D'Errico <[email protected]>
07611ac
to
0fa4f7b
Compare
Hello, please raise this in a new ticket. |
Kudos, SonarCloud Quality Gate passed! |
… base Url paths (#2227) * zaas client supports v2 compatibility with updated path Signed-off-by: Amanda D'Errico <[email protected]> * addressed code review Signed-off-by: Amanda D'Errico <[email protected]>
… base Url paths (#2227) * zaas client supports v2 compatibility with updated path Signed-off-by: Amanda D'Errico <[email protected]> * addressed code review Signed-off-by: Amanda D'Errico <[email protected]>
… base Url paths (#2227) * zaas client supports v2 compatibility with updated path Signed-off-by: Amanda D'Errico <[email protected]> * addressed code review Signed-off-by: Amanda D'Errico <[email protected]>
…r zaas client (#2241) * fix: zaas client supports v2 compatibility with both gateway endpoint base Url paths (#2227) * zaas client supports v2 compatibility with updated path Signed-off-by: Amanda D'Errico <[email protected]> * addressed code review Signed-off-by: Amanda D'Errico <[email protected]> * chore: improved testing for zaas client compatibility for both v1 and v2 base urls (#2239) Signed-off-by: Amanda D'Errico <[email protected]> * old path pattern added back for auth endpoints Signed-off-by: Amanda D'Errico <[email protected]> * add previous v1 base url support into integration-tests/.../authentication classes Signed-off-by: Amanda D'Errico <[email protected]> * addressed code review Signed-off-by: Amanda D'Errico <[email protected]>
Signed-off-by: Amanda D'Errico [email protected]
Description
Users can now have both paths
api/v1/gateway/auth
andgateway/api/v1/auth
be compatible with Zowe v2.x.x. If the oldapi/v1/gateway/auth
is provided for apiml.gatewayAuthEndpoint, update that togateway/api/v1/auth
before initializing the ZaasClientImpl constructor.Linked to # (2182)
Type of change
Please delete options that are not relevant.
Checklist:
For more details about how should the code look like read the Contributing guideline