Skip to content
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

PUB-2574 - Add functional tests for system admin and bulk creation #463

Merged
merged 21 commits into from
Dec 18, 2024

Conversation

NatashaAlker
Copy link
Contributor

JIRA link (if applicable)

https://tools.hmcts.net/jira/browse/PUB-2574

Change description

Add functional tests for bulk media account creation and system admin account creation

Does this PR introduce a breaking change? (check one with "x")

[ ] Yes
[x] No

public void teardown() throws IOException {
File mockFile = new File(System.getProperty(MOCK_FILE));

List<String> emails = Files.lines(mockFile.toPath(), StandardCharsets.UTF_8)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than needing to parse the original file, I'm thinking you could use a standard prefix that all accounts in this test use.

E.g pip-am-test-email--

This way you'll be able to call the delete request just once with pip-am-test-email- and it'll delete them all

@ChrisS1512 ChrisS1512 merged commit 3420e70 into master Dec 18, 2024
6 checks passed
@ChrisS1512 ChrisS1512 deleted the PUB-2574c branch December 18, 2024 09:15
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.

2 participants