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

unit test h5p_get_content_types_task_test fails on default testing infrastructure

XMLWordPrintable

    • MOODLE_402_STABLE
    • MOODLE_401_STABLE, MOODLE_402_STABLE
    • MDL-79291-401
    • Hide
      1. Add the following to your site config.php file:

        define('PHPUNIT_LONGTEST', true);
        

      2. Execute the following test:

        $ vendor/bin/phpunit --filter h5p_get_content_types_task_test
        

        or if using MDK:

        mdk phpunit -r --filter h5p_get_content_types_task_test
        

      3. Confirm, either:
        • The test passes (because the transient error has been resolved); or
        • The test fails with following error: "No information could be obtained on the H5P content types available. H5P repository connection failure"
      Show
      Add the following to your site config.php file: define('PHPUNIT_LONGTEST', true); Execute the following test: $ vendor/bin/phpunit --filter h5p_get_content_types_task_test or if using MDK: mdk phpunit -r --filter h5p_get_content_types_task_test Confirm, either: The test passes (because the transient error has been resolved); or The test fails with following error: "No information could be obtained on the H5P content types available. H5P repository connection failure"

      If I run

      PHPUNIT_LONGTEST=1 vendor/bin/phpunit --filter h5p_get_content_types_task_test

      the corresponding unit test fails. The issue is that a POST request is sent to

      https://download.moodle.org/unittest/h5pcontenttypes.json

      However, this leads to a 405 Not Allowed. The infrastructure at https://download.moodle.org/unittest/ should probably set up in a way to return the file h5pcontenttypes.json upon receiving a POST request rather than just upon receiving a GET request.

            pholden Paul Holden
            kenogo Keno Goertz
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Jun Pataleta Jun Pataleta
            Kim Jared Lucas Kim Jared Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 15 minutes
                1h 15m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.