At my current client there’s a restrictive firewall which can be bypassed by using a HTTP+HTTPS proxy. The proxy URL is provided by the usual environment vars but not honored and this makes the test fail.
JSON::Validator version: 5.03
Perl version: 5.16.3, probably any
Operating system: CentOS, MacOS, probably an
Steps to reproduce the behavior
cpanm -v JSON::Validator
Expected behavior
Test passes or is skipped even without direct HTTP connections to the Internet.
Actual behavior
t/load-from-app.t ...................... 1/?
# Failed test 'loaded schema from app'
# at t/load-from-app.t line 22.
# got: 'GET /spec: Forbidden at /private/var/root/.cpan/build/JSON-Validator-5.03-0/blib/lib/JSON/Validator/Store.pm line 127.
# '
# expected: ''
# Failed test 'loaded schema structure'
# at t/load-from-app.t line 23.
# got: undef
# expected: '2.0'
# Failed test 'schemas in store'
# at t/load-from-app.t line 25.
# Structures begin differing at:
# $got->[0] = 'urn:uuid:7897d6c0-e5fb-57fb-81e3-cdf28a438c70'
# $expected->[0] = '/spec'
GET /spec: Forbidden at /private/var/root/.cpan/build/JSON-Validator-5.03-0/blib/lib/JSON/Validator/Store.pm line 127.
At my current client there’s a restrictive firewall which can be bypassed by using a HTTP+HTTPS proxy. The proxy URL is provided by the usual environment vars but not honored and this makes the test fail.
Steps to reproduce the behavior
Expected behavior
Test passes or is skipped even without direct HTTP connections to the Internet.
Actual behavior
The exception should be handled at https://github.com/jhthorsen/json-validator/blob/f3263540c8b472d082f9a3f98f59160bc59f7896/t/load-from-app.t#L19
I don’t know which error messages lead to this code but going from our error message the regex is wrong.
My ideas how to solve this:
^GET\b
\bGET