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

sqlsrv authdb and enrol_db failures

    XMLWordPrintable

    Details

      Description

      We are seeing consistent failures when using sqlsrv as a DB when a port is specified:

      1) auth_db_testcase::test_clean_data
      moodle_exception: Could not connect to the specified authentication database...
       
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/setuplib.php:494
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:528
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:297
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:429
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "auth_db_testcase" auth/db/tests/db_test.php
       
      2) auth_db_testcase::test_deleting_with_many_users
      moodle_exception: Could not connect to the specified authentication database...
       
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/setuplib.php:494
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:528
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/auth.php:297
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:473
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "auth_db_testcase" auth/db/tests/db_test.php
       
      --
       
      There were 2 failures:
       
      1) auth_db_testcase::test_plugin
      Failed asserting that false is an instance of class "ADORecordSet".
       
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/auth/db/tests/db_test.php:177
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "auth_db_testcase" auth/db/tests/db_test.php
       
      2) enrol_database_testcase::test_sync_user_enrolments
      Failed asserting that 0 matches expected 2.
       
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/enrol/database/tests/sync_test.php:252
      /Users/nicols/Sites/moodles/imsqlsrv/moodle/lib/phpunit/classes/advanced_testcase.php:80
       
      To re-run:
       vendor/bin/phpunit "enrol_database_testcase" enrol/database/tests/sync_test.php
      
      

        Attachments

          Activity

            People

            • Assignee:
              stronk7 Eloy Lafuente (stronk7)
              Reporter:
              dobedobedoh Andrew Nicols
              Peer reviewer:
              Jun Pataleta
              Integrator:
              Eloy Lafuente (stronk7)
              Tester:
              Eloy Lafuente (stronk7)
              Participants:
              Component watchers:
              Jake Dallimore, Jun Pataleta, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                13/May/19

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 4 hours, 25 minutes
                4h 25m