Commit bb431375 authored by nimrod's avatar nimrod
Browse files

- Reenabled wait_for port 80 and test listening on port 80 now that there's at...

- Reenabled wait_for port 80 and test listening on port 80 now that there's at least a single virtualhost (stub_status).
parent 084644a0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -105,3 +105,7 @@
      name: nginx
      state: running
      enabled: yes

- name: Wait for Nginx to recieve requests
  wait_for:
      port: 80
+4 −0
Original line number Diff line number Diff line
@@ -50,3 +50,7 @@ def test_nginx_stub_status(File, Command):
        'curl --resolve stub_status:80:127.0.0.1 http://stub_status/')
    assert curl.rc == 0
    assert 'Active connections:' in curl.stdout


def test_nginx_socket(Socket):
    assert Socket('tcp://0.0.0.0:80').is_listening