Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

File permisisons causing unit test to fail #71

Open
azrek opened this issue Feb 13, 2020 · 0 comments
Open

File permisisons causing unit test to fail #71

azrek opened this issue Feb 13, 2020 · 0 comments

Comments

@azrek
Copy link
Contributor

azrek commented Feb 13, 2020

The following unit test was failing in Totara due to file permissions:

  1. totara_core_totara_testcase::test_file_bitmask
    admin/tool/heartbeat/index.php is not correctly bitmasked, it is using 755
    admin/tool/heartbeat/iplock.php is not correctly bitmasked, it is using 755
    admin/tool/heartbeat/croncheck.php is not correctly bitmasked, it is using 755

/var/www/clients/catalyst/totara/totara/core/tests/totara_test.php:63
/var/www/clients/catalyst/totara/lib/phpunit/classes/base_testcase.php:600
/var/www/clients/catalyst/totara/lib/phpunit/classes/advanced_testcase.php:68

To re-run:
vendor/bin/phpunit totara_core_totara_testcase totara/core/tests/totara_test.php

Fix:
chmod 644 admin/tool/heartbeat/index.php admin/tool/heartbeat/iplock.php admin/tool/heartbeat/croncheck.php

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant