Skip to content

HDPI-7213: Add CftLibTest for citizen gen app creation#2033

Open
scottstewart-sl wants to merge 18 commits into
masterfrom
HDPI-7213_wiremock_email_testing
Open

HDPI-7213: Add CftLibTest for citizen gen app creation#2033
scottstewart-sl wants to merge 18 commits into
masterfrom
HDPI-7213_wiremock_email_testing

Conversation

@scottstewart-sl

@scottstewart-sl scottstewart-sl commented Jun 26, 2026

Copy link
Copy Markdown
Contributor

Jira link

See HDPI-7213

Change description

Add a CftLibTest for citizen gen app creation. This includes some refactoring of the Cftlib code to have more re-usable setup methods, and some shared wiremock stubs for the document services. The Citizen gen app test also runs up its own wiremock so that email notifications can be checked. The main test class that has been added is CitizenMakeAnApplicationTest

I've brought in some changes from #1984 which record the defendant access codes in a dedicated table for tests, so that the CftLib test can get an access code and that won't break after #1984 is merged.

Testing done

Build run.

Security Vulnerability Assessment

CVE Suppression: Are there any CVEs present in the codebase (either newly introduced or pre-existing) that are being intentionally suppressed or ignored by this commit?

  • Yes
  • No

Checklist

  • commit messages are meaningful and follow good commit message guidelines
  • README and other documentation has been updated / added (if needed)
  • tests have been updated / new tests has been added (if needed)
  • Does this PR introduce a breaking change

Includes shared wiremock stubs for document services and also a wiremock test for emails
@github-actions

github-actions Bot commented Jun 26, 2026

Copy link
Copy Markdown

CCD diff summary

👉 Full report: https://github.com/hmcts/pcs-api/actions/runs/29101576484?check_suite_focus=true

No change

@scottstewart-sl scottstewart-sl marked this pull request as ready for review June 26, 2026 17:19
@scottstewart-sl scottstewart-sl requested review from a team, andrewdami11 and guygrewal77 June 26, 2026 17:19
…email_testing

# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/testingsupport/endpoint/TestingSupportController.java
#	src/test/java/uk/gov/hmcts/reform/pcs/testingsupport/endpoint/TestingSupportControllerTest.java
@scottstewart-sl scottstewart-sl added enable_keep_helm and removed enable_e2e_test Currently used to test the common e2e test call labels Jul 2, 2026
…email_testing

# Conflicts:
#	src/main/java/uk/gov/hmcts/reform/pcs/ccd/service/AccessCodeGenerationService.java
#	src/main/java/uk/gov/hmcts/reform/pcs/testingsupport/config/TestingSupportSchemaInitializer.java
#	src/main/java/uk/gov/hmcts/reform/pcs/testingsupport/endpoint/TestingSupportController.java
#	src/test/java/uk/gov/hmcts/reform/pcs/ccd/service/AccessCodeGenerationServiceTest.java
#	src/test/java/uk/gov/hmcts/reform/pcs/testingsupport/endpoint/TestingSupportControllerTest.java
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant