[Koha-bugs] [Bug 36084] Pass CSRF token to SVC scripts (1/2)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Mar 4 14:27:13 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36084
--- Comment #38 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 162712
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=162712&action=edit
Bug 36084: Fix cookie domain for www/ tests
This patch changes the hardcoded `koha.local` value on
t::lib::Mocks::Zebra so tests don't fail when the domain is not `koha`.
To test:
1. Run:
$ ktd --shell
k$ export KOHA_INTRANET_URL=http://kohadev-intra.myDNSname.org:8081
k$ prove t/db_dependent/www/batch.t
=> FAIL: Tests fail!
2. Apply this patch
3. Repeat 1
=> SUCCESS: Tests pass!
4. Sign off :-D
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