https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41991
--- Comment #21 from Marcel de Rooy <[email protected]> --- Created attachment 199242 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199242&action=edit Bug 41991: Introduce SUSPEND_PLUGIN when running plugins Test plan: See next patch for unit tests. [1] Apply all patches from BZ and install the test plugin (Koha::Plugin::Test) from rhw last patch on cmdline: perl -MKoha::Plugin::Test -e"Koha::Plugin::Test->new->install" [2] Run this on cmdline too: perl -MKoha::Plugins -e'Koha::Plugins->call("report")' export SUSPEND_PLUGIN_report=1 perl -MKoha::Plugins -e'Koha::Plugins->call("report")' unset SUSPEND_PLUGIN_report (Note: The first call should show output, the second not.) [3] Go to plugins home page in staff. Do you see TEST? [4] Click Actions, Run report. You should get a plain text response with "Koha::Plugin::Test->report completed successfully". [5] Now suspend the report method 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.) [6] Restart apache (sudo apache2ctl restart). [7] Now refresh plugins-home page, click Run report again for TEST. [8] 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/
