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

Solr unavailable causes behat fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.4.5
    • Fix Version/s: None
    • Component/s: Global search
    • Labels:
      None

      Description

      As discovered by Damyon Wiese, if you do not have the solr extension installed, then behat fails galore:

      2016 i34:MDL-63776-master>  vendor/bin/behat --format="moodle_progress" --out="std" --format="progress" --out="/Users/nicols/Sites/moodles/i34/extra/behat/progress.txt" --format="pretty" --out="/Users/nicols/Sites/moodles/i34/extra/behat/pretty.txt" --config=/Users/nicols/Sites/moodles/i34/moodledata_behat/behatrun/behat/behat.yml --name="Search from header search box with one result"
      Moodle 3.4.5+ (Build: 20181023), a6741c5d1f33ad2eb2693271e9d5def12e948c76
      Php: 7.0.32, pgsql: 9.6.9, OS: Darwin 17.7.0 x86_64
      Server OS "Darwin", Browser: "chrome"
      Browser specific fixes have been applied. See http://docs.moodle.org/dev/Acceptance_testing#Browser_specific_fixes
      Started at 26-10-2018, 09:05
      ....F----
       
      --- Failed steps:
       
      001 Scenario: Search from header search box with one result        # /Users/nicols/Sites/moodles/i34/moodle/search/tests/behat/search_query.feature:17
            When I search for "frogs" using the header global search box # /Users/nicols/Sites/moodles/i34/moodle/search/tests/behat/search_query.feature:21
              Moodle exception: Engine solr is not installed. More information about this error
       
       
              ×
       
              Debug info:
       
              Error code: enginenotinstalled
       
       
       
              ×
       
              Stack trace:
       
              line 141 of /search/classes/manager.php: core_search\engine_exception thrown
              line 56 of /search/index.php: call to core_search\manager::instance()
               (Exception)
       
      1 scenario (1 failed)
      9 steps (4 passed, 1 failed, 4 skipped)
      0m31.41s (63.30Mb)
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            dobedobedoh Andrew Nicols
            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: