Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-53643

TEST_SEARCH_SOLR_HOSTNAME and TEST_SEARCH_SOLR_PORT not used correctly

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: Global search
    • Labels:
    • Testing Instructions:
      Hide
      1. Install solr and enable global search https://docs.moodle.org/dev/Global_search
      2. Check that you can query stuff
      3. Now set search_solr -> server_hostname and server_port to wrong values
      4. Set TEST_SEARCH_SOLR_HOSTNAME, TEST_SEARCH_SOLR_PORT and TEST_SEARCH_SOLR_INDEXNAME in config.php so we can run solr unit tests
      5. Run unit tests (-c search) they should pass
      Show
      Install solr and enable global search https://docs.moodle.org/dev/Global_search Check that you can query stuff Now set search_solr -> server_hostname and server_port to wrong values Set TEST_SEARCH_SOLR_HOSTNAME, TEST_SEARCH_SOLR_PORT and TEST_SEARCH_SOLR_INDEXNAME in config.php so we can run solr unit tests Run unit tests (-c search) they should pass
    • Affected Branches:
      MOODLE_31_STABLE
    • Fixed Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-53643_master

      Description

      As Eric Merrill pointed out in dev chat, these vars should overwrite server_hostname and server_port, not hostname and port.

      This is an important issue although easy to fix.

        Attachments

          Activity

            People

            • Assignee:
              dmonllao David Monllaó
              Reporter:
              dmonllao David Monllaó
              Integrator:
              Dan Poltawski
              Tester:
              Dan Poltawski
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                23/May/16