https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41991

--- Comment #11 from Marcel de Rooy <[email protected]> ---
Created attachment 199225
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199225&action=edit
Bug 41991: Introduce SUSPEND_PLUGIN when running plugins

Test plan:
See next patch for unit tests.
Install the test plugin (Koha::Plugin::Test) from last patch:
    perl -MKoha::Plugin::Test -e"Koha::Plugin::Test->new->install"
Go to plugins home page in staff. Do you see TEST?
Click Actions, Run report. You should get a plain text response with
"Koha::Plugin::Test->report completed successfully".
Now suspend the plugin by adding the following two lines in
/etc/koha/apached-shared-intranet.conf:
    SetEnv SUSPEND_PLUGIN_report "1"
    RequestHeader add X-Koha-SetEnv "SUSPEND_PLUGIN_report 1"
Note: this can be done before the DocumentRoot line.
Restart apache (apachectl restart).
Now refresh plugins-home page, click Run report again for TEST.
You should get the Disabled page with a suspended warning.
Cleanup:
Remove the SetEnv and RequestHeader again from the apache file.
Restart Apache.
Remove the plugin by clicking Actions, Uninstall from plugins-home.

Signed-off-by: Marcel de Rooy <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to