Koha/t/db_dependent/api/v1
Jonathan Druart 2f71ac6f77
Bug 28787: Fix misleading tests in two_factor_auth.t
We were having a "Patron is not authenticated yet" comment, but it was not correct,
we set 'number' and 'id' in session, and waiting-for-2FA was not set => the patron is fully authenticated.
The test returned 401 because we fully authenticated user cannot request
an otp token when not waiting for the second auth step.

This situation is already covered (last test of the subtest).

Test plan:
  prove t/db_dependent/api/v1/two_factor_auth.t
must return green

Sponsored-by: Rijksmuseum, Netherlands

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-08-09 13:38:46 -03:00
..
acquisitions_baskets.t
acquisitions_funds.t
acquisitions_orders.t
acquisitions_vendors.t
advanced_editor_macros.t
article_requests.t
auth.t
auth_authenticate_api_request.t
auth_basic.t
biblios.t
cashups.t
checkouts.t
cities.t
clubs_holds.t
holds.t
illrequests.t
import_batch_profiles.t
import_record_matches.t
item_groups.t Bug 24857: API spec 2022-07-08 15:59:55 -03:00
items.t Bug 31128: Unit tests 2022-07-22 11:32:21 -03:00
libraries.t
oauth.t
pagination.t
patrons.t
patrons_accounts.t
patrons_extended_attributes.t
patrons_holds.t
patrons_password.t
patrons_password_expiration.t
query.t
return_claims.t
smtp_servers.t
stockrotationstage.t
suggestions.t
transfer_limits.t
two_factor_auth.t Bug 28787: Fix misleading tests in two_factor_auth.t 2022-08-09 13:38:46 -03:00
unhandled_exceptions.t