Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-7345

Unit test failures due to missing Privacy API

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 3.5
    • Module: HotPot
    • None
    • MOODLE_35_STABLE

      Hi Gordon,

      Moodle core now includes unit tests which check for the existence of the privacy api in all installed plugins - many organisations use continuous integration processes to run all unit tests prior to deploying a production site - EU based organisations will also need the privacy api to allow them to continue using hotpot.

      Unfortunately this does look like a bit of work for hotpot - as all the subplugins in hotpot will need to have privacy api implemented as well as the main mod_hotpot plugin.

      here's the link to the privacy api docs:
      https://docs.moodle.org/dev/Privacy_API

      and here's a few example failures from the unit tests (mainly to help people finding this bug using Google)

      1) provider_testcase::test_all_providers_compliant with data set "mod_hotpot" ('mod_hotpot', 'mod_hotpot\privacy\provider')
      Failed asserting that false is true.

      /var/www/html/privacy/tests/provider_test.php:178
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80

      10) provider_testcase::test_all_providers_compliant with data set "hotpotattempt_hp" ('hotpotattempt_hp', 'hotpotattempt_hp\privacy\provider')
      Failed asserting that false is true.

      /var/www/html/privacy/tests/provider_test.php:178
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80

      11) provider_testcase::test_all_providers_compliant with data set "hotpotattempt_html" ('hotpotattempt_html', 'hotpotattempt_html\privacy\provider')
      Failed asserting that false is true.

      /var/www/html/privacy/tests/provider_test.php:178
      /var/www/html/lib/phpunit/classes/advanced_testcase.php:80

      Hope you are keeping well!

            xxxxxxx Gordon Bateson
            danmarsden Dan Marsden
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

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