-
Notifications
You must be signed in to change notification settings - Fork 5
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
SDI-88: ♻️ Tidy up mocks and switch to multiplatform builds #89
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,16 +2,14 @@ version: '3.1' | |
services: | ||
|
||
redis: | ||
image: 'bitnami/redis:5.0' | ||
image: 'redis:6.2' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. switch to images that are suitable for |
||
networks: | ||
- hmpps_int | ||
environment: | ||
- ALLOW_EMPTY_PASSWORD=yes | ||
ports: | ||
- '6379:6379' | ||
|
||
wiremock: | ||
image: rodolpheche/wiremock | ||
image: wiremock/wiremock | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this is the new home for wiremock and provides an |
||
networks: | ||
- hmpps_int | ||
container_name: wiremock | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,8 +153,8 @@ const stubUserRoles = () => | |
|
||
export default { | ||
getSignInUrl, | ||
stubPing: (): Promise<[Response, Response]> => Promise.all([ping(), tokenVerification.stubPing()]), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. this was a bit odd since the health check was calling both auth and token verification anyway |
||
stubAuthPing: ping, | ||
stubSignIn: (): Promise<[Response, Response, Response, Response, Response, Response]> => | ||
Promise.all([favicon(), redirect(), signOut(), manageDetails(), token(), tokenVerification.stubVerifyToken()]), | ||
stubUser: (): Promise<[Response, Response]> => Promise.all([stubUser(), stubUserRoles()]), | ||
stubAuthUser: (): Promise<[Response, Response]> => Promise.all([stubUser(), stubUserRoles()]), | ||
} |
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.
from
4.0
the base executor was changed instead