-
Notifications
You must be signed in to change notification settings - Fork 0
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
[ESWE-1181] Employer Creation; JB API client, retriever #15
Conversation
- implemented `JobsBoardApiClient`, with unit tests and integration tests - implemented `EmployerRetriever`, with integration tests
@@ -0,0 +1,43 @@ | |||
package uk.gov.justice.digital.hmpps.jobsboardintegrationapi.employers.domain | |||
|
|||
object EmployerMother { |
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.
copied from jobs-board backend
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.
The naming and idea was taken from this pattern: https://martinfowler.com/bliki/ObjectMother.html
Thanks for asking @gbmojo
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.
Let's rename it later
<configuration> | ||
<appender name="CONSOLE" class="ch.qos.logback.core.ConsoleAppender"> | ||
<encoder> | ||
<pattern>%d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} -%kvp- %msg%n</pattern> | ||
</encoder> | ||
</appender> | ||
|
||
<logger name="uk.gov.justice.digital.hmpps.jobsboardintegrationapi" level="DEBUG"/> | ||
|
||
<root level="INFO"> | ||
<appender-ref ref="CONSOLE"/> | ||
</root> | ||
</configuration> |
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.
logging config for unit test without Spring Test
hmpps-jobs-board-api: | ||
provider: hmpps-auth | ||
client-id: ${api.client.id} | ||
client-secret: ${api.client.secret} | ||
authorization-grant-type: client_credentials | ||
scope: read |
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.
Client credentials will be required to consume internal API (1 per env)
We better revise endpoint-based roles at our backend.
JobsBoardApiClient
, with unit tests and integration testsEmployerRetriever
, with integration tests