Skip to content

Conversation

aliculPix4D
Copy link
Contributor

Split go-concourse client tests

  • Connection client is deprecated. It is important to keep the test for the HTTPAgent separate and clean. If tests are mixed as before this PR, it will be easy to remove the HTTPAgent test by accident at some later stage when connection client gets removed. This is especially true because there is only 1 test for HTTPAgent.

The test coverage percentage remained the same.

commit 1: Connection fakes are unused. Let's remove them and never generate them
commit 2: Remove the HTTP agent test from the connection test suite
commit 3: Create go-concourse/concourse/internal/http_agent_test.go and add back the test removed in commit 2

@aliculPix4D aliculPix4D requested a review from a team as a code owner October 10, 2024 14:58
Signed-off-by: aliculPix4D <aleksandar.licul@pix4d.com>
…t suite

Signed-off-by: aliculPix4D <aleksandar.licul@pix4d.com>
Signed-off-by: aliculPix4D <aleksandar.licul@pix4d.com>
@aliculPix4D aliculPix4D force-pushed the go-concourse-client-split-tests branch from ea64e4c to c8b68f0 Compare October 10, 2024 15:00
Copy link
Contributor

@marco-m-pix4d marco-m-pix4d left a comment

Choose a reason for hiding this comment

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

@taylorsilva FYI these PRs by @aliculPix4D are a series of fixes/cleanups we did in our Concourse deployment.

Copy link
Contributor

@xtremerui xtremerui left a comment

Choose a reason for hiding this comment

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

LGTM!

@xtremerui xtremerui merged commit b45e1d7 into concourse:master Nov 27, 2024
11 checks passed
@marco-m-pix4d
Copy link
Contributor

Thanks @xtremerui !

@aliculPix4D aliculPix4D deleted the go-concourse-client-split-tests branch February 21, 2025 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants