-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make behave tests to start containers with port-forward to run tests in non-Linux machines #51
Comments
PRs are always welcome! @jmtd - you use Behave tests a lot - any comments on this please? |
I wonder if this could be a fix in https://github.com/cekit/behave-test-steps instead. Tests such as |
+1, @jmtd |
Cool OK. We (RH OpenJDK container images) don't make use of the |
@jmtd Sorry for the long winter. Yes, it also fails since the container network is not available locally. |
Describe the solution you'd like
As youn may know, host networking driver won't work on Windows or Mac:
Hence, behave tests requiring checks like
check that page is served
won't work since the client won't connect to the container.A simple workaround we could implement is adding a
--port-forwarding
to the command line to make Cekit start the container in a random port by default (to avoid clashing when running in parallel).Additional context
An implementation idea:
cekit --descriptor image.yaml test behave --port-forwarding :8080
Would forward a local random port to 8080.
cekit --descriptor image.yaml test behave --port-forwarding 9090:8080
Would forward the local 9090 port to 8080.
I can send a PR if you agree to implement this feature.
Cheers!
The text was updated successfully, but these errors were encountered: