#28212: The port 0 change for LiveServerTestCase breaks Selenium testing in 
Docker
---------------------------------------------+------------------------
               Reporter:  Robert Rollins     |          Owner:  nobody
                   Type:  Bug                |         Status:  new
              Component:  Testing framework  |        Version:  1.11
               Severity:  Normal             |       Keywords:
           Triage Stage:  Unreviewed         |      Has patch:  1
    Needs documentation:  0                  |    Needs tests:  0
Patch needs improvement:  0                  |  Easy pickings:  0
                  UI/UX:  0                  |
---------------------------------------------+------------------------
 As of Django 1.11, I cannot see any way for selenium tests to work in a
 Docker environment. Binding `LiveServerTestCase`'s `WSGIServer` to port 0
 makes it impossible for your host image's Dockerfile to expose the
 necessary port for a Selenium server to be able to connect to your host.

 I'd like to propose the attached patch to remedy this problem. It leaves
 the default behavior the same as it currently stands, but allows the
 developer to override that behavior as needed by simply defining the
 `port` property in their test class.

--
Ticket URL: <https://code.djangoproject.com/ticket/28212>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/056.841d2398b7578c8c336688fac58fb533%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to