Skip to content

Return scheme for undefined docker container #505

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

Merged
merged 3 commits into from Jul 19, 2024
Merged

Return scheme for undefined docker container #505

merged 3 commits into from Jul 19, 2024

Conversation

ghost
Copy link

@ghost ghost commented Jul 19, 2024

This PR should fix #504

In the issue I talked about to setting the scheme to "tcp". While it would work, it is not entirely accurate. So I've returned the scheme undefined (as a string), which matches closer to what it is actually happening.

@@ -70,6 +70,27 @@ func (f fakeEnv) Local() bool {
return true
}

func (s *ScenvSuite) TestGenericContainerExposesHostAndPort(c *C) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This test passes even without your change. A test should be added in docker_test.go instead.

Copy link
Author

Choose a reason for hiding this comment

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

I've deleted this test (to be honest, i've not ran the test because I haven't had a go development environment ready).

For a test in docker_test.go I would propose to test the docker integration more sophisticated (like with testcontainers, so we can test the interaction with real containers). I'm willing to send a PR, but it would take a day or two.

Copy link
Contributor

Choose a reason for hiding this comment

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

Ok, let's commit as is for now.

@fabpot fabpot merged commit 24cf9d4 into symfony-cli:main Jul 19, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Symfony does not pick up docker containers with custom ports as env vars
2 participants