[Koha-bugs] [Bug 29744] Harmonize psgi/plack detection methods

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Sep 23 17:08:35 CEST 2022


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

--- Comment #24 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 140922
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=140922&action=edit
Bug 29744: (QA follow-up) Only consider PLACK_ENV for underscore

When run under certain circumstances (in jenkins, for example) some ENV
variables are set for convenience, like PLACK_WORKERS and
PLACK_MAX_REQUESTS and is causing some tests to fail (notably, shib
ones).

This patch makes the regex only consider PLACK_ENV when testing for the
underscore case.

Tests are updated accordingly, and they are also rewritten to test for
boolean values instead of empty string, or zero or one, etc. The
implementation shouldn't matter as long as the boolean evaluation is
correct and it is clearer for devs what to expect.

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list