jhthorsen / mojolicious-plugin-openapi

OpenAPI / Swagger plugin for Mojolicious
54 stars 44 forks source link

t/default-value.t & t/x-mojo-placeholder.t fail (with old Mojolicious?) #122

Closed eserte closed 5 years ago

eserte commented 5 years ago

I see the following failures:

#   Failed test '200 OK'
#   at t/default-value.t line 40.
#          got: '404'
#     expected: '200'

#   Failed test 'exact match for JSON Pointer "/days"'
#   at t/default-value.t line 40.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x2622968)

#   Failed test 'exact match for JSON Pointer "/name"'
#   at t/default-value.t line 40.
#     Structures begin differing at:
#          $got = undef
#     $expected = HASH(0x4b5e120)
# Looks like you failed 3 tests of 11.
t/default-value.t ..................... 
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/11 subtests 

and

#   Failed test '200 OK'
#   at t/x-mojo-placeholder.t line 15.
#          got: '404'
#     expected: '200'

#   Failed test 'exact match for JSON Pointer "/username"'
#   at t/x-mojo-placeholder.t line 15.
#          got: undef
#     expected: 'jhthorsen@cpan.org'

#   Failed test '200 OK'
#   at t/x-mojo-placeholder.t line 16.
#          got: '404'
#     expected: '200'

#   Failed test 'exact match for JSON Pointer "/parameters/0/x-mojo-placeholder"'
#   at t/x-mojo-placeholder.t line 16.
#          got: undef
#     expected: '#'

#   Failed test 'exact match for JSON Pointer "/parameters/0/in"'
#   at t/x-mojo-placeholder.t line 16.
#          got: undef
#     expected: 'path'

#   Failed test 'exact match for JSON Pointer "/parameters/0/name"'
#   at t/x-mojo-placeholder.t line 16.
#          got: undef
#     expected: 'username'

#   Failed test 'exact match for JSON Pointer "/parameters/1/in"'
#   at t/x-mojo-placeholder.t line 16.
#          got: undef
#     expected: 'query'

#   Failed test 'exact match for JSON Pointer "/parameters/1/name"'
#   at t/x-mojo-placeholder.t line 16.
#          got: undef
#     expected: 'fields'
# Looks like you failed 8 tests of 13.
t/x-mojo-placeholder.t ................ 
Dubious, test returned 8 (wstat 2048, 0x800)
Failed 8/13 subtests 

This seems to happen with old Mojolicious (i.e. with version 7.70).

jhthorsen commented 5 years ago

Thank you. Will upload a new version as soon as https://pause.perl.org/pause/authenquery stops giving me 500 Internal Server Error 😞