Koha-clms/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 Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly 2022-04-25 20:52:28 -10:00
acquisitions_funds.t Bug 30596: Prevent api/v1/acquisitions_baskets.t and api/v1/acquisitions_funds.t to fail randomly 2022-04-25 20:52:28 -10:00
acquisitions_orders.t Bug 30677: Add tests 2022-06-28 09:35:45 -03:00
acquisitions_vendors.t
…
advanced_editor_macros.t
…
article_requests.t Bug 29759: (follow-up) Fix api/v1/article_requests.t 2022-02-02 09:48:33 -10:00
auth.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
auth_authenticate_api_request.t Bug 28948: Make is_public stashed on public routes 2021-10-28 17:32:34 +02:00
auth_basic.t Bug 29924: Add tests for API Basic auth behavior 2022-05-06 10:33:09 -10:00
biblios.t Bug 30194: (follow-up) Remove invalid tests 2022-03-29 16:44:31 +02:00
cashups.t
…
checkouts.t Bug 30275: Add basic unit test for fetching renewals 2022-07-05 09:46:10 -03:00
cities.t
…
clubs_holds.t
…
holds.t Bug 30780: Regression tests 2022-06-13 11:46:45 -03:00
illrequests.t
…
import_batch_profiles.t Bug 28272: Fix many things... 2021-05-11 09:04:13 +02:00
import_record_matches.t Bug 30855: (follow-up) Rewrite tests using Basic authentication 2022-06-02 13:42:28 -03:00
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 Bug 28722: Regression tests 2021-09-30 09:19:05 +02:00
pagination.t Bug 30125: (QA follow-up) Rename variable as cities 2022-03-03 16:11:49 -10:00
patrons.t Bug 29924: (QA follow-up) Remove password_expiration_date from API 2022-05-06 10:33:09 -10:00
patrons_accounts.t Bug 22435: Update unit tests 2021-08-04 14:06:43 +02:00
patrons_extended_attributes.t
…
patrons_holds.t
…
patrons_password.t Bug 29272: (QA follow-up) Category setup overrides syspref 2021-10-28 12:16:37 +02:00
patrons_password_expiration.t Bug 29926: (QA follow-up) Date format missing in spec 2022-05-06 10:33:10 -10:00
query.t Bug 30536: Unit tests 2022-05-03 11:19:51 -10:00
return_claims.t Bug 17600: Standardize our EXPORT_OK 2021-07-16 08:58:47 +02:00
smtp_servers.t
…
stockrotationstage.t
…
suggestions.t Bug 30663: Add x-koha-override options to /suggestions 2022-05-05 10:26:41 -03:00
transfer_limits.t Bug 29857: (follow-up) Fix t/db_dependent/api/v1/transfer_limits.t 2022-03-02 09:40:05 -10:00
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 Bug 29857: Rename base class as Koha::Exception 2022-03-01 22:47:47 -10:00