-
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; MN API client, registrar; revise tests #20
Conversation
- implemented `MNJobBoardApiClient`, with integration tests - implemented `EmployerRegistrar` - rename test objects' file to `EmployerObjects` - `EmployerService` is incomplete - revise tests of JobsBoardApiClient
@@ -33,6 +33,7 @@ generic-service: | |||
EXAMPLE_API_CLIENT_SECRET: "TEMPLATE_KOTLIN_API_CLIENT_SECRET" | |||
API_CLIENT_ID: "SYSTEM_CLIENT_ID" | |||
API_CLIENT_SECRET: "SYSTEM_CLIENT_SECRET" | |||
MN_JOBBOARD_API_TOKEN: "MN_JOBBOARD_API_TOKEN" |
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.
map secret value to env var, for MN APi client's authorisation
@@ -14,6 +14,7 @@ generic-service: | |||
# TODO: This should be replaced by a call to a different service, or removed | |||
EXAMPLE_API_URL: "https://jobs-board-integration-api-preprod.hmpps.service.justice.gov.uk" | |||
API_BASE_URL_JOBSBOARD: "https://jobs-board-api-preprod.hmpps.service.justice.gov.uk" | |||
API_BASE_URL_MNJOBBOARD: "https://preprodservices.sequation.net/sequation-job-api" # URL to be confirmed |
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.
Actual URL is TBD
@@ -11,6 +11,7 @@ generic-service: | |||
# TODO: This should be replaced by a call to a different service, or removed | |||
EXAMPLE_API_URL: "https://jobs-board-integration-api.hmpps.service.justice.gov.uk" | |||
API_BASE_URL_JOBSBOARD: "https://jobs-board-api.hmpps.service.justice.gov.uk" | |||
API_BASE_URL_MNJOBBOARD: "https://liveservices.sequation.net/sequation-job-api" # URL to be confirmed |
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.
Actual URL is TBD
fun convert(employer: Employer) = employer.run { | ||
MNEmployer( | ||
employerName = name, | ||
employerBio = description, | ||
// FIXME translate from employer.sector | ||
sectorId = 1, | ||
// FIXME translate from employer.status | ||
partnerId = 1, | ||
) | ||
} |
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.
This is incomplete.
ID mapping will be implemented next.
object EmployerMother { | ||
object EmployerObjects { |
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.
Renaming test objects' holder as per previous comments
MNJobBoardApiClient
, with integration testsEmployerRegistrar
EmployerObjects
EmployerService
is incomplete