mariotoffia / FluentDocker

Use docker, docker-compose local and remote in tests and your .NET core/full framework apps via a FluentAPI
Apache License 2.0
1.31k stars 97 forks source link

Composite WaitForPort with ServiceName #273

Open kegesch opened 2 years ago

kegesch commented 2 years ago

The WaitForPort("servicename", "80/tcp", 20000) works as expected on CompositeBuilder. However after adding .ServiceName("AlternativeName") the WaitForPort() does not work anymore:

Can't find host endpoint for container port: 80/tcp
  1. I assume ServiceName is the project name in docker compose?
  2. I assumed that changing the project name does not change the expected service name in WaitForPort().

Changing "servicename" to "AlternativeName_servicename" however works.

mariotoffia commented 2 years ago

Hi @kegesch thanks for the bug report!