-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25768 from mshima/gateway-imperative
Add spring-cloud:gateway generator and initial imperative gateway support.
- Loading branch information
Showing
28 changed files
with
446 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
70 changes: 70 additions & 0 deletions
70
generators/spring-cloud/generators/gateway/__snapshots__/generator.spec.ts.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`generator - spring-cloud:gateway with defaults options should call source snapshot 1`] = ` | ||
{ | ||
"addJavaDependencies": [ | ||
[ | ||
{ | ||
"artifactId": "spring-cloud-starter-gateway", | ||
"groupId": "org.springframework.cloud", | ||
}, | ||
], | ||
], | ||
} | ||
`; | ||
|
||
exports[`generator - spring-cloud:gateway with defaults options should match files snapshot 1`] = ` | ||
{ | ||
".yo-rc.json": { | ||
"stateCleared": "modified", | ||
}, | ||
"src/main/java/com/mycompany/myapp/security/jwt/JWTRelayGatewayFilterFactory.java": { | ||
"stateCleared": "modified", | ||
}, | ||
} | ||
`; | ||
|
||
exports[`generator - spring-cloud:gateway with imperative option should call source snapshot 1`] = ` | ||
{ | ||
"addJavaDependencies": [ | ||
[ | ||
{ | ||
"artifactId": "spring-cloud-starter-gateway-mvc", | ||
"groupId": "org.springframework.cloud", | ||
}, | ||
], | ||
], | ||
} | ||
`; | ||
|
||
exports[`generator - spring-cloud:gateway with imperative option should match files snapshot 1`] = ` | ||
{ | ||
".yo-rc.json": { | ||
"stateCleared": "modified", | ||
}, | ||
} | ||
`; | ||
|
||
exports[`generator - spring-cloud:gateway with serviceDiscovery option should call source snapshot 1`] = ` | ||
{ | ||
"addJavaDependencies": [ | ||
[ | ||
{ | ||
"artifactId": "spring-cloud-starter-gateway", | ||
"groupId": "org.springframework.cloud", | ||
}, | ||
], | ||
], | ||
} | ||
`; | ||
|
||
exports[`generator - spring-cloud:gateway with serviceDiscovery option should match files snapshot 1`] = ` | ||
{ | ||
".yo-rc.json": { | ||
"stateCleared": "modified", | ||
}, | ||
"src/main/java/com/mycompany/myapp/security/jwt/JWTRelayGatewayFilterFactory.java": { | ||
"stateCleared": "modified", | ||
}, | ||
} | ||
`; |
Oops, something went wrong.