]> git.koha-community.org Git - koha.git/commit
Bug 29926: (QA follow-up) Date format missing in spec
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 26 Apr 2022 13:09:04 +0000 (10:09 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 6 May 2022 20:33:10 +0000 (10:33 -1000)
commita3aaf10e59ff44c8c8dbef6dcd5f28aba2fb8d2d
treeda468132b43851ab9fae306c41f2cc37e81ac9a1
parentb97bf747e9bfbc590bfa43abb921d8cb4b29225a
Bug 29926: (QA follow-up) Date format missing in spec

On fixing the spec to have `format: date` I noticed the tests were
expecting explosions because of date handling not being done. The
OpenAPI plugin does this correctly when you set the format right.

So, I adapted the tests so they expect 400 and return the type error.

We don't usually add such tests (i.e. test the plugin does its job
correctly) but it doesn't hurt to keep them just in case something
really changes badly there (plugin bug?).

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
api/v1/swagger/paths/patrons_password.yaml
t/db_dependent/api/v1/patrons_password_expiration.t