Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-5297

exttests use HTTP_HOST instead of SERVER_NAME

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: Integration
    • Labels:
      None

      Description

      HOST_NAME already includes the port.
      This breaks the redirect tests if you have your web server hosted on a specific port and blocks MDLSITE-5296.

        ["HTTP_HOST"]=>
        string(14) "localhost:8080"
        ["SERVER_NAME"]=>
        string(9) "localhost"
      

      Since we already concatenate the port onto the URL in those tests, we currently end up trying to redirect to:

      localhost:8080:8080
      

      Pull request up at:
      https://github.com/moodlehq/moodle-exttests/pull/13

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: