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

ADR-1115 increase connector test coverage with wiremock #257

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

simondrugan16
Copy link
Contributor

@simondrugan16 simondrugan16 commented Jan 7, 2025

There were a few pieces of branching logic that weren't being tested in connectors. Just a small PR to increase coverage in these areas. On Scoverage test report with ITs only, the connector coverage is slightly below 100%, but this is just because the loggers are not being printed in ITs. Ticket: https://jira.tools.tax.service.gov.uk/browse/ADR-1115

@platops-pr-bot
Copy link

ajchilts
ajchilts previously approved these changes Jan 8, 2025
Copy link
Contributor

@ajchilts ajchilts left a comment

Choose a reason for hiding this comment

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

LGTM @simondrugan16 - just one suggestion.

@@ -105,6 +105,32 @@ class AlcoholDutyReturnsConnectorISpec extends ISpecBase with WireMockHelper{
}
}

"should fail when a return is submitted, but something other than a CREATED (202) Status code is returned" in new SetUp {
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggest rename test to...

"should fail when an unexpected status code is returned" OR;

"submission should fail when an unexpected status code is returned"

@simondrugan16 simondrugan16 merged commit 69894a7 into main Jan 8, 2025
1 check passed
@simondrugan16 simondrugan16 deleted the ADR-1115 branch January 8, 2025 14:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants