-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAP-1450 Add Wiremock and Localstack setups and workflows
Created Dockerfiles for hmpps-wiremock and hmpps-localstack with necessary configurations. Added mock mappings for attribute-search and ping endpoints in Wiremock. Updated GitHub Actions workflows to include Wiremock and Localstack docker build and Trivy scan.
- Loading branch information
Showing
8 changed files
with
64 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
FROM localstack/localstack:stable | ||
RUN chown localstack:localstack -R /tmp/localstack && \ | ||
chown localstack:localstack -R /var/lib/localstack | ||
USER 1000 | ||
|
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,7 @@ | ||
FROM wiremock/wiremock:latest | ||
RUN addgroup --gid 2000 --system wiremock && adduser --uid 2000 --system wiremock --gid 2000 | ||
|
||
COPY --chown=wiremock:wiremock wiremock /home/wiremock | ||
|
||
USER 2000 | ||
ENTRYPOINT ["/docker-entrypoint.sh", "--port=8090", "--global-response-templating", "--disable-gzip", "--verbose"] |
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,19 @@ | ||
{ | ||
"empty": true, | ||
"totalPages": 0, | ||
"totalElements": 0, | ||
"first": true, | ||
"last": true, | ||
"size": 0, | ||
"number": 0, | ||
"numberOfElements": 10, | ||
"pageable": { | ||
"offset": 0, | ||
"pageSize": 0, | ||
"paged": true, | ||
"pageNumber": 0, | ||
"unpaged": true | ||
}, | ||
"content": [ | ||
] | ||
} |
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,3 @@ | ||
{ | ||
"status": "UP" | ||
} |
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,13 @@ | ||
{ | ||
"request": { | ||
"method": "POST", | ||
"urlPath": "/attribute-search" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"headers": { | ||
"Content-Type": "application/json" | ||
}, | ||
"bodyFileName": "attribute-search.json" | ||
} | ||
} |
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,13 @@ | ||
{ | ||
"request": { | ||
"method": "GET", | ||
"urlPath": "/health/ping" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "ping.json", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |