PATH=/usr/bin:/bin:/home/fly1400/var/megalib/bin
Start 2014-12-06T16:03:43
ActivePerl-1400 CPAN-2.00
Reading '/home/fly1400/var/cpan/Metadata'
Database was generated on Sat, 06 Dec 2014 23:17:02 GMT
Running make for T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz
Fetching with LWP:
http://cpan.nas1.activestate.com/authors/id/T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz
Fetching with LWP:
http://cpan.nas1.activestate.com/authors/id/T/TI/TIMB/CHECKSUMS
Checksum for /home/fly1400/var/cpan/sources/authors/id/T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz ok
WebAPI-DBIC-0.002003
WebAPI-DBIC-0.002003/README
WebAPI-DBIC-0.002003/Changes
WebAPI-DBIC-0.002003/LICENSE
WebAPI-DBIC-0.002003/cpanfile
WebAPI-DBIC-0.002003/dist.ini
WebAPI-DBIC-0.002003/META.yml
WebAPI-DBIC-0.002003/MANIFEST
WebAPI-DBIC-0.002003/NOTES.pod
WebAPI-DBIC-0.002003/README.md
WebAPI-DBIC-0.002003/META.json
WebAPI-DBIC-0.002003/Makefile.PL
WebAPI-DBIC-0.002003/MANIFEST.SKIP
WebAPI-DBIC-0.002003/t
WebAPI-DBIC-0.002003/t/00-compile.t
WebAPI-DBIC-0.002003/t/90-root-hal.t
WebAPI-DBIC-0.002003/t/etc
WebAPI-DBIC-0.002003/t/etc/schema.pl
WebAPI-DBIC-0.002003/t/lib
WebAPI-DBIC-0.002003/t/lib/TestDS.pm
WebAPI-DBIC-0.002003/t/90-root-core.t
WebAPI-DBIC-0.002003/t/lib/TestKit.pm
WebAPI-DBIC-0.002003/t/10-basics-hal.t
WebAPI-DBIC-0.002003/t/11-paging-hal.t
WebAPI-DBIC-0.002003/t/13-fields-hal.t
WebAPI-DBIC-0.002003/t/50-modify-hal.t
WebAPI-DBIC-0.002003/t/90-root-hal.exp
WebAPI-DBIC-0.002003/lib/WebAPI
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC.pm
WebAPI-DBIC-0.002003/t/10-basics-core.t
WebAPI-DBIC-0.002003/t/11-paging-core.t
WebAPI-DBIC-0.002003/t/13-fields-core.t
WebAPI-DBIC-0.002003/t/50-modify-core.t
WebAPI-DBIC-0.002003/t/53-put_rel-hal.t
WebAPI-DBIC-0.002003/t/60-invoke-core.t
WebAPI-DBIC-0.002003/t/90-root-core.exp
WebAPI-DBIC-0.002003/run-chinook-demo.sh
WebAPI-DBIC-0.002003/t/10-basics-hal.exp
WebAPI-DBIC-0.002003/t/11-paging-hal.exp
WebAPI-DBIC-0.002003/t/14-distinct-hal.t
WebAPI-DBIC-0.002003/t/30-ordering-hal.t
WebAPI-DBIC-0.002003/t/40-prefetch-hal.t
WebAPI-DBIC-0.002003/t/52-post_rel-hal.t
WebAPI-DBIC-0.002003/t/53-put_rel-core.t
WebAPI-DBIC-0.002003/t/lib/TestDS_HAL.pm
WebAPI-DBIC-0.002003/t/lib/TestSchema.pm
WebAPI-DBIC-0.002003/data_service_api.pod
WebAPI-DBIC-0.002003/webapi-dbic-any.psgi
WebAPI-DBIC-0.002003/t/10-basics-core.exp
WebAPI-DBIC-0.002003/t/11-paging-core.exp
WebAPI-DBIC-0.002003/t/12-searching-hal.t
WebAPI-DBIC-0.002003/t/14-distinct-core.t
WebAPI-DBIC-0.002003/t/30-ordering-core.t
WebAPI-DBIC-0.002003/t/53-put_rel-hal.exp
WebAPI-DBIC-0.002003/webapi-dbic-demo.psgi
WebAPI-DBIC-0.002003/hal-browser
WebAPI-DBIC-0.002003/hal-browser/README.md
WebAPI-DBIC-0.002003/hal-browser/js
WebAPI-DBIC-0.002003/hal-browser/js/hal.js
WebAPI-DBIC-0.002003/t/10-basics-jsonapi.t
WebAPI-DBIC-0.002003/t/12-searching-core.t
WebAPI-DBIC-0.002003/t/30-ordering-hal.exp
WebAPI-DBIC-0.002003/t/40-prefetch-hal.exp
WebAPI-DBIC-0.002003/t/53-put_rel-core.exp
WebAPI-DBIC-0.002003/run-testschema-demo.sh
WebAPI-DBIC-0.002003/hal-browser/styles.css
WebAPI-DBIC-0.002003/t/12-searching-hal.exp
WebAPI-DBIC-0.002003/t/30-ordering-core.exp
WebAPI-DBIC-0.002003/t/release-pod-syntax.t
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Util.pm
WebAPI-DBIC-0.002003/t/10-basics-jsonapi.exp
WebAPI-DBIC-0.002003/t/12-searching-core.exp
WebAPI-DBIC-0.002003/t/40-prefetch-jsonapi.t
WebAPI-DBIC-0.002003/hal-browser/browser.html
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Router.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/WebApp.pm
WebAPI-DBIC-0.002003/t/40-prefetch-jsonapi.exp
WebAPI-DBIC-0.002003/t/lib/DummyLoadedSchema.pm
WebAPI-DBIC-0.002003/hal-browser/MIT-LICENSE.txt
WebAPI-DBIC-0.002003/hal-browser/js/hal
WebAPI-DBIC-0.002003/hal-browser/js/hal/browser.js
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD/1.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD/2.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD/3.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD/4.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/CD/5.fix
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/CD.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/resource.js
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/Gig.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Base.pm
WebAPI-DBIC-0.002003/t/etc/fixtures/basic
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/_config_set
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/genre
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/genre/1.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/genre/2.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/genre/3.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/genre/4.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/4.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/5.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/6.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/7.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/8.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/9.fix
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/Genre.pm
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/Track.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/http
WebAPI-DBIC-0.002003/hal-browser/js/hal/http/client.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/links.js
WebAPI-DBIC-0.002003/hal-browser/vendor/js
WebAPI-DBIC-0.002003/hal-browser/vendor/js/backbone.js
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/1.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/2.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/3.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/4.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/5.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/artist/6.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/10.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/11.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/12.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/13.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/14.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/15.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/16.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/17.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/track/18.fix
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/Artist.pm
WebAPI-DBIC-0.002003/hal-browser/vendor/js/bootstrap.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Role
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Role/JsonParams.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/browser.js
WebAPI-DBIC-0.002003/hal-browser/vendor/js/underscore.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Role/JsonEncoder.pm
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/producer
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/producer/1.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/producer/2.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/producer/3.fix
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/Producer.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/explorer.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/resource.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/response.js
WebAPI-DBIC-0.002003/hal-browser/vendor/css
WebAPI-DBIC-0.002003/hal-browser/vendor/css/bootstrap.css
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Set.pm
WebAPI-DBIC-0.002003/lib/WebAPI/HTTP/Throwable
WebAPI-DBIC-0.002003/lib/WebAPI/HTTP/Throwable/Factory.pm
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/_dumper_version
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/inspector.js
WebAPI-DBIC-0.002003/hal-browser/vendor/js/uritemplates.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBIC.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Item.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Root.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/navigation.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/properties.js
WebAPI-DBIC-0.002003/hal-browser/vendor/img
WebAPI-DBIC-0.002003/hal-browser/vendor/img/ajax-loader.gif
WebAPI-DBIC-0.002003/hal-browser/vendor/js/jquery-1.10.2.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/GenericSet.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/GenericCore.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/GenericItem.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/GenericRoot.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Router.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/SetHAL.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/location_bar.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemHAL.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/RootHAL.pm
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/ClassicAlbums.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/documentation.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/response_body.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Identity.pm
WebAPI-DBIC-0.002003/t/lib/TestSchema/Result/CD_to_Producer.pm
WebAPI-DBIC-0.002003/hal-browser/vendor/js/jquery-1.10.2.min.js
WebAPI-DBIC-0.002003/lib/WebAPI/HTTP/Throwable/Role
WebAPI-DBIC-0.002003/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/request_headers.js
WebAPI-DBIC-0.002003/hal-browser/vendor/js/jquery-1.10.2.min.map
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/SetJSONAPI.pm
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/cd_to_producer
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/cd_to_producer/1-1.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/cd_to_producer/1-2.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/cd_to_producer/1-3.fix
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/query_uri_dialog.js
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/response_headers.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemJSONAPI.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/embedded_resource.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/Relationship.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/embedded_resources.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/DBICException.pm
WebAPI-DBIC-0.002003/hal-browser/vendor/css/bootstrap-responsive.css
WebAPI-DBIC-0.002003/hal-browser/vendor/img/glyphicons-halflings.png
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemWritableHAL.pm
WebAPI-DBIC-0.002003/hal-browser/js/hal/views/non_safe_request_dialog.js
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/SetWritableJSONAPI.pm
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/gig
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/gig/1-2014-01-01T01:01:01Z.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/gig/2-2014-06-30T19:00:00Z.fix
WebAPI-DBIC-0.002003/t/etc/fixtures/basic/gig/3-2014-06-30T13:00:00Z.fix
WebAPI-DBIC-0.002003/lib/WebAPI/DBIC/Resource/Role/ItemWritableJSONAPI.pm
WebAPI-DBIC-0.002003/hal-browser/vendor/img/glyphicons-halflings-white.png
WebAPI-DBIC-0.002003/t/lib/Test/DBIx/Class/FixtureCommand
WebAPI-DBIC-0.002003/t/lib/Test/DBIx/Class/FixtureCommand/TestFixtureCommand.pm
CPAN.pm: Building T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz
>>> /home/fly1400/ap1400/bin/perl-static Makefile.PL
Warning: prerequisite Plack 1.0033 not found. We have 1.0016.
Warning: prerequisite SQL::Translator 0.11018 not found. We have 0.11016.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for WebAPI::DBIC
Writing MYMETA.yml and MYMETA.json
---- Unsatisfied dependencies detected during ----
---- TIMB/WebAPI-DBIC-0.002003.tar.gz ----
SQL::Translator [requires]
Plack [requires]
Running make test
Delayed until after prerequisites
Running test for module 'SQL::Translator'
Running make for I/IL/ILMARI/SQL-Translator-0.11020.tar.gz
Checksum for /home/fly1400/var/cpan/sources/authors/id/I/IL/ILMARI/SQL-Translator-0.11020.tar.gz ok
SQL-Translator-0.11020/
SQL-Translator-0.11020/README
SQL-Translator-0.11020/META.yml
SQL-Translator-0.11020/share/
SQL-Translator-0.11020/share/PrecompiledParsers/
SQL-Translator-0.11020/share/PrecompiledParsers/Parse/
SQL-Translator-0.11020/share/PrecompiledParsers/Parse/RecDescent/
SQL-Translator-0.11020/share/PrecompiledParsers/Parse/RecDescent/DDL/
SQL-Translator-0.11020/share/PrecompiledParsers/Parse/RecDescent/DDL/SQLT/
SQL-Translator-0.11020/share/PrecompiledParsers/Parse/RecDescent/DDL/SQLT/README
SQL-Translator-0.11020/share/DiaUml/
SQL-Translator-0.11020/share/DiaUml/uml-attribute.tt2
SQL-Translator-0.11020/share/DiaUml/uml-class-all.tt2
SQL-Translator-0.11020/share/DiaUml/uml-class.tt2
SQL-Translator-0.11020/share/DiaUml/schema.tt2
SQL-Translator-0.11020/share/DiaUml/uml-class-end.tt2
SQL-Translator-0.11020/share/DiaUml/uml-class-start.tt2
SQL-Translator-0.11020/share/DiaUml/diagram.tt2
SQL-Translator-0.11020/share/DiaUml/layer.tt2
SQL-Translator-0.11020/lib/
SQL-Translator-0.11020/lib/SQL/
SQL-Translator-0.11020/lib/SQL/Translator/
SQL-Translator-0.11020/lib/SQL/Translator/Parser/
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/Storable.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/Oracle.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/DB2.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/SQLite.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/MySQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/SQLServer.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/Sybase.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/YAML.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/XML/
SQL-Translator-0.11020/lib/SQL/Translator/Parser/XML/SQLFairy.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/JSON.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/xSV.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/Oracle.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DB2.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/SQLite.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/MySQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DB2/
SQL-Translator-0.11020/lib/SQL/Translator/Parser/DB2/Grammar.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/XML.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/Excel.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/Access.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/SQLServer.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/Sybase.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser/PostgreSQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Manual.pod
SQL-Translator-0.11020/lib/SQL/Translator/Producer.pm
SQL-Translator-0.11020/lib/SQL/Translator/Parser.pm
SQL-Translator-0.11020/lib/SQL/Translator/Generator/
SQL-Translator-0.11020/lib/SQL/Translator/Generator/DDL/
SQL-Translator-0.11020/lib/SQL/Translator/Generator/DDL/SQLite.pm
SQL-Translator-0.11020/lib/SQL/Translator/Generator/DDL/SQLServer.pm
SQL-Translator-0.11020/lib/SQL/Translator/Generator/DDL/PostgreSQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Generator/Role/
SQL-Translator-0.11020/lib/SQL/Translator/Generator/Role/Quote.pm
SQL-Translator-0.11020/lib/SQL/Translator/Generator/Role/DDL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Types.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Procedure.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Field.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Role/
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Role/Compare.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Role/Extra.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Object.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Constraint.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Table.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Trigger.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Index.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/Constants.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema/View.pm
SQL-Translator-0.11020/lib/SQL/Translator/Role/
SQL-Translator-0.11020/lib/SQL/Translator/Role/BuildArgs.pm
SQL-Translator-0.11020/lib/SQL/Translator/Role/Error.pm
SQL-Translator-0.11020/lib/SQL/Translator/Role/Debug.pm
SQL-Translator-0.11020/lib/SQL/Translator/Role/ListAttr.pm
SQL-Translator-0.11020/lib/SQL/Translator/Utils.pm
SQL-Translator-0.11020/lib/SQL/Translator/Filter/
SQL-Translator-0.11020/lib/SQL/Translator/Filter/Names.pm
SQL-Translator-0.11020/lib/SQL/Translator/Filter/Globals.pm
SQL-Translator-0.11020/lib/SQL/Translator/Filter/DefaultExtra.pm
SQL-Translator-0.11020/lib/SQL/Translator/Schema.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/
SQL-Translator-0.11020/lib/SQL/Translator/Producer/GraphViz.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Storable.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Dumper.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/POD.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/YAML.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/XML/
SQL-Translator-0.11020/lib/SQL/Translator/Producer/XML/SQLFairy.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/JSON.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Oracle.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/DB2.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/SQLite.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/MySQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Diagram.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/XML.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/TTSchema.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/DiaUml.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/SQLServer.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Latex.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/TT/
SQL-Translator-0.11020/lib/SQL/Translator/Producer/TT/Base.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/TT/Table.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/Sybase.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/PostgreSQL.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/ClassDBI.pm
SQL-Translator-0.11020/lib/SQL/Translator/Producer/HTML.pm
SQL-Translator-0.11020/lib/SQL/Translator/Diff.pm
SQL-Translator-0.11020/lib/SQL/Translator.pm
SQL-Translator-0.11020/lib/Test/
SQL-Translator-0.11020/lib/Test/SQL/
SQL-Translator-0.11020/lib/Test/SQL/Translator.pm
SQL-Translator-0.11020/xt/
SQL-Translator-0.11020/xt/notabs.t
SQL-Translator-0.11020/xt/pod.t
SQL-Translator-0.11020/xt/eol.t
SQL-Translator-0.11020/Changes
SQL-Translator-0.11020/t/
SQL-Translator-0.11020/t/52-oracle-options.t
SQL-Translator-0.11020/t/04file,fh,string.t
SQL-Translator-0.11020/t/05bgep-re.t
SQL-Translator-0.11020/t/26sybase.t
SQL-Translator-0.11020/t/02mysql-parser.t
SQL-Translator-0.11020/t/06xsv.t
SQL-Translator-0.11020/t/07p_args.t
SQL-Translator-0.11020/t/45db2-producer.t
SQL-Translator-0.11020/t/71-generator-sql_server.t
SQL-Translator-0.11020/t/30sqlt-new-diff.t
SQL-Translator-0.11020/t/24yaml.t
SQL-Translator-0.11020/t/38-mysql-producer.t
SQL-Translator-0.11020/t/mysql-sqlite-translate.t
SQL-Translator-0.11020/t/19sybase-parser.t
SQL-Translator-0.11020/t/38-filter-names.t
SQL-Translator-0.11020/t/55-oracle-producer.t
SQL-Translator-0.11020/t/44-xml-to-db2-array.t
SQL-Translator-0.11020/t/17sqlfxml-producer.t
SQL-Translator-0.11020/t/03mysql-to-oracle.t
SQL-Translator-0.11020/t/16xml-parser.t
SQL-Translator-0.11020/t/60roundtrip.t
SQL-Translator-0.11020/t/53-oracle-delay-constraints_quoted.t
SQL-Translator-0.11020/t/13schema.t
SQL-Translator-0.11020/t/61translator_agnostic.t
SQL-Translator-0.11020/t/31dumper.t
SQL-Translator-0.11020/t/51-xml-to-oracle.t
SQL-Translator-0.11020/t/55-oracle-add-field.t
SQL-Translator-0.11020/t/20format_X_name.t
SQL-Translator-0.11020/t/data/
SQL-Translator-0.11020/t/data/sybase/
SQL-Translator-0.11020/t/data/sybase/create.sql
SQL-Translator-0.11020/t/data/access/
SQL-Translator-0.11020/t/data/access/gdpdm.ddl
SQL-Translator-0.11020/t/data/diff/
SQL-Translator-0.11020/t/data/diff/create2.yml
SQL-Translator-0.11020/t/data/diff/create1.yml
SQL-Translator-0.11020/t/data/diff/pgsql/
SQL-Translator-0.11020/t/data/diff/pgsql/create2.yml
SQL-Translator-0.11020/t/data/diff/pgsql/create1.yml
SQL-Translator-0.11020/t/data/roundtrip.xml
SQL-Translator-0.11020/t/data/sqlserver/
SQL-Translator-0.11020/t/data/sqlserver/create.sql
SQL-Translator-0.11020/t/data/sqlite/
SQL-Translator-0.11020/t/data/sqlite/create.sql
SQL-Translator-0.11020/t/data/sqlite/create2.sql
SQL-Translator-0.11020/t/data/sqlite/named.sql
SQL-Translator-0.11020/t/data/roundtrip_autogen.yaml
SQL-Translator-0.11020/t/data/Excel/
SQL-Translator-0.11020/t/data/Excel/t.xls
SQL-Translator-0.11020/t/data/pgsql/
SQL-Translator-0.11020/t/data/pgsql/entire_syntax.sql
SQL-Translator-0.11020/t/data/pgsql/Chado-CV-PostGreSQL.sql
SQL-Translator-0.11020/t/data/pgsql/turnkey.sql
SQL-Translator-0.11020/t/data/oracle/
SQL-Translator-0.11020/t/data/oracle/create.sql
SQL-Translator-0.11020/t/data/oracle/schema_diff_c.yaml
SQL-Translator-0.11020/t/data/oracle/schema_with_options.yaml
SQL-Translator-0.11020/t/data/oracle/schema_diff_a.yaml
SQL-Translator-0.11020/t/data/oracle/create2.sql
SQL-Translator-0.11020/t/data/oracle/schema_diff_b.yaml
SQL-Translator-0.11020/t/data/template/
SQL-Translator-0.11020/t/data/template/table.tt
SQL-Translator-0.11020/t/data/template/testresult_table.txt
SQL-Translator-0.11020/t/data/template/basic.tt
SQL-Translator-0.11020/t/data/template/testresult_basic.txt
SQL-Translator-0.11020/t/data/mysql/
SQL-Translator-0.11020/t/data/mysql/create.sql
SQL-Translator-0.11020/t/data/mysql/entire_syntax.sql
SQL-Translator-0.11020/t/data/mysql/Apache-Session-MySQL.sql
SQL-Translator-0.11020/t/data/mysql/BGEP-RE-create.sql
SQL-Translator-0.11020/t/data/mysql/sqlfxml-producer-basic.sql
SQL-Translator-0.11020/t/data/mysql/create2.sql
SQL-Translator-0.11020/t/data/mysql/cashmusic_db.sql
SQL-Translator-0.11020/t/data/xml/
SQL-Translator-0.11020/t/data/xml/schema.xml
SQL-Translator-0.11020/t/data/xml/samefield.xml
SQL-Translator-0.11020/t/25storable.t
SQL-Translator-0.11020/t/49xml-to-pg-samefield.t
SQL-Translator-0.11020/t/64xml-to-mysql.t
SQL-Translator-0.11020/t/09sqlt-diagram.t
SQL-Translator-0.11020/t/70sqlt-diff_script.t
SQL-Translator-0.11020/t/36-filters.t
SQL-Translator-0.11020/t/18ttschema-producer.t
SQL-Translator-0.11020/t/40oracle-parser-dbi.t
SQL-Translator-0.11020/t/29html.t
SQL-Translator-0.11020/t/53-oracle-delay-constraints.t
SQL-Translator-0.11020/t/34tt-base.t
SQL-Translator-0.11020/t/15oracle-parser.t
SQL-Translator-0.11020/t/39-filter-globals.t
SQL-Translator-0.11020/t/lib/
SQL-Translator-0.11020/t/lib/Producer/
SQL-Translator-0.11020/t/lib/Producer/BaseTest.pm
SQL-Translator-0.11020/t/30sqlt-new-diff-pgsql.t
SQL-Translator-0.11020/t/43xml-to-db2.t
SQL-Translator-0.11020/t/11normalize.t
SQL-Translator-0.11020/t/57-class-dbi.t
SQL-Translator-0.11020/t/23json.t
SQL-Translator-0.11020/t/50-sqlserver-parser.t
SQL-Translator-0.11020/t/08postgres-to-mysql.t
SQL-Translator-0.11020/t/46xml-to-pg.t
SQL-Translator-0.11020/t/73-sqlite-respects-quote.t
SQL-Translator-0.11020/t/14postgres-parser.t
SQL-Translator-0.11020/t/70sqlt-diff_script_old.t
SQL-Translator-0.11020/t/12header_comment.t
SQL-Translator-0.11020/t/56-sqlite-producer.t
SQL-Translator-0.11020/t/postgresql-rename-table-and-field.t
SQL-Translator-0.11020/t/sqlite-rename-field.t
SQL-Translator-0.11020/t/66-postgres-dbi-parser.t
SQL-Translator-0.11020/t/30sqlt-new-diff-sqlite.t
SQL-Translator-0.11020/t/35-access-parser.t
SQL-Translator-0.11020/t/51-xml-to-oracle_quoted.t
SQL-Translator-0.11020/t/10excel.t
SQL-Translator-0.11020/t/54-oracle-alter-field.t
SQL-Translator-0.11020/t/33tt-table-producer.t
SQL-Translator-0.11020/t/47postgres-producer.t
SQL-Translator-0.11020/t/63-spacial-pgsql.t
SQL-Translator-0.11020/t/48xml-to-sqlite.t
SQL-Translator-0.11020/t/74-filename-arrayref.t
SQL-Translator-0.11020/t/30sqlt-new-diff-mysql.t
SQL-Translator-0.11020/t/62roundtrip_datacheck.t
SQL-Translator-0.11020/t/72-sqlite-add-drop-fields.t
SQL-Translator-0.11020/t/32schema-lookups.t
SQL-Translator-0.11020/t/27sqlite-parser.t
SQL-Translator-0.11020/Makefile.PL
SQL-Translator-0.11020/inc/
SQL-Translator-0.11020/inc/Module/
SQL-Translator-0.11020/inc/Module/AutoInstall.pm
SQL-Translator-0.11020/inc/Module/Install/
SQL-Translator-0.11020/inc/Module/Install/Fetch.pm
SQL-Translator-0.11020/inc/Module/Install/AutoInstall.pm
SQL-Translator-0.11020/inc/Module/Install/Include.pm
SQL-Translator-0.11020/inc/Module/Install/Can.pm
SQL-Translator-0.11020/inc/Module/Install/WriteAll.pm
SQL-Translator-0.11020/inc/Module/Install/Makefile.pm
SQL-Translator-0.11020/inc/Module/Install/ReadmeFromPod.pm
SQL-Translator-0.11020/inc/Module/Install/Base.pm
SQL-Translator-0.11020/inc/Module/Install/Win32.pm
SQL-Translator-0.11020/inc/Module/Install/Scripts.pm
SQL-Translator-0.11020/inc/Module/Install/Share.pm
SQL-Translator-0.11020/inc/Module/Install/AuthorTests.pm
SQL-Translator-0.11020/inc/Module/Install/Metadata.pm
SQL-Translator-0.11020/inc/Module/Install.pm
SQL-Translator-0.11020/script/
SQL-Translator-0.11020/script/sqlt-diff-old
SQL-Translator-0.11020/script/sqlt.cgi
SQL-Translator-0.11020/script/sqlt-dumper
SQL-Translator-0.11020/script/sqlt-diagram
SQL-Translator-0.11020/script/sqlt-graph
SQL-Translator-0.11020/script/sqlt
SQL-Translator-0.11020/script/sqlt-diff
SQL-Translator-0.11020/MANIFEST
CPAN.pm: Building I/IL/ILMARI/SQL-Translator-0.11020.tar.gz
>>> /home/fly1400/ap1400/bin/perl-static Makefile.PL
*** Module::AutoInstall version 1.10
*** Checking for Perl dependencies...
*** Since we're running under CPAN, I'll just let it take care
of the dependency's installation later.
[Core Features]
- Test::More ...loaded. (1.001009 >= 0.88)
- Text::ParseWords ...loaded. (3.29)
- Test::Exception ...loaded. (0.35 >= 0.31)
- Test::Differences ...loaded. (0.63)
- YAML ...loaded. (0.94 >= 0.66)
- XML::Writer ...loaded. (0.625 >= 0.500)
- JSON ...loaded. (2.90 >= 2.0)
- ExtUtils::MakeMaker ...loaded. (7.04 >= 6.11)
- Scalar::Util ...loaded. (1.41)
- Try::Tiny ...loaded. (0.22 >= 0.04)
- Package::Variant ...loaded. (1.002002 >= 1.001001)
- Moo ...loaded. (1.006001 >= 1.000003)
- Sub::Quote ...loaded. (1.006001)
- Parse::RecDescent ...loaded. (1.967009 >= 1.967009)
- File::ShareDir ...loaded. (1.102 >= 1.0)
- Digest::SHA ...loaded. (5.93)
- Carp::Clan ...loaded. (6.04)
- List::MoreUtils ...loaded. (0.33 >= 0.09)
- DBI ...loaded. (1.632 >= 1.54)
*** Module::AutoInstall configuration finished.
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for SQL::Translator
Writing MYMETA.yml and MYMETA.json
>>> make
cp lib/SQL/Translator/Parser/Storable.pm blib/lib/SQL/Translator/Parser/Storable.pm
cp lib/SQL/Translator/Filter/DefaultExtra.pm blib/lib/SQL/Translator/Filter/DefaultExtra.pm
cp lib/SQL/Translator.pm blib/lib/SQL/Translator.pm
cp lib/SQL/Translator/Parser/DBI/MySQL.pm blib/lib/SQL/Translator/Parser/DBI/MySQL.pm
cp lib/SQL/Translator/Parser/Access.pm blib/lib/SQL/Translator/Parser/Access.pm
cp lib/SQL/Translator/Parser/DBI/SQLite.pm blib/lib/SQL/Translator/Parser/DBI/SQLite.pm
cp lib/SQL/Translator/Producer/Sybase.pm blib/lib/SQL/Translator/Producer/Sybase.pm
cp lib/SQL/Translator/Producer/Diagram.pm blib/lib/SQL/Translator/Producer/Diagram.pm
cp lib/SQL/Translator/Generator/Role/DDL.pm blib/lib/SQL/Translator/Generator/Role/DDL.pm
cp lib/SQL/Translator/Schema/Table.pm blib/lib/SQL/Translator/Schema/Table.pm
cp lib/SQL/Translator/Producer/JSON.pm blib/lib/SQL/Translator/Producer/JSON.pm
cp lib/SQL/Translator/Parser/xSV.pm blib/lib/SQL/Translator/Parser/xSV.pm
cp lib/SQL/Translator/Schema/Index.pm blib/lib/SQL/Translator/Schema/Index.pm
cp lib/SQL/Translator/Parser/Excel.pm blib/lib/SQL/Translator/Parser/Excel.pm
cp lib/SQL/Translator/Producer/GraphViz.pm blib/lib/SQL/Translator/Producer/GraphViz.pm
cp lib/SQL/Translator/Manual.pod blib/lib/SQL/Translator/Manual.pod
cp lib/SQL/Translator/Parser/DBI/DB2.pm blib/lib/SQL/Translator/Parser/DBI/DB2.pm
cp lib/SQL/Translator/Producer/SQLServer.pm blib/lib/SQL/Translator/Producer/SQLServer.pm
cp lib/SQL/Translator/Types.pm blib/lib/SQL/Translator/Types.pm
cp lib/SQL/Translator/Schema/View.pm blib/lib/SQL/Translator/Schema/View.pm
cp lib/SQL/Translator/Parser/SQLite.pm blib/lib/SQL/Translator/Parser/SQLite.pm
cp lib/SQL/Translator/Parser.pm blib/lib/SQL/Translator/Parser.pm
cp lib/SQL/Translator/Producer/XML/SQLFairy.pm blib/lib/SQL/Translator/Producer/XML/SQLFairy.pm
cp lib/SQL/Translator/Parser/XML.pm blib/lib/SQL/Translator/Parser/XML.pm
cp lib/SQL/Translator/Producer/HTML.pm blib/lib/SQL/Translator/Producer/HTML.pm
cp lib/SQL/Translator/Parser/YAML.pm blib/lib/SQL/Translator/Parser/YAML.pm
cp lib/SQL/Translator/Producer/TT/Base.pm blib/lib/SQL/Translator/Producer/TT/Base.pm
cp lib/SQL/Translator/Parser/DBI.pm blib/lib/SQL/Translator/Parser/DBI.pm
cp lib/SQL/Translator/Schema/Constraint.pm blib/lib/SQL/Translator/Schema/Constraint.pm
cp lib/SQL/Translator/Parser/XML/SQLFairy.pm blib/lib/SQL/Translator/Parser/XML/SQLFairy.pm
cp lib/SQL/Translator/Producer/TTSchema.pm blib/lib/SQL/Translator/Producer/TTSchema.pm
cp lib/SQL/Translator/Parser/JSON.pm blib/lib/SQL/Translator/Parser/JSON.pm
cp lib/SQL/Translator/Schema.pm blib/lib/SQL/Translator/Schema.pm
cp lib/SQL/Translator/Producer/TT/Table.pm blib/lib/SQL/Translator/Producer/TT/Table.pm
cp lib/SQL/Translator/Producer/Oracle.pm blib/lib/SQL/Translator/Producer/Oracle.pm
cp lib/SQL/Translator/Utils.pm blib/lib/SQL/Translator/Utils.pm
cp lib/SQL/Translator/Schema/Procedure.pm blib/lib/SQL/Translator/Schema/Procedure.pm
cp lib/SQL/Translator/Producer/XML.pm blib/lib/SQL/Translator/Producer/XML.pm
cp lib/SQL/Translator/Producer/DiaUml.pm blib/lib/SQL/Translator/Producer/DiaUml.pm
cp lib/SQL/Translator/Diff.pm blib/lib/SQL/Translator/Diff.pm
cp lib/SQL/Translator/Producer/SQLite.pm blib/lib/SQL/Translator/Producer/SQLite.pm
cp lib/SQL/Translator/Parser/PostgreSQL.pm blib/lib/SQL/Translator/Parser/PostgreSQL.pm
cp lib/SQL/Translator/Generator/DDL/SQLite.pm blib/lib/SQL/Translator/Generator/DDL/SQLite.pm
cp lib/SQL/Translator/Parser/DB2/Grammar.pm blib/lib/SQL/Translator/Parser/DB2/Grammar.pm
cp lib/SQL/Translator/Parser/MySQL.pm blib/lib/SQL/Translator/Parser/MySQL.pm
cp lib/SQL/Translator/Producer/ClassDBI.pm blib/lib/SQL/Translator/Producer/ClassDBI.pm
cp lib/SQL/Translator/Role/Error.pm blib/lib/SQL/Translator/Role/Error.pm
cp lib/SQL/Translator/Schema/Role/Extra.pm blib/lib/SQL/Translator/Schema/Role/Extra.pm
cp lib/SQL/Translator/Parser/DBI/Oracle.pm blib/lib/SQL/Translator/Parser/DBI/Oracle.pm
cp lib/SQL/Translator/Schema/Role/Compare.pm blib/lib/SQL/Translator/Schema/Role/Compare.pm
cp lib/SQL/Translator/Parser/DBI/SQLServer.pm blib/lib/SQL/Translator/Parser/DBI/SQLServer.pm
cp lib/SQL/Translator/Parser/DB2.pm blib/lib/SQL/Translator/Parser/DB2.pm
cp lib/SQL/Translator/Filter/Globals.pm blib/lib/SQL/Translator/Filter/Globals.pm
cp lib/SQL/Translator/Parser/SQLServer.pm blib/lib/SQL/Translator/Parser/SQLServer.pm
cp lib/SQL/Translator/Parser/Oracle.pm blib/lib/SQL/Translator/Parser/Oracle.pm
cp lib/SQL/Translator/Role/BuildArgs.pm blib/lib/SQL/Translator/Role/BuildArgs.pm
cp lib/SQL/Translator/Producer/Dumper.pm blib/lib/SQL/Translator/Producer/Dumper.pm
cp lib/SQL/Translator/Producer/Latex.pm blib/lib/SQL/Translator/Producer/Latex.pm
cp lib/SQL/Translator/Generator/DDL/SQLServer.pm blib/lib/SQL/Translator/Generator/DDL/SQLServer.pm
cp lib/SQL/Translator/Parser/DBI/PostgreSQL.pm blib/lib/SQL/Translator/Parser/DBI/PostgreSQL.pm
cp lib/SQL/Translator/Schema/Trigger.pm blib/lib/SQL/Translator/Schema/Trigger.pm
cp lib/SQL/Translator/Schema/Field.pm blib/lib/SQL/Translator/Schema/Field.pm
cp lib/SQL/Translator/Producer/POD.pm blib/lib/SQL/Translator/Producer/POD.pm
cp lib/SQL/Translator/Filter/Names.pm blib/lib/SQL/Translator/Filter/Names.pm
cp lib/SQL/Translator/Role/ListAttr.pm blib/lib/SQL/Translator/Role/ListAttr.pm
cp lib/SQL/Translator/Producer/PostgreSQL.pm blib/lib/SQL/Translator/Producer/PostgreSQL.pm
cp lib/SQL/Translator/Producer/DB2.pm blib/lib/SQL/Translator/Producer/DB2.pm
cp lib/SQL/Translator/Producer/MySQL.pm blib/lib/SQL/Translator/Producer/MySQL.pm
cp lib/SQL/Translator/Producer/Storable.pm blib/lib/SQL/Translator/Producer/Storable.pm
cp lib/SQL/Translator/Schema/Object.pm blib/lib/SQL/Translator/Schema/Object.pm
cp lib/SQL/Translator/Generator/DDL/PostgreSQL.pm blib/lib/SQL/Translator/Generator/DDL/PostgreSQL.pm
cp lib/SQL/Translator/Role/Debug.pm blib/lib/SQL/Translator/Role/Debug.pm
cp lib/SQL/Translator/Parser/Sybase.pm blib/lib/SQL/Translator/Parser/Sybase.pm
cp lib/SQL/Translator/Schema/Constants.pm blib/lib/SQL/Translator/Schema/Constants.pm
cp lib/Test/SQL/Translator.pm blib/lib/Test/SQL/Translator.pm
cp lib/SQL/Translator/Parser/DBI/Sybase.pm blib/lib/SQL/Translator/Parser/DBI/Sybase.pm
cp lib/SQL/Translator/Producer.pm blib/lib/SQL/Translator/Producer.pm
cp lib/SQL/Translator/Producer/YAML.pm blib/lib/SQL/Translator/Producer/YAML.pm
cp lib/SQL/Translator/Generator/Role/Quote.pm blib/lib/SQL/Translator/Generator/Role/Quote.pm
cp script/sqlt-dumper blib/script/sqlt-dumper
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt-dumper
cp script/sqlt-diagram blib/script/sqlt-diagram
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt-diagram
cp script/sqlt-graph blib/script/sqlt-graph
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt-graph
cp script/sqlt-diff blib/script/sqlt-diff
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt-diff
cp script/sqlt-diff-old blib/script/sqlt-diff-old
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt-diff-old
cp script/sqlt blib/script/sqlt
"/home/fly1400/ap1400/bin/perl-static" "-Iinc" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/sqlt
Manifying 6 pod documents
Manifying 77 pod documents
ILMARI/SQL-Translator-0.11020.tar.gz
make -- OK
Running make test
>>> make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 "/home/fly1400/ap1400/bin/perl-static" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/02mysql-parser.t ......................
1..346
ok 1 - Schema is valid
ok 2 - Right number of tables (1)
ok 3 - Found "sessions" table
ok 4 - Right number of fields (4)
ok 5 - First field name is "id"
ok 6 - Type is "char"
ok 7 - Size is "32"
ok 8 - Field cannot be null
ok 9 - Default value is "0"
ok 10 - Field is PK
ok 11 - Second field name is "a_session"
ok 12 - Type is "text"
ok 13 - Size is "65,535"
ok 14 - Field can be null
ok 15 - Default value is undefined
ok 16 - Field is not PK
ok 17 - Right number of indices (2)
ok 18 - Found fulltext
ok 19 - Right number of constraints (2)
ok 20 - Constraint is a PK
ok 21 - Constraint is on "id"
ok 22 - Constraint is UNIQUE
ok 23 - Constraint is on "ssn"
ok 24 - Schema is valid
ok 25 - Right number of tables (1)
ok 26 - Found "check" table
ok 27 - Right number of fields (13)
ok 28 - First field name is "check_id"
ok 29 - Type is "int"
ok 30 - Size is "7"
ok 31 - Field cannot be null
ok 32 - Default value is "0000000"
ok 33 - Field is PK
ok 34 - Field is auto inc
ok 35 - Field is unsigned
ok 36 - Field is zerofill
ok 37 - Second field name is "successful"
ok 38 - Type is "date"
ok 39 - Size is "0"
ok 40 - Field cannot be null
ok 41 - Default value is "0000-00-00"
ok 42 - Field is not PK
ok 43 - Third field name is "unsuccessful"
ok 44 - Type is "date"
ok 45 - Size is "0"
ok 46 - Field can be null
ok 47 - Default value is "0000-00-00"
ok 48 - Field is not PK
ok 49 - Fourth field name is "i1"
ok 50 - Type is "int"
ok 51 - Size is "11"
ok 52 - Field cannot be null
ok 53 - Default value is "0"
ok 54 - Field is not PK
ok 55 - Fifth field name is "s1"
ok 56 - Type is "set"
ok 57 - Size is "1"
ok 58 - Field can be null
ok 59 - Default value is "b"
ok 60 - Field is not PK
ok 61 - List is "a,b,c"
ok 62 - Sixth field name is "e1"
ok 63 - Type is "enum"
ok 64 - Size is "1"
ok 65 - Field can be null
ok 66 - Default value is "c"
ok 67 - Field is not PK
ok 68 - List is "a,b,c"
ok 69 - Seventh field name is "name"
ok 70 - Type is "varchar"
ok 71 - Size is "30"
ok 72 - Field can be null
ok 73 - Default value is "NULL"
ok 74 - Field is not PK
ok 75 - Eighth field name is "foo_type"
ok 76 - Type is "enum"
ok 77 - Size is "2"
ok 78 - Field cannot be null
ok 79 - Default value is "vk"
ok 80 - Field is not PK
ok 81 - List is "vk,ck"
ok 82 - Ninth field name is "date"
ok 83 - Type is "timestamp"
ok 84 - Size is "0"
ok 85 - Field can be null
ok 86 - Default value is undefined
ok 87 - Field is not PK
ok 88 - Tenth field name is "time_stamp2"
ok 89 - Type is "timestamp"
ok 90 - Size is "0"
ok 91 - Field can be null
ok 92 - Default value is undefined
ok 93 - Field is not PK
ok 94 - Eleventh field name is "foo_enabled"
ok 95 - Type is "bit"
ok 96 - Size is "1"
ok 97 - Field can be null
ok 98 - Default value is 0
ok 99 - Field is not PK
ok 100 - Twelveth field name is "bar_enabled"
ok 101 - Type is "bit"
ok 102 - Size is "1"
ok 103 - Field can be null
ok 104 - Default value is 1
ok 105 - Field is not PK
ok 106 - Thirteenth field name is "long_foo_enabled"
ok 107 - Type is "bit"
ok 108 - Size is "10"
ok 109 - Field can be null
ok 110 - Default value is 1010101
ok 111 - Field is not PK
ok 112 - Right number of indices (3)
ok 113 - No name on index
ok 114 - Normal index
ok 115 - Index is on field "i1"
ok 116 - Name is "date_idx"
ok 117 - Normal index
ok 118 - Index is on field "date"
ok 119 - Name is "name_idx"
ok 120 - Normal index
ok 121 - Index is on field "name(10)"
ok 122 - Right number of constraints (2)
ok 123 - Constraint is a PK
ok 124 - Constraint is on "check_id"
ok 125 - Constraint is UNIQUE
ok 126 - Constraint is on "date, i1"
ok 127 - Schema is valid
ok 128 - Right number of tables (2)
ok 129 - Found "orders" table
ok 130 - Table comment OK
ok 131 - Right number of fields (10)
ok 132 - First field name is "order_id"
ok 133 - Type is "int"
ok 134 - Size is "11"
ok 135 - Field cannot be null
ok 136 - Default value is undefined
ok 137 - Field is PK
ok 138 - Field is auto inc
ok 139 - Second field name is "member_id"
ok 140 - Type is "varchar"
ok 141 - Size is "255"
ok 142 - Field can be null
ok 143 - Field comment OK
ok 144 - Default value is undefined
ok 145 - Third field name is "billing_address_id"
ok 146 - Type is "int"
ok 147 - Size is "11"
ok 148 - Fourth field name is "shipping_address_id"
ok 149 - Type is "int"
ok 150 - Size is "11"
ok 151 - Fifth field name is "credit_card_id"
ok 152 - Type is "int"
ok 153 - Size is "11"
ok 154 - Sixth field name is "status"
ok 155 - Type is "smallint"
ok 156 - Size is "6"
ok 157 - Field cannot be null
ok 158 - Seventh field name is "store_id"
ok 159 - Type is "varchar"
ok 160 - Size is "255"
ok 161 - Field cannot be null
ok 162 - Field is a FK
ok 163 - 'FK' isa 'SQL::Translator::Schema::Constraint'
ok 164 - FK is to "store" table
ok 165 - Eighth field name is "tax"
ok 166 - Type is "decimal"
ok 167 - Size is "8,2"
ok 168 - Ninth field name is "shipping_charge"
ok 169 - Type is "decimal"
ok 170 - Size is "8,2"
ok 171 - Tenth field name is "price_paid"
ok 172 - Type is "decimal"
ok 173 - Size is "8,2"
ok 174 - Right number of indices (4)
ok 175 - First index is normal
ok 176 - Index is on "status"
ok 177 - Second index is normal
ok 178 - Index is on "billing_address_id"
ok 179 - Third index is normal
ok 180 - Index is on "shipping_address_id"
ok 181 - Third index is normal
ok 182 - Index is on "member_id,store_id"
ok 183 - Right number of constraints (5)
ok 184 - Constraint is a PK
ok 185 - Constraint is on "order_id"
ok 186 - Constraint is a FK
ok 187 - Constraint is on "status"
ok 188 - To table "order_status"
ok 189 - To field "id"
ok 190 - Constraint is a FK
ok 191 - Constraint is on "billing_address_id"
ok 192 - To table "address"
ok 193 - To field "address_id"
ok 194 - Constraint is a FK
ok 195 - Constraint is on "shipping_address_id"
ok 196 - To table "address"
ok 197 - To field "address_id"
ok 198 - Constraint is a FK
ok 199 - Constraint is on "store_id"
ok 200 - To table "store"
ok 201 - No reference fields defined
ok 202 - Found "address" table
ok 203 - Right number of fields (8)
ok 204 - Schema is valid
ok 205 - Database name extracted from USE
ok 206 - Right number of tables (2)
ok 207 - Found "one" table
ok 208 - Found "two" table
ok 209 - Right number of constraints (2) on table one
ok 210 - Constraint is a PK
ok 211 - Constraint is on "id"
ok 212 - Constraint is a FK
ok 213 - Constraint is on "two_id"
ok 214 - To table "two"
ok 215 - To field "id"
ok 216 - Right number of constraints (2) on table two
ok 217 - Constraint is a PK
ok 218 - Constraint is on "id"
ok 219 - Constraint is a FK
ok 220 - Constraint is on "one_id"
ok 221 - To table "one"
ok 222 - To field "id"
ok 223 - Schema is valid
ok 224 - Right number of tables (1)
ok 225 - Found "one" table
ok 226 - Right number of fields (3) on table one
ok 227 - Table has right table type option
ok 228 - Table has right character set option
ok 229 - Field is a varchar
ok 230 - Field is right size
ok 231 - Field has right character set qualifier
ok 232 - Field has right collate qualifier
ok 233 - Field has right default value
ok 234 - Field is a timestamp
ok 235 - Field is not nullable
ok 236 - Field has right default value
ok 237 - Field has right on update qualifier
ok 238 - Field is a datetime
ok 239 - Field is not nullable
ok 240 - Field has right default value
ok 241 - Right number of views (3)
ok 242 - Found "vs_asset" view
ok 243 - Found "vs_asset2" view
ok 244 - Found "vs_asset3" view
ok 245 - Detected view vs_asset
ok 246 - First view has correct fields
ok 247 - Only version 50013 options parsed
ok 248 - Right number of procedures (2)
ok 249 - Found "ap_from_millitime_nullable" procedure
ok 250 - Detected procedure ap_from_millitime_nullable
ok 251 - Found "sp_update_security_acl" procedure
ok 252 - Detected procedure sp_update_security_acl
ok 253 - Schema is valid
ok 254 - Right number of tables (1)
ok 255 - Found "test" table
ok 256 - Collate found
ok 257 - Character set found
ok 258 - '4' parsed as perl version '4'
ok 259 - '5.01.0' parsed as perl version '5.001'
ok 260 - '50003' parsed as perl version '5.000003'
ok 261 - '5.1' parsed as perl version '5.001'
ok 262 - '3.23.2' parsed as perl version '3.023002'
ok 263 - '4' parsed as mysql version '40000'
ok 264 - '5.01.0' parsed as mysql version '50100'
ok 265 - '50003' parsed as mysql version '50003'
ok 266 - '5.1' parsed as mysql version '50100'
ok 267 - '3.23.2' parsed as mysql version '32302'
ok 268 - Exception thrown on invalid version string
ok 269 - Schema is valid
ok 270 - Right number of tables (1)
ok 271 - Found "merge_example" table
ok 272 - Table has right table engine option
ok 273 - UNION option has correct set
ok 274 - Right number of fields (2)
ok 275 - First field name is "id"
ok 276 - Type is "int"
ok 277 - Size is "11"
ok 278 - Field cannot be null
ok 279 - Field is PK
ok 280 - Second field name is "shape_field"
ok 281 - Type is "geometry"
ok 282 - Field cannot be null
ok 283 - Field is not PK
ok 284 - Right number of indices (1)
ok 285 - No name on index
ok 286 - Spatial index
ok 287 - Right number of constraints (1)
ok 288 - Constraint is a PK
ok 289 - Constraint is on "id"
ok 290 - Schema is valid
ok 291 - Right number of tables (1)
ok 292 - Found "quote" table
ok 293 - Table has right table engine option
ok 294 - First field name is "id"
ok 295 - Type is "int"
ok 296 - Size is "11"
ok 297 - Field cannot be null
ok 298 - Field is PK
ok 299 - Schema is valid
ok 300 - Right number of tables (1)
ok 301 - Found "quote" table
ok 302 - Table has right table engine option
ok 303 - First field name is "id"
ok 304 - Type is "int"
ok 305 - Size is "11"
ok 306 - Field cannot be null
ok 307 - Field is PK
ok 308 - Schema is valid
ok 309 - Right number of tables (1)
ok 310 - Found "quote" table
ok 311 - Table has right table engine option
ok 312 - First field name is "id"
ok 313 - Type is "int"
ok 314 - Size is "11"
ok 315 - Field cannot be null
ok 316 - Field is PK
ok 317 - Schema is valid
ok 318 - Right number of tables (1)
ok 319 - Found "sessions" table
ok 320 - Right number of fields (3)
ok 321 - First field name is "id"
ok 322 - Type is "char"
ok 323 - Size is "32"
ok 324 - Field cannot be null
ok 325 - Default value is "0"
ok 326 - Field is PK
ok 327 - Second field name is "ssn"
ok 328 - Type is "varchar"
ok 329 - Size is "12"
ok 330 - Field can not be null
ok 331 - Single quote in default value is escaped properly
ok 332 - Field is not PK
ok 333 - Second field name is "user"
ok 334 - Type is "varchar"
ok 335 - Size is "20"
ok 336 - Field can not be null
ok 337 - Single quote in default value is escaped properly
ok 338 - Field is not PK
ok 339 - Parse failed error without default value
ok 340 - Both fields parsed correctly
ok 341 - Defaults on field id correct
ok 342 - Defaults on field ssn correct
ok 343 - File exists
ok 344 - File translated
ok 345 - no error
ok 346 - got schema
ok
t/03mysql-to-oracle.t ...................
1..3
ok 1 - Translate MySQL to Oracle
ok 2 - Normal index definition translated.
ok 3 - Unique index definition translated.
ok
t/04file,fh,string.t ....................
1..3
ok 1 - passing string (filename) works
ok 2 - passing string as SCALAR reference
ok 3 - from file == from string
ok
t/05bgep-re.t ...........................
1..2
ok 1 - MySQL->XML-SQLFairy
ok 2 - Successfully parsed output
ok
t/06xsv.t ...............................
1..25
ok 1 - Correct number of tables (1)
ok 2 - Table is named "table1"
ok 3 - Correct number of fields (7)
ok 4 - First field name is "One"
ok 5 - Data type is "char"
ok 6 - Size is "3"
ok 7 - Field is PK
ok 8 - First field name is "Two"
ok 9 - Data type is "char"
ok 10 - Size is "2"
ok 11 - Field is not PK
ok 12 - Fifth field name is "Five"
ok 13 - Data type is "char"
ok 14 - Size is "26"
ok 15 - Field is not PK
ok 16 - Sixth field name is "Six"
ok 17 - Data type is "integer"
ok 18 - Size is "6"
ok 19 - Seventh field name is "Seven"
ok 20 - Data type is "float"
ok 21 - Size is "3,2"
ok 22 - Correct number of indices (0)
ok 23 - Correct number of constraints (1)
ok 24 - Constraint is a PK
ok 25 - On field "One"
ok
t/07p_args.t ............................
1..9
ok 1 - parser_args works when called directly
ok 2 - right number of tables
ok 3 - right number of fields
ok 4 - parser_args works when called indirectly
ok 5 - right number of tables
ok 6 - right number of fields
ok 7 - parser_args works when called as constructor arg
ok 8 - right number of tables
ok 9 - right number of fields with new delimiter
ok
t/08postgres-to-mysql.t .................
1..1
ok 1 - Translate PG2My
ok
Error: translate: Error with producer 'SQL::Translator::Producer::Diagram': GD can't create images of type 'png'
# Failed test at t/09sqlt-diagram.t line 31.
# Failed test at t/09sqlt-diagram.t line 32.
# Looks like you failed 2 tests of 3.
t/09sqlt-diagram.t ......................
1..3
ok 1
not ok 2
not ok 3
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/3 subtests
t/10excel.t .............................
1..31
ok 1 - Parsed 1 table
ok 2 - Table name is "Sheet1"
ok 3 - Table has 7 fields
ok 4 - First field name is "ID"
ok 5 - Data type is "integer"
ok 6 - Size is "5"
ok 7 - Field is PK
ok 8 - Second field name is "text"
ok 9 - Data type is "char"
ok 10 - Size is "7"
ok 11 - Field is not PK
ok 12 - Third field name is "number"
ok 13 - Data type is "integer"
ok 14 - Size is "1"
ok 15 - Field is not PK
ok 16 - Fourth field name is "math"
ok 17 - Data type is "float"
ok 18 - Size is "3,1"
ok 19 - Field is not PK
ok 20 - Fifth field name is "bitmap"
ok 21 - Data type is "char"
ok 22 - Size is "1"
ok 23 - Field is not PK
ok 24 - Sixth field name is "today"
ok 25 - Data type is "CHAR"
ok 26 - Size is "10"
ok 27 - Field is not PK
ok 28 - Seventh field name is "silly_field_with_random_characters"
ok 29 - Data type is "CHAR"
ok 30 - Size is "11"
ok 31 - Field is not PK
ok
t/11normalize.t .........................
1..5
ok 1 - use SQL::Translator::Utils;
ok 2 - normalize_name('- 9s80 qwehjf 4r') => '_9s80_qwehjf_4r'
ok 3 - normalize_name('hello, world') => 'hello_world'
ok 4 - normalize_name('444') => '_444'
ok 5 - normalize_name('silly field (with random characters)') => 'silly_field_with_random_characters'
ok
t/12header_comment.t ....................
1..5
ok 1 - use SQL::Translator::Utils;
ok 2 - default comment
ok 3 - Created by...
ok 4 - Multiline header comment...
ok 5 - ...with additional junk
ok
t/13schema.t ............................
ok 1 - require SQL::Translator;
ok 2 - require SQL::Translator::Schema;
ok 3 - An object of class 'SQL::Translator::Schema' isa 'SQL::Translator::Schema'
ok 4 - Schema name is "foo"
ok 5 - Schema name changed to "bar"
ok 6 - Schema database is "MySQL"
ok 7 - Schema database changed to "PostgreSQL"
ok 8 - Schema not valid...
ok 9 - ...because there are no tables
ok 10 - 'Table "foo"' isa 'SQL::Translator::Schema::Table'
ok 11 - 'Table "bar"' isa 'SQL::Translator::Schema::Table'
ok 12 - Add table "bar"
ok 13 - 'Schema' isa 'SQL::Translator::Schema'
ok 14 - Can't change name of table "bar" to "foo"...
ok 15 - ...because "foo" exists
ok 16 - Can't create another "foo" table...
ok 17 - ... because "foo" exists
ok 18 - Can't add an anonymous table...
ok 19 - ... because it has no name
ok 20 - Can't create an anonymous table
ok 21 - ... because it has no name
ok 22 - 'Dropped table "foo"' isa 'SQL::Translator::Schema::Table'
ok 23 - 'Dropped table "foo" by object' isa 'SQL::Translator::Schema::Table'
ok 24 - Can't drop non-existant table "foo"
ok 25 - Table name is "foo"
ok 26 - Table stringifies to "foo"
ok 27 - Table "foo" is not yet valid
ok 28 - Table "foo" has no fields
ok 29 - Error for no fields
ok 30 - No comments
ok 31 - Table name is "person"
ok 32 - Table is not yet valid
ok 33 - Comments = "foo"
ok 34 - Table comments = "foo,bar"
ok 35 - Table comments = "foo,bar"
ok 36 - 'Field' isa 'SQL::Translator::Schema::Field'
ok 37 - Field name is "foo"
ok 38 - Field full_name is "person.foo"
ok 39 - Field stringifies to "foo"
ok 40 - Field data type is blank
ok 41 - Field size is "0"
ok 42 - Field is_primary_key is false
ok 43 - Field can be NULL
ok 44 - Field default is undefined
ok 45 - No comments
ok 46 - Field table is person
ok 47 - Field schema shortcut works
ok 48 - 'f2' isa 'SQL::Translator::Schema::Field'
ok 49 - Add field "f2"
ok 50 - Field cannot be NULL
ok 51 - Field cannot be NULL
ok 52 - Field cannot be NULL
ok 53 - Field default is empty string
ok 54 - Field comment = "foo"
ok 55 - Field comment = "foo,bar"
ok 56 - Field comment = "foo,bar"
ok 57 - 'person_table' isa 'SQL::Translator::Schema::Table'
ok 58 - Can't set field name of "f2" to "foo"...
ok 59 - ...because name exists
ok 60 - Didn't create another "f2" field...
ok 61 - ... because it exists
ok 62 - Didn't add a "" field...
ok 63 - ... because it has no name
ok 64 - Didn't create a "" field...
ok 65 - ... because it has no name
ok 66 - Table "foo" has 2 fields
ok 67 - First field is "foo"
ok 68 - Second field is "f2"
ok 69 - field_names is "foo,f2"
ok 70 - Got field case-insensitively
ok 71 - 'Dropped field "f2"' isa 'SQL::Translator::Schema::Field'
ok 72 - 'Dropped field "f2" by object' isa 'SQL::Translator::Schema::Field'
ok 73 - Can't drop non-existant field "f2"
ok 74 - Field name is "person_name"
ok 75 - Field data type is "varchar"
ok 76 - Field size is "30"
ok 77 - Field is_primary_key is negative
ok 78 - Field extra "foo" is "bar"
ok 79 - Field extra "baz" is "quux"
ok 80 - Field name is "age"
ok 81 - Field data type is "float"
ok 82 - Field size is "10,2"
ok 83 - Field size still "10,2"
ok 84 - Field size still "10,2"
ok 85 - Field size still "10,2"
ok 86 - Field size returns array
ok 87 - No indices
ok 88 - Error for no indices
ok 89 - 'Index' isa 'SQL::Translator::Schema::Index'
ok 90 - Index name is "foo"
ok 91 - Index name is not valid...
ok 92 - ...because it has no fields
ok 93 - Index accepts fields
ok 94 - Index name is not valid...
ok 95 - ...because it used fields not in the table
ok 96 - Index accepts fields
ok 97 - Index name is now valid
ok 98 - Index type is "normal"
ok 99 - 'Index' isa 'SQL::Translator::Schema::Index'
ok 100 - Index name is "bar"
ok 101 - Two indices
ok 102 - "foo" index
ok 103 - "bar" index
ok 104 - 'Dropped index "foo"' isa 'SQL::Translator::Schema::Index'
ok 105 - 'Dropped index "foo" by object' isa 'SQL::Translator::Schema::Index'
ok 106 - Dropped correct index "foo"
ok 107 - Can't drop non-existant index "foo"
ok 108 - No constraints
ok 109 - Error for no constraints
ok 110 - 'Constraint' isa 'SQL::Translator::Schema::Constraint'
ok 111 - Constraint name is "foo"
ok 112 - Constraint field = "age"
ok 113 - Constraint fields returns a SQL::Translator::Schema::Field
ok 114 - Constraint field = "age"
ok 115 - Constraint field = "age,name"
ok 116 - Constraint field = "age,name"
ok 117 - Constraint field = "age,name"
ok 118 - Constraint field = "age,name"
ok 119 - Constraint field = "age,name"
ok 120 - Constraint field_names = "age,name"
ok 121 - Constraint match type is empty
ok 122 - Constraint match type rejects bad arg...
ok 123 - ...because it is invalid
ok 124 - Constraint match type = "full"
ok 125 - 'Constraint' isa 'SQL::Translator::Schema::Constraint'
ok 126 - Constraint name is "bar"
ok 127 - 'Constraint' isa 'SQL::Translator::Schema::Constraint'
ok 128 - Constraint type is "CHECK"
ok 129 - Constraint expression is "foo bar"
ok 130 - Three constraints
ok 131 - "foo" constraint
ok 132 - "bar" constraint
ok 133 - 'Dropped constraint "foo"' isa 'SQL::Translator::Schema::Constraint'
ok 134 - 'Dropped constraint "foo" by object' isa 'SQL::Translator::Schema::Constraint'
ok 135 - Dropped correct constraint "foo"
ok 136 - Can't drop non-existant constraint "foo"
ok 137 - 'View' isa 'SQL::Translator::Schema::View'
ok 138 - View SQL is good
ok 139 - Add view "view2"
ok 140 - Didn't create another "view2" view...
ok 141 - ... because it exists
ok 142 - 'Dropped view "view1"' isa 'SQL::Translator::Schema::View'
ok 143 - 'Dropped view "view1" by object' isa 'SQL::Translator::Schema::View'
ok 144 - Dropped correct view "view1"
ok 145 - Can't drop non-existant view "view1"
ok 146 - Error on no arg to get_table
ok 147 - Error on bad arg to get_table
ok 148 - Error on no arg to get_view
ok 149 - Error on bad arg to get_view
ok 150 - 'Table "foo"' isa 'SQL::Translator::Schema::Table'
ok 151 - 'View "view1"' isa 'SQL::Translator::Schema::View'
ok 152 - View SQL is good
ok 153 - Found 2 tables
ok 154 - Found 1 view
ok 155 - Field is PK
ok 156 - Field is auto inc
ok 157 - Constraint on "person" not valid...
ok 158 - ...because it has no type
ok 159 - Constraint type now a FK
ok 160 - Constraint on "person" not valid...
ok 161 - ...because it has no fields
ok 162 - Fields now = "foo"
ok 163 - Constraint on "person" not valid...
ok 164 - ...because field "foo" doesn't exist
ok 165 - Added field "pet_id"
ok 166 - Fields now = "pet_id"
ok 167 - Fields now = "f1,f2"
ok 168 - Constraint on "person" not valid...
ok 169 - ...because too many fields for FK
ok 170 - Constraint on "person" not valid...
ok 171 - ...because there's no reference table
ok 172 - Reference table now = "foo"
ok 173 - Constraint on "person" not valid...
ok 174 - ...because reference table "foo" doesn't exist
ok 175 - Added "pet" table
ok 176 - Reference table now = "pet"
ok 177 - Constraint on "person" not valid...
ok 178 - ...because there're no reference fields
ok 179 - Reference fields = "pet_id"
ok 180 - Constraint on "person" not valid...
ok 181 - ...because there's no "pet_id" field in "pet"
ok 182 - Added field "pet_id"
ok 183 - Constraint now valid
ok 184 - No primary key
ok 185 - Can't make PK on "person_id"...
ok 186 - ...because it doesn't exist
ok 187 - 'Constraint' isa 'SQL::Translator::Schema::Constraint'
ok 188 - Constraint now on "person_id"
ok 189 - Constraint now on "person_id" and "name"
ok 190 - Found 1 constraint
ok 191 - Made "person_id" PK on "person"
ok 192 - FK found PK "person.id"
ok 193 - 'View' isa 'SQL::Translator::Schema::View'
ok 194 - 'Schema' isa 'SQL::Translator::Schema'
ok 195 - Schema name is "'ViewTest'"
ok 196 - Name is "foo_view"
ok 197 - Name is "select name, age from person"
ok 198 - Fields are "name, age"
ok 199 - Number of views is 1
ok 200 - 'View' isa 'SQL::Translator::Schema::View'
ok 201 - Name is "foo_view"
ok 202 - 'Trigger' isa 'SQL::Translator::Schema::Trigger'
ok 203 - 'Schema' isa 'SQL::Translator::Schema'
ok 204 - Schema name is "'TrigTest'"
ok 205 - Name is "foo_trigger"
ok 206 - Perform action when is "after"
ok 207 - Database event is "insert"
ok 208 - 'table is a Table"' isa 'SQL::Translator::Schema::Table'
ok 209 - Action is "update modified=timestamp();"
ok 210 - Number of triggers is 1
ok 211 - 'Trigger' isa 'SQL::Translator::Schema::Trigger'
ok 212 - Name is "foo_trigger"
ok 213 - 'Trigger' isa 'SQL::Translator::Schema::Trigger'
ok 214 - 'Schema' isa 'SQL::Translator::Schema'
ok 215 - Schema name is "'TrigTest2'"
ok 216 - Name is "foo_trigger"
ok 217 - Database events are [qw/insert update/]
ok 218 - 'Database events' isa 'ARRAY'
ok 219 - Compare two Triggers with database_event and database_events
ok 220 - Compare two Triggers with database_event
ok 221 - Compare two Triggers with database_events
ok 222 - 'Dropped trigger "foo_trigger"' isa 'SQL::Translator::Schema::Trigger'
ok 223 - 'Dropped trigger "foo_trigger" by object' isa 'SQL::Translator::Schema::Trigger'
ok 224 - Dropped correct trigger "foo_trigger"
ok 225 - Can't drop non-existant trigger "foo_trigger"
ok 226 - 'Procedure' isa 'SQL::Translator::Schema::Procedure'
ok 227 - 'Schema' isa 'SQL::Translator::Schema'
ok 228 - Schema name is "'ProcTest'"
ok 229 - Name is "foo_proc"
ok 230 - SQL is "select foo from bar"
ok 231 - Params = 'foo,bar'
ok 232 - Comments = "Go Sox!"
ok 233 - Number of procedures is 1
ok 234 - 'Procedure' isa 'SQL::Translator::Schema::Procedure'
ok 235 - Name is "foo_proc"
ok 236 - 'Dropped procedure "foo_proc"' isa 'SQL::Translator::Schema::Procedure'
ok 237 - 'Dropped procedure "foo_proc" by object' isa 'SQL::Translator::Schema::Procedure'
ok 238 - Dropped correct procedure "foo_proc"
ok 239 - Can't drop non-existant procedure "foo_proc"
ok 240 - Field order is passed, order is 1
ok 241 - Field order is passed, order is 2
ok 242 - Field order is passed, order is 3
ok 243 - Field order is not passed, order is 4
ok 244 - Field order is not passed, order is 5
ok 245 - threw Regexp ((?^:Requested\ order\ \'2\'\ for\ column\ \'name2\'\ conflicts\ with\ already\ existing\ column\ \'name\'))
ok 246 - threw Regexp ((?^:field order incomplete))
ok 247 - Person table has data
ok 248 - Person table is not trivial
ok 249 - Pet table has data
ok 250 - Pet table is trivial
ok 251 - person_id is foreign key
ok 252 - pet_id is foreign key
ok 253 - Link table has no data
ok 254 - Link table is trivial
ok 255 - Link table can link
ok 256 - fan_id is foreign key
ok 257 - idol_id is foreign key
ok 258 - Self-link table has no data
ok 259 - Self-link table is not trivial
ok 260 - Self-link table can link
ok 261 - Self-link table can't link other
1..261
ok
t/14postgres-parser.t ...................
1..154
ok 1 - 'Schema object' isa 'SQL::Translator::Schema'
ok 2 - Five tables
ok 3 - Table t_test1 exists
ok 4 - Table comment exists
ok 5 - 15 fields in t_test1
ok 6 - First field is "f_serial"
ok 7 - Field is an integer
ok 8 - Field cannot be null
ok 9 - Size is "11"
ok 10 - Default value is "0"
ok 11 - Field is PK
ok 12 - Comment
ok 13 - Field is auto increment
ok 14 - Second field is "f_varchar"
ok 15 - Field is a varchar
ok 16 - Field can be null
ok 17 - Size is "255"
ok 18 - Default value is undefined
ok 19 - Field is not PK
ok 20 - Field is not auto increment
ok 21 - Third field is "f_double"
ok 22 - Field is a float
ok 23 - Field can be null
ok 24 - Size is "20"
ok 25 - Default value is undefined
ok 26 - Field is not PK
ok 27 - Fourth field is "f_bigint"
ok 28 - Field is an integer
ok 29 - Field cannot be null
ok 30 - Size is "20"
ok 31 - Default value is undefined
ok 32 - Field is not PK
ok 33 - Fifth field is "f_char"
ok 34 - Field is char
ok 35 - Field can be null
ok 36 - Size is "10"
ok 37 - Default value is undefined
ok 38 - Field is not PK
ok 39 - Sixth field is "f_bool"
ok 40 - Field is a boolean
ok 41 - Field can be null
ok 42 - Size is "0"
ok 43 - Default value is undefined
ok 44 - Field is not PK
ok 45 - Seventh field is "f_bin"
ok 46 - Field is bytea
ok 47 - Field can be null
ok 48 - Size is "0"
ok 49 - Default value is undefined
ok 50 - Field is not PK
ok 51 - Eighth field is "f_tz"
ok 52 - Field is a timestamp
ok 53 - Field can be null
ok 54 - Size is "0"
ok 55 - Default value is 1970-01-01 00:00:00
ok 56 - Field is not PK
ok 57 - Ninth field is "f_text"
ok 58 - Field is text
ok 59 - Field can be null
ok 60 - Size is "64,000"
ok 61 - Default value is undefined
ok 62 - Field is not PK
ok 63 - Tenth field is "f_fk1"
ok 64 - Field is an integer
ok 65 - Field cannot be null
ok 66 - Size is "10"
ok 67 - Default value is undefined
ok 68 - Field is not PK
ok 69 - Field is a FK
ok 70 - 'FK' isa 'SQL::Translator::Schema::Constraint'
ok 71 - FK is to "t_test2" table
ok 72 - Eleventh field is "f_timestamp"
ok 73 - Field is a timestamp with time zone
ok 74 - Field can be null
ok 75 - Size is "0"
ok 76 - Default value is "undef"
ok 77 - Field is not PK
ok 78 - Field is not FK
ok 79 - 12th field is "f_timestamp2"
ok 80 - Field is a timestamp without time zone
ok 81 - Field can be null
ok 82 - Size is "0"
ok 83 - Default value is "undef"
ok 84 - Field is not PK
ok 85 - Field is not FK
ok 86 - 13th field is "f_json"
ok 87 - Field is Json
ok 88 - Field can be null
ok 89 - Size is "0"
ok 90 - Default value is "undef"
ok 91 - Field is not PK
ok 92 - Field is not FK
ok 93 - 14th field is "f_hstore"
ok 94 - Field is hstore
ok 95 - Field can be null
ok 96 - Size is "0"
ok 97 - Default value is "undef"
ok 98 - Field is not PK
ok 99 - Field is not FK
ok 100 - 8 constraints on t_test1
ok 101 - First constraint is PK
ok 102 - Constraint is on field "f_serial"
ok 103 - Second constraint is foreign key
ok 104 - Constraint is on field "f_fk1"
ok 105 - Constraint is to table "t_test2"
ok 106 - Constraint is to field "f_id"
ok 107 - Third constraint is unique
ok 108 - Constraint is on field "f_varchar"
ok 109 - Fourth constraint is foreign key
ok 110 - Constraint is on field "f_fk2"
ok 111 - Constraint is to table "t_test2"
ok 112 - Constraint is to field "f_id"
ok 113 - On delete: cascade
ok 114 - On delete: no action
ok 115 - Match type: simple
ok 116 - Deferrable detected
ok 117 - Table t_test2 exists
ok 118 - 4 fields in t_test2
ok 119 - First field is "f_id"
ok 120 - Field is an integer
ok 121 - Field cannot be null
ok 122 - Size is "10"
ok 123 - Default value is undefined
ok 124 - Field is PK
ok 125 - Second field is "f_varchar"
ok 126 - Field is an varchar
ok 127 - Field can be null
ok 128 - Size is "25"
ok 129 - Default value is undefined
ok 130 - Field is not PK
ok 131 - Third field is "f_int"
ok 132 - Field is an integer
ok 133 - Field can be null
ok 134 - Size is "5"
ok 135 - Default value is undefined
ok 136 - Field is not PK
ok 137 - Fourth field is "f_smallint"
ok 138 - Field is an integer
ok 139 - Field can be null
ok 140 - Size is "5"
ok 141 - Default value is 0
ok 142 - Field is not PK
ok 143 - Three constraints on table
ok 144 - Constraint is NOT NULL
ok 145 - Constraint is a PK
ok 146 - Constraint is a 'CHECK'
ok 147 - Table is NOT temporary
ok 148 - Table is TEMP
ok 149 - Table is TEMPORARY
ok 150 - Trigger is on correct table
ok 151 - Correct events for trigger
ok 152 - Correct time for trigger
ok 153 - Correct scope for trigger
ok 154 - Correct action for trigger
ok
t/15oracle-parser.t .....................
1..99
ok 1 - 'Schema object' isa 'SQL::Translator::Schema'
ok 2 - Found four tables
ok 3 - First table is "qtl_trait_category"
ok 4 - Comment = "hey, hey, hey, hey"
ok 5 - 2 fields in table
ok 6 - First field is "qtl_trait_category_id"
ok 7 - Field is a number
ok 8 - Size is "11"
ok 9 - Field cannot be null
ok 10 - Default value is undefined
ok 11 - Field is PK
ok 12 - Comment = "the primary key!"
ok 13 - Second field is "trait_category"
ok 14 - Field is a varchar2
ok 15 - Size is "100"
ok 16 - Field cannot be null
ok 17 - Default value is undefined
ok 18 - Field is not PK
ok 19 - 0 indices on table
ok 20 - 3 constraints on table
ok 21 - Constraint name is "pk_qtl_trait_category"
ok 22 - First constraint is PK
ok 23 - Constraint is on field "qtl_trait_category_id"
ok 24 - Second constraint is a check
ok 25 - Constraint is on field "trait_category"
ok 26 - Third constraint is unique
ok 27 - Constraint is on field "trait_category"
ok 28 - Table "qtl_trait" exists
ok 29 - Comment "foo bar" exists
ok 30 - 4 fields in table
ok 31 - First field is "qtl_trait_id"
ok 32 - Field is a number
ok 33 - Size is "11"
ok 34 - Field cannot be null
ok 35 - Default value is undefined
ok 36 - Field is PK
ok 37 - Second field is "trait_symbol"
ok 38 - Field is a varchar2
ok 39 - Size is "100"
ok 40 - Field cannot be null
ok 41 - Field is not a FK
ok 42 - Third field is "trait_name"
ok 43 - Field is a varchar2
ok 44 - Size is "200"
ok 45 - Field cannot be null
ok 46 - Field is not a FK
ok 47 - Fourth field is "qtl_trait_category_id"
ok 48 - Field is a number
ok 49 - Size is "11"
ok 50 - Field cannot be null
ok 51 - Field is a FK
ok 52 - 'FK' isa 'SQL::Translator::Schema::Constraint'
ok 53 - FK references table "qtl_trait_category"
ok 54 - FK references field "qtl_trait_category_id"
ok 55 - 4 constraints on table
ok 56 - First constraint is PK
ok 57 - Name is "pk_qtl_trait"
ok 58 - Fields = "qtl_trait_id"
ok 59 - Second constraint is unique
ok 60 - No name
ok 61 - Fields = "trait_symbol"
ok 62 - Third constraint is unique
ok 63 - No name
ok 64 - Fields = "trait_name"
ok 65 - Fourth constraint is FK
ok 66 - No name
ok 67 - Fields = "qtl_trait_category_id"
ok 68 - Reference table = "qtl_trait_category"
ok 69 - Reference fields = "qtl_trait_category_id"
ok 70 - Table "qtl" exists
ok 71 - 8 fields in table
ok 72 - 4 constraints on table
ok 73 - Fourth constraint is unique
ok 74 - Name = "qtl_accession_upper"
ok 75 - Fields = "UPPER(qtl_accession_id)"
ok 76 - Comment "qtl table comment" exists
ok 77 - Comment "qtl_id comment" exists
ok 78 - Comment "accession comment" exists
ok 79 - 1 index on table
ok 80 - First index is normal
ok 81 - Name is "qtl_index"
ok 82 - Fields = "qtl_accession_id"
ok 83 - Table "qtl_trait_synonym" exists
ok 84 - 3 fields in table
ok 85 - 3 constraints on table
ok 86 - Third constraint is FK
ok 87 - No name
ok 88 - Fields = "qtl_trait_id"
ok 89 - Reference table = "qtl_trait"
ok 90 - Reference fields = "qtl_trait_id"
ok 91 - on_delete = "SET NULL"
ok 92 - Right number of views (1)
ok 93 - Found "VS_ASSET" view
ok 94 - Detected view VS_ASSET
ok 95 - Did not detect CMDOMAIN_MIG
ok 96 - Right number of procedures (1)
ok 97 - Found "P_24_HOUR_EVENT_SUMMARY" procedure
ok 98 - Detected procedure P_24_HOUR_EVENT_SUMMARY
ok 99 - Did not detect CMDOMAIN_MIG
ok
t/16xml-parser.t ........................ skipped: Missing dependency: XML::LibXML
t/17sqlfxml-producer.t ..................
1..14
ok 1 - Produced something!
ok 2 - XML looks right
ok 3 - Translate (View) ran
ok 4 - Produced something!
ok 5 - XML looks right
ok 6 - Translate (Trigger) ran
ok 7 - Produced something!
ok 8 - XML looks right
ok 9 - Translate (Procedure) ran
ok 10 - Produced something!
ok 11 - XML looks right
ok 12 - Translate (Field.extra) ran
ok 13 - Produced something!
ok 14 - XML looks right
ok
t/18ttschema-producer.t ................. skipped: Missing dependency: XML::LibXML
t/19sybase-parser.t .....................
1..41
ok 1 - File exists
ok 2 - Data
ok 3 - Parse
ok 4 - 'Schema' isa 'SQL::Translator::Schema'
ok 5 - Schema is valid
ok 6 - Nine tables
ok 7 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 8 - Name = 'jdbc_function_escapes'
ok 9 - Two fields
ok 10 - First field name is 'escape_name'
ok 11 - First field is 'varchar'
ok 12 - First field size is '40'
ok 13 - First field cannot be null
ok 14 - Second field name is 'map_string'
ok 15 - Second field is 'varchar'
ok 16 - Second field size is '40'
ok 17 - Second field cannot be null
ok 18 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 19 - Name = 'spt_jtext'
ok 20 - Two fields
ok 21 - First field name is 'mdinfo'
ok 22 - First field is 'varchar'
ok 23 - First field size is '30'
ok 24 - First field cannot be null
ok 25 - Second field name is 'value'
ok 26 - Second field is 'text'
ok 27 - Second field size is '0'
ok 28 - Second field cannot be null
ok 29 - One constraint
ok 30 - Constraint is UNIQUE
ok 31 - On "mdinfo"
ok 32 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 33 - Name = 'spt_mda'
ok 34 - Seven fields
ok 35 - First field name is 'mdinfo'
ok 36 - First field is 'varchar'
ok 37 - First field size is '30'
ok 38 - First field cannot be null
ok 39 - One constraint
ok 40 - Constraint is UNIQUE
ok 41 - On "mdinfo,mdaver_end,srvver_end"
ok
t/20format_X_name.t .....................
1..25
ok 1
ok 2 - $tr->format_table_name("foo") == "foo"
ok 3 - $tr->format_package_name("foo") == "foo"
ok 4 - $tr->format_fk_name("foo") == "foo"
ok 5 - $tr->format_pk_name("foo") == "foo"
ok 6 - $tr->format_table_name(sub { "table_$_[0]" })
ok 7 - $tr->format_table_name("foo") == "table_foo"
ok 8 - $tr->format_package_name(sub { "package_$_[0]" })
ok 9 - $tr->format_package_name("foo") == "package_foo"
ok 10 - $tr->format_fk_name(sub { "fk_$_[0]" })
ok 11 - $tr->format_fk_name("foo") == "fk_foo"
ok 12 - $tr->format_pk_name(sub { "pk_$_[0]" })
ok 13 - $tr->format_pk_name("foo") == "pk_foo"
ok 14 - $tr->format_table_name(sub { "table_$_[0]" })
ok 15 - $tr->format_table_name("foo") == "table_foo"
ok 16 - $tr->format_package_name(sub { "package_$_[0]" })
ok 17 - $tr->format_package_name("foo") == "package_foo"
ok 18 - $tr->format_fk_name(sub { "fk_$_[0]" })
ok 19 - $tr->format_fk_name("foo") == "fk_foo"
ok 20 - $tr->format_pk_name(sub { "pk_$_[0]" })
ok 21 - $tr->format_pk_name("foo") == "pk_foo"
ok 22 - $tr->format_table_name(sub { "table_$_[0]" }, "foo") == "table_foo"
ok 23 - $tr->format_package_name(sub { "package_$_[0]" }, "foo") == "package_foo"
ok 24 - $tr->format_fk_name(sub { "fk_$_[0]" }, "foo") == "fk_foo"
ok 25 - $tr->format_pk_name(sub { "pk_$_[0]" }, "foo") == "pk_foo"
ok
t/23json.t ..............................
1..2
ok 1 - Translate SQLite to JSON
ok 2 - JSON matches expected
ok
t/24yaml.t ..............................
1..2
ok 1 - Translate SQLite to YAML
ok 2 - YAML matches expected
ok
t/25storable.t ..........................
1..2
ok 1 - use SQL::Translator::Parser::Storable;
ok 2 - use SQL::Translator::Producer::Storable;
ok
t/26sybase.t ............................
1..3
ok 1 - use SQL::Translator::Parser::DBI::Sybase;
ok 2 - use SQL::Translator::Parser::Storable;
ok 3 - use SQL::Translator::Producer::Storable;
ok
t/27sqlite-parser.t .....................
1..25
ok 1 - Parsed two tables
ok 2 - 'Person' table
ok 3 - Six fields in "person" table
ok 4 - First field is "person_id"
ok 5 - Is an autoincrement field
ok 6 - 'Pet' table
ok 7 - 3 constraints on pet
ok 8 - FK constraint
ok 9 - References person table
ok 10 - References person_id field
ok 11 - Parsed one views
ok 12 - Parsed one triggers
ok 13 - Parsed one table
ok 14 - 'Pet' table
ok 15 - 5 constraints on pet
ok 16 - FK constraint
ok 17 - References person table
ok 18 - Constraint name fk_person_id
ok 19 - On delete restrict
ok 20 - On update cascade
ok 21 - References person_id field
ok 22 - On delete set default
ok 23 - On update set null
ok 24 - On update no action
ok 25 - On delete not defined
ok
t/29html.t ..............................
1..5
ok 1 - Parsed table OK
ok 2 - Parsed HTML OK
ok 3 - One table in the SQL produces 3
tags
ok 4 - One 'LinkTable' class
ok 5 - SQLfairy plug is alive and well
ok
t/30sqlt-new-diff-mysql.t ...............
1..9
ok 1 - use SQL::Translator::Diff;
ok 2 - Got a list
ok 3 - Diff as expected
ok 4 - Diff as expected
ok 5 - No differences found
ok 6 - No differences found
ok 7 - Batch alter of constraints work for InnoDB
ok 8 - Alter/drop constraints works with rename table
ok 9 - Quoting can be turned on
ok
t/30sqlt-new-diff-pgsql.t ...............
1..4
ok 1 - use SQL::Translator::Diff;
ok 2 - Diff as expected
ok 3 - Diff as expected
ok 4 - No differences found
ok
t/30sqlt-new-diff-sqlite.t ..............
1..4
ok 1 - use SQL::Translator::Diff;
ok 2 - Diff as expected
ok 3 - Diff as expected
ok 4 - No differences found
ok
t/30sqlt-new-diff.t .....................
1..10
ok 1 - use SQL::Translator::Diff;
ok 2 - Correct differences correct on employee table
ok 3 - Correct differences correct on person table
ok 4 - tables_to_drop right
ok 5 - tables_to_create right
ok 6 - Correct differences correct on employee table
ok 7 - Correct differences correct on person table
ok 8 - No differences
ok 9 - tables_to_drop right
ok 10 - tables_to_create right
ok
t/31dumper.t ............................
1..5
ok 1 - Got dumper script
ok 2 - Script contains correct DSN, db user and password
ok 3 - Found "person" table
ok 4 - Skipped "pet" table
ok 5 - Generated script syntax is OK
ok
t/32schema-lookups.t ....................
1..15
ok 1 - pkey_fields
ok 2 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 3 - fkey_fields
ok 4 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 5 - nonpkey_fields
ok 6 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 7 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 8 - data_fields
ok 9 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 10 - unique_fields
ok 11 - An object of class 'SQL::Translator::Schema::Field' isa 'SQL::Translator::Schema::Field'
ok 12 - Number of unique_constraints is 1
ok 13 - unique_constraints
ok 14 - Number of fkey_constraints is 1
ok 15 - fkey_constraints
ok
t/33tt-table-producer.t .................
1..8
ok 1 - Translate ran
ok 2 - Produced something!
ok 3 - Output looks right
ok 4 - Wrote 2 files.
ok 5 - Wrote person.txt
ok 6 - Wrote pet.txt
ok 7 - person.txt looks right
ok 8 - pet.txt looks right
ok
t/34tt-base.t ........................... skipped: Missing dependency: XML::LibXML
t/35-access-parser.t ....................
ok 1 - Parsed OK
ok 2 - Schema is valid
ok 3 - Right number of tables (24)
ok 4 - tables
ok 5 - Table 'div_aa_annotation'
ok 6 - options are ''
ok 7 - extra
ok 8 - field names are div_aa_annotation_id, div_annotation_type_id, div_allele_assay_id, annotation_value
ok 9 - Field 'div_aa_annotation.div_aa_annotation_id'
ok 10 - is valid
ok 11 - type is 'Long Integer'
ok 12 - size is '4'
ok 13 - default value is UNDEF
ok 14 - can be null
ok 15 - cannot be unique
ok 16 - is not a primary_key
ok 17 - is not a foreign_key
ok 18 - is not an auto_increment
ok 19 - comments
ok 20 - extra
ok 21 - Field 'div_aa_annotation.div_annotation_type_id'
ok 22 - is valid
ok 23 - type is 'Long Integer'
ok 24 - size is '4'
ok 25 - default value is UNDEF
ok 26 - can be null
ok 27 - cannot be unique
ok 28 - is not a primary_key
ok 29 - is not a foreign_key
ok 30 - is not an auto_increment
ok 31 - comments
ok 32 - extra
ok 33 - Field 'div_aa_annotation.div_allele_assay_id'
ok 34 - is valid
ok 35 - type is 'Long Integer'
ok 36 - size is '4'
ok 37 - default value is UNDEF
ok 38 - can be null
ok 39 - cannot be unique
ok 40 - is not a primary_key
ok 41 - is not a foreign_key
ok 42 - is not an auto_increment
ok 43 - comments
ok 44 - extra
ok 45 - Field 'div_aa_annotation.annotation_value'
ok 46 - is valid
ok 47 - type is 'Text'
ok 48 - size is '50'
ok 49 - default value is UNDEF
ok 50 - can be null
ok 51 - cannot be unique
ok 52 - is not a primary_key
ok 53 - is not a foreign_key
ok 54 - is not an auto_increment
ok 55 - comments
ok 56 - extra
ok 57 - Table 'div_allele'
ok 58 - options are ''
ok 59 - extra
ok 60 - field names are div_allele_id, div_obs_unit_sample_id, div_allele_assay_id, allele_num, quality, value
ok 61 - Field 'div_allele.div_allele_id'
ok 62 - is valid
ok 63 - type is 'Long Integer'
ok 64 - size is '4'
ok 65 - default value is UNDEF
ok 66 - can be null
ok 67 - cannot be unique
ok 68 - is not a primary_key
ok 69 - is not a foreign_key
ok 70 - is not an auto_increment
ok 71 - comments
ok 72 - extra
ok 73 - Field 'div_allele.div_obs_unit_sample_id'
ok 74 - is valid
ok 75 - type is 'Long Integer'
ok 76 - size is '4'
ok 77 - default value is UNDEF
ok 78 - can be null
ok 79 - cannot be unique
ok 80 - is not a primary_key
ok 81 - is not a foreign_key
ok 82 - is not an auto_increment
ok 83 - comments
ok 84 - extra
ok 85 - Field 'div_allele.div_allele_assay_id'
ok 86 - is valid
ok 87 - type is 'Long Integer'
ok 88 - size is '4'
ok 89 - default value is UNDEF
ok 90 - can be null
ok 91 - cannot be unique
ok 92 - is not a primary_key
ok 93 - is not a foreign_key
ok 94 - is not an auto_increment
ok 95 - comments
ok 96 - extra
ok 97 - Field 'div_allele.allele_num'
ok 98 - is valid
ok 99 - type is 'Long Integer'
ok 100 - size is '4'
ok 101 - default value is UNDEF
ok 102 - can be null
ok 103 - cannot be unique
ok 104 - is not a primary_key
ok 105 - is not a foreign_key
ok 106 - is not an auto_increment
ok 107 - comments
ok 108 - extra
ok 109 - Field 'div_allele.quality'
ok 110 - is valid
ok 111 - type is 'Long Integer'
ok 112 - size is '4'
ok 113 - default value is UNDEF
ok 114 - can be null
ok 115 - cannot be unique
ok 116 - is not a primary_key
ok 117 - is not a foreign_key
ok 118 - is not an auto_increment
ok 119 - comments
ok 120 - extra
ok 121 - Field 'div_allele.value'
ok 122 - is valid
ok 123 - type is 'Text'
ok 124 - size is '50'
ok 125 - default value is UNDEF
ok 126 - can be null
ok 127 - cannot be unique
ok 128 - is not a primary_key
ok 129 - is not a foreign_key
ok 130 - is not an auto_increment
ok 131 - comments
ok 132 - extra
1..132
ok
t/36-filters.t ..........................
1..16
ok 1 - Filter 1 called
ok 2 - 'Filter 1, arg0 ' isa 'SQL::Translator::Schema'
ok 3 - Filter 1, got no args
ok 4 - Filter 2 called
ok 5 - 'Filter 2, arg0 ' isa 'SQL::Translator::Schema'
ok 6 - Filter 2, got no args
ok 7 - Filter 3 called
ok 8 - 'Filter 3, arg0 ' isa 'SQL::Translator::Schema'
ok 9 - Filter 3, go 2 args
ok 10 - Filter 3, arg1=hello
ok 11 - Filter 3, arg2=world
ok 12 - Filter called with args: SQL::Translator::Schema=HASH(0x895c7d0)
ok 13 - Translate ran
ok 14 - No errors
ok 15 - Produced something!
ok 16 - Output looks right
ok
t/38-filter-names.t .....................
1..4
ok 1 - Translate ran
ok 2 - No errors
ok 3 - Produced something!
ok 4 - Output looks right
ok
t/38-mysql-producer.t ...................
1..73
ok 1 - Produced something!
ok 2 - Scalar output looks right with quoting
ok 3 - Array output looks right with quoting
ok 4 - Output looks right without quoting
ok 5 - Array output looks right without quoting
ok 6 - Output looks right with DROP TABLEs
ok 7 - Array output looks right with DROP TABLEs
ok 8 - Create field works
ok 9 - Alter field works
ok 10 - Add field works
ok 11 - Drop field works
ok 12 - For Mysql >= 4, use boolean type
ok 13 - For Mysql < 4, use enum for boolean type
ok 14 - When no version specified, use enum for boolean type
ok 15 - Use int for NUMBER types of size 4
ok 16 - Use tinyint for NUMBER types of size 1
ok 17 - Use double for NUMBER types of size 3, 2
ok 18 - Use bigint for NUMBER types of size 12
ok 19 - VARCHAR(255) is not substituted with TEXT for Mysql >= 5.0.3
ok 20 - VARCHAR(255) is not substituted with TEXT for Mysql < 5.0.3
ok 21 - VARCHAR(255) is not substituted with TEXT when no version specified
ok 22 - VARCHAR(256) is not substituted with TEXT for Mysql >= 5.0.3
ok 23 - VARCHAR(256) is substituted with TEXT for Mysql < 5.0.3
ok 24 - VARCHAR(256) is substituted with TEXT when no version specified
ok 25 - VARCHAR(65535) is not substituted with TEXT for Mysql >= 5.0.3
ok 26 - VARCHAR(65535) is substituted with TEXT for Mysql < 5.0.3
ok 27 - VARCHAR(65535) is substituted with TEXT when no version specified
ok 28 - VARCHAR(65536) is substituted with TEXT for Mysql >= 5.0.3
ok 29 - VARCHAR(65536) is substituted with TEXT for Mysql < 5.0.3
ok 30 - VARCHAR(65536) is substituted with TEXT when no version specified
ok 31 - correct "CREATE OR REPLACE VIEW" SQL
ok 32 - correct "CREATE VIEW" SQL
ok 33 - Extra attributes
ok 34 - Extra attributes after first reset_extra call
ok 35 - Extra attributes completely removed
ok 36 - Skip length param for type date
ok 37 - Skip length param for type time
ok 38 - Skip length param for type timestamp
ok 39 - Skip length param for type datetime
ok 40 - Skip length param for type year
ok 41 - Alter field works
ok 42 - Add field works
ok 43 - Drop field works
ok 44 - For Mysql >= 4, use boolean type
ok 45 - For Mysql < 4, use enum for boolean type
ok 46 - When no version specified, use enum for boolean type
ok 47 - Use int for NUMBER types of size 4
ok 48 - Use tinyint for NUMBER types of size 1
ok 49 - Use double for NUMBER types of size 3, 2
ok 50 - Use bigint for NUMBER types of size 12
ok 51 - VARCHAR(255) is not substituted with TEXT for Mysql >= 5.0.3
ok 52 - VARCHAR(255) is not substituted with TEXT for Mysql < 5.0.3
ok 53 - VARCHAR(255) is not substituted with TEXT when no version specified
ok 54 - VARCHAR(256) is not substituted with TEXT for Mysql >= 5.0.3
ok 55 - VARCHAR(256) is substituted with TEXT for Mysql < 5.0.3
ok 56 - VARCHAR(256) is substituted with TEXT when no version specified
ok 57 - VARCHAR(65535) is not substituted with TEXT for Mysql >= 5.0.3
ok 58 - VARCHAR(65535) is substituted with TEXT for Mysql < 5.0.3
ok 59 - VARCHAR(65535) is substituted with TEXT when no version specified
ok 60 - VARCHAR(65536) is substituted with TEXT for Mysql >= 5.0.3
ok 61 - VARCHAR(65536) is substituted with TEXT for Mysql < 5.0.3
ok 62 - VARCHAR(65536) is substituted with TEXT when no version specified
ok 63 - correct "CREATE OR REPLACE VIEW" SQL
ok 64 - correct "CREATE VIEW" SQL
ok 65 - Extra attributes
ok 66 - Extra attributes after first reset_extra call
ok 67 - Extra attributes completely removed
ok 68 - Skip length param for type date
ok 69 - Skip length param for type time
ok 70 - Skip length param for type timestamp
ok 71 - Skip length param for type datetime
ok 72 - Skip length param for type year
ok 73 - valid drop primary key
ok
t/39-filter-globals.t ...................
1..3
ok 1 - Translate/yaml reload ran
ok 2 - No errors
ok 3 - Expected final yaml-schema
ok
t/40oracle-parser-dbi.t .................
1..1
ok 1 - use SQL::Translator::Parser::DBI::Oracle;
ok
t/43xml-to-db2.t ........................ skipped: Missing dependency: XML::LibXML
t/44-xml-to-db2-array.t ................. skipped: Missing dependency: XML::LibXML
t/45db2-producer.t ......................
1..4
ok 1 - Create field works
ok 2 - Alter field works
ok 3 - Add field works
ok 4 - Drop field works
ok
t/46xml-to-pg.t ......................... skipped: Missing dependency: XML::LibXML
t/47postgres-producer.t .................
1..57
ok 1
ok 2
ok 3 - Create field works
ok 4 - Create field works
ok 5 - precheck of create_Primary Key constraint
ok 6 - Create Primary Key Constraint works
ok 7 - Alter drop Primary Key constraint works
ok 8 - precheck of create_Foreign Key constraint
ok 9 - Create Foreign Key Constraint works
ok 10 - Alter drop Foreign Key constraint works
ok 11 - precheck of create_Foreign Key constraint
ok 12 - Create un-named Foreign Key Constraint works
ok 13 - Alter drop un-named Foreign Key constraint works
ok 14 - Create Primary Key Constraint works
ok 15 - Alter drop Primary Key constraint works
ok 16 - Create un-named Primary Key Constraint works
ok 17 - Alter drop un-named Foreign Key constraint works
ok 18 - Alter field works
ok 19 - Complex Alter field works
ok 20 - Add field works
ok 21 - Drop field works
ok 22 - Create time field works
ok 23 - Create time field with time zone and size, works
ok 24 - Create time field without time zone but with size, works
ok 25 - Create numeric field works
ok 26 - Create bytea field works
ok 27 - Create real enum field works
ok 28 - DROP DEFAULT
ok 29 - DEFAULT with escaping
ok 30 - DEFAULT unescaped if scalarref
ok 31 - DROP NOT NULL
ok 32 - timestamp with precision
ok 33 - time with precision
ok 34 - time with precision
ok 35 - time with precision
ok 36 - time with precision
ok 37 - Create real enum field works
ok 38 - default str
ok 39 - default null
ok 40 - default null from special cased string
ok 41 - unquoted default from scalar ref
ok 42 - correct "CREATE OR REPLACE VIEW" SQL
ok 43 - correct "CREATE OR REPLACE VIEW" SQL 2
ok 44 - index created
ok 45 - index created w/ quotes
ok 46 - index created
ok 47 - index created w/ quotes
ok 48 - index created
ok 49 - index created w/ quotes
ok 50 - constraint created
ok 51 - constraint created w/ quotes
ok 52 - constraint created
ok 53 - constraint created w/ quotes
ok 54 - constraint created
ok 55 - constraint created w/ quotes
ok 56 - My DROP VIEW statement for 8.1 is correct
ok 57 - My DROP VIEW statement for 9.1 is correct
ok
t/48xml-to-sqlite.t ..................... skipped: Missing dependency: XML::LibXML
t/49xml-to-pg-samefield.t ............... skipped: Missing dependency: XML::LibXML
t/50-sqlserver-parser.t .................
1..46
ok 1 - File exists
ok 2 - Data
ok 3 - Parse
ok 4 - 'Schema' isa 'SQL::Translator::Schema'
ok 5 - Schema is valid
ok 6 - Eight tables
ok 7 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 8 - Name = 'jdbc_function_escapes'
ok 9 - Two fields
ok 10 - First field name is 'escape_name'
ok 11 - First field is 'varchar'
ok 12 - First field size is '40'
ok 13 - First field cannot be null
ok 14 - Second field name is 'map_string'
ok 15 - Second field is 'varchar'
ok 16 - Second field size is '40'
ok 17 - Second field cannot be null
ok 18 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 19 - Name = 'spt_jtext'
ok 20 - Two fields
ok 21 - First field name is 'mdinfo'
ok 22 - First field is 'varchar'
ok 23 - First field size is '30'
ok 24 - First field cannot be null
ok 25 - Second field name is 'value'
ok 26 - Second field is 'text'
ok 27 - Second field size is '0'
ok 28 - Second field cannot be null
ok 29 - One constraint
ok 30 - Constraint is UNIQUE
ok 31 - On "mdinfo"
ok 32 - 'Table' isa 'SQL::Translator::Schema::Table'
ok 33 - Name = 'spt_mda'
ok 34 - Seven fields
ok 35 - First field name is 'mdinfo'
ok 36 - First field is 'varchar'
ok 37 - First field size is '30'
ok 38 - First field cannot be null
ok 39 - One constraint
ok 40 - Constraint is UNIQUE
ok 41 - On "mdinfo,mdaver_end,srvver_end"
ok 42 - One view
ok 43 - Detected view vs_xdp_data
ok 44 - Ten procedures
ok 45 - Detected procedure Tx_B_Get_Vlan
ok 46 - Detected function [dbo].inet_ntoa
ok
t/51-xml-to-oracle.t .................... skipped: Missing dependency: XML::LibXML
t/51-xml-to-oracle_quoted.t ............. skipped: Missing dependency: XML::LibXML
t/52-oracle-options.t ...................
1..3
ok 1 - Translation successfull
ok 2 - Table options
ok 3 - Index options
ok
t/53-oracle-delay-constraints.t .........
1..2
ok 1 - Translation successfull
ok 2 - constraints delayed
ok
t/53-oracle-delay-constraints_quoted.t ..
1..2
ok 1 - Translation successfull
ok 2 - constraints delayed
ok
t/54-oracle-alter-field.t ...............
1..3
ok 1 - Diff generated.
ok 2 - Alter table generated.
ok 3 - Alter table generated.
ok
t/55-oracle-add-field.t .................
1..2
ok 1 - Diff generated.
ok 2 - Alter table generated.
ok
t/55-oracle-producer.t ..................
ok 1 - correct "CREATE CONSTRAINT" SQL
1..1
ok
t/56-sqlite-producer.t ..................
ok 1 - correct "CREATE TEMPORARY VIEW" SQL
ok 2 - correct "CREATE VIEW" SQL
ok 3 - correct "FOREIGN KEY"
ok 4 - correctly unquoted DEFAULT
ok 5 - correctly translated bytea to blob
ok 6 - correctly unquoted DEFAULT
ok 7 - correctly quoted DEFAULT
ok 8 - correctly unquoted excempted DEFAULTs
1..8
ok
t/57-class-dbi.t ........................
1..2
ok 1 - correct "CREATE TEMPORARY VIEW" SQL
ok 2 - correct "CREATE VIEW" SQL
ok
t/60roundtrip.t .........................
ok 1 # skip Need XML::LibXML 1.69 for XML roundtrip test
ok 2 - use SQL::Translator::Producer::YAML;
ok 3 - use SQL::Translator::Parser::YAML;
ok 4 - Received some meaningful output from the first YAML production
ok 5 - 'First YAML parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 6 - Schema tables generally match afer YAML parser trip
ok 7 - Received some meaningful output from the second YAML production
ok 8 - YAML SQL roundtrip successful - SQL statements match
ok 9 - Round trip for YAML did not throw an exception
ok 10 - use SQL::Translator::Producer::SQLite;
ok 11 - use SQL::Translator::Parser::SQLite;
ok 12 - Got proper parser instance
ok 13 - Received some meaningful output from the first SQLite production
ok 14 - 'First SQLite parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 15 - Schema tables generally match afer SQLite parser trip
ok 16 - Received some meaningful output from the second SQLite production
ok 17 - SQLite SQL roundtrip successful - SQL statements match
ok 18 - Round trip for SQLite did not throw an exception
ok 19 - use SQL::Translator::Producer::MySQL;
ok 20 - use SQL::Translator::Parser::MySQL;
ok 21 - Got proper parser instance
ok 22 - Received some meaningful output from the first MySQL production
ok 23 - 'First MySQL parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 24 - Schema tables generally match afer MySQL parser trip
ok 25 - Received some meaningful output from the second MySQL production
ok 26 - MySQL SQL roundtrip successful - SQL statements match
ok 27 - Round trip for MySQL did not throw an exception
ok 28 - use SQL::Translator::Producer::MySQL;
ok 29 - use SQL::Translator::Parser::MySQL;
ok 30 - Got proper parser instance
ok 31 - Received some meaningful output from the first MySQL 5.0 production
ok 32 - 'First MySQL 5.0 parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 33 - Schema tables generally match afer MySQL 5.0 parser trip
ok 34 - Received some meaningful output from the second MySQL 5.0 production
ok 35 - MySQL 5.0 SQL roundtrip successful - SQL statements match
ok 36 - Round trip for MySQL 5.0 did not throw an exception
ok 37 - use SQL::Translator::Producer::MySQL;
ok 38 - use SQL::Translator::Parser::MySQL;
ok 39 - Got proper parser instance
ok 40 - Received some meaningful output from the first MySQL 5.1 production
ok 41 - 'First MySQL 5.1 parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 42 - Schema tables generally match afer MySQL 5.1 parser trip
ok 43 - Received some meaningful output from the second MySQL 5.1 production
ok 44 - MySQL 5.1 SQL roundtrip successful - SQL statements match
ok 45 - Round trip for MySQL 5.1 did not throw an exception
ok 46 - use SQL::Translator::Producer::PostgreSQL;
ok 47 - use SQL::Translator::Parser::PostgreSQL;
ok 48 - Got proper parser instance
ok 49 - Received some meaningful output from the first PostgreSQL production
ok 50 - 'First PostgreSQL parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 51 - Schema tables generally match afer PostgreSQL parser trip
ok 52 - Received some meaningful output from the second PostgreSQL production
ok 53 - PostgreSQL SQL roundtrip successful - SQL statements match
ok 54 - Round trip for PostgreSQL did not throw an exception
ok 55 - use SQL::Translator::Producer::SQLServer;
ok 56 - use SQL::Translator::Parser::SQLServer;
ok 57 - Got proper parser instance
ok 58 - Received some meaningful output from the first SQLServer production
ok 59 - 'First SQLServer parser pass produced a schema:' isa 'SQL::Translator::Schema'
ok 60 - Schema tables generally match afer SQLServer parser trip
ok 61 - Received some meaningful output from the second SQLServer production
ok 62 - SQLServer SQL roundtrip successful - SQL statements match
ok 63 - Round trip for SQLServer did not throw an exception
ok 64 - use SQL::Translator::Producer::Oracle;
ok 65 - use SQL::Translator::Parser::Oracle;
ok 66 - Got proper parser instance
ok 67 - Received some meaningful output from the first Oracle production # TODO Needs volunteers
not ok 68 - 'First Oracle parser pass produced a schema:' isa 'SQL::Translator::Schema' # TODO Needs volunteers
# Failed (TODO) test ''First Oracle parser pass produced a schema:' isa 'SQL::Translator::Schema''
# at t/60roundtrip.t line 181.
# 'First Oracle parser pass produced a schema:' isn't defined
# translate: Error with parser 'SQL::Translator::Parser::Oracle': Parse failed.
# Unparseable DDL:
# ============================================================================
# 1: DROP TABLE "Basic" CASCADE CONSTRAINTS;
# 2:
# 3: DROP SEQUENCE "sq_Basic_id";
# 4:
# 5: CREATE SEQUENCE "sq_Basic_id";
# 6:
# 7: CREATE TABLE "Basic" (
# 8: "id" number(10) NOT NULL,
# 9: "title" varchar2(100) DEFAULT 'hello' NOT NULL,
# 10: "description" clob DEFAULT '',
# 11: "email" varchar2(500),
# 12: "explicitnulldef" varchar2(255),
# 13: "explicitemptystring" varchar2(255) DEFAULT '',
# 14: "emptytagdef" varchar2(255) DEFAULT '',
# 15: "another_id" number(10) DEFAULT '2',
# 16: "timest" date,
# 17: "numeric" number(9,1),
# 18: "decimal" number(10,2),
# 19: PRIMARY KEY ("id"),
# 20: CONSTRAINT "u_Basic_emailuniqueindex" UNIQUE ("email")
# 21: )
# 22: ENGINE InnoDB;
# 23:
# 24: DROP TABLE "Another" CASCADE CONSTRAINTS;
# 25:
# 26: DROP SEQUENCE "sq_Another_id";
# 27:
# 28: CREATE SEQUENCE "sq_Another_id";
# 29:
# 30: CREATE TABLE "Another" (
# 31: "id" number(10) NOT NULL,
# 32: PRIMARY KEY ("id")
# 33: )
# 34: ENGINE InnoDB;
# 35:
# 36: DROP VIEW "email_list";
# 37:
# 38: CREATE VIEW "email_list" AS
# 39: SELECT email FROM Basic WHERE (email IS NOT NULL);
# 40:
# 41: ALTER TABLE "Basic" ADD CONSTRAINT "Basic_another_id_fk" FOREIGN KEY ("another_id") REFERENCES "Another" ("id");
# 42:
# 43: CREATE INDEX "titleindex" on "Basic" ("title");
# 44:
# 45: CREATE OR REPLACE TRIGGER "ai_Basic_id"
# 46: BEFORE INSERT ON "Basic"
# 47: FOR EACH ROW WHEN (
# 48: new."id" IS NULL OR new."id" = 0
# 49: )
# 50: BEGIN
# 51: SELECT "sq_Basic_id".nextval
# 52: INTO :new."id"
# 53: FROM dual;
# 54: END;
# 55: /
# 56:
# 57: CREATE OR REPLACE TRIGGER "ts_Basic_timest"
# 58: BEFORE INSERT OR UPDATE ON "Basic"
# 59: FOR EACH ROW WHEN (new."timest" IS NULL)
# 60: BEGIN
# 61: SELECT sysdate INTO :new."timest" FROM dual;
# 62: END;
# 63: /
# 64:
# 65: CREATE OR REPLACE TRIGGER "ai_Another_id"
# 66: BEFORE INSERT ON "Another"
# 67: FOR EACH ROW WHEN (
# 68: new."id" IS NULL OR new."id" = 0
# 69: )
# 70: BEGIN
# 71: SELECT "sq_Another_id".nextval
# 72: INTO :new."id"
# 73: FROM dual;
# 74: END;
# 75: /
# ============================================================================
ok 69 - Round trip for Oracle did not throw an exception # TODO Needs volunteers
ok 70 - use SQL::Translator::Producer::Sybase;
ok 71 - use SQL::Translator::Parser::Sybase;
ok 72 - Got proper parser instance
ok 73 - Received some meaningful output from the first Sybase production # TODO Needs volunteers
not ok 74 - 'First Sybase parser pass produced a schema:' isa 'SQL::Translator::Schema' # TODO Needs volunteers
# Failed (TODO) test ''First Sybase parser pass produced a schema:' isa 'SQL::Translator::Schema''
# at t/60roundtrip.t line 181.
# 'First Sybase parser pass produced a schema:' isn't defined
# translate: Error with parser 'SQL::Translator::Parser::Sybase': no results
# Unparseable DDL:
# ============================================================================
# 1: DROP TABLE Basic;
# 2: CREATE TABLE Basic (
# 3: id IDENTITY int(10) NOT NULL,
# 4: title varchar(100) DEFAULT 'hello' NOT NULL,
# 5: description varchar(255) DEFAULT '' NULL,
# 6: email varchar(500) NULL,
# 7: explicitnulldef varchar(255) NULL,
# 8: explicitemptystring varchar(255) DEFAULT '' NULL,
# 9: emptytagdef varchar(255) DEFAULT '' NULL,
# 10: another_id numeric(10) DEFAULT '2' NULL,
# 11: timest datetime NULL,
# 12: numeric numeric(9,1) NULL,
# 13: decimal decimal(10,2) NULL,
# 14: CONSTRAINT pk_Basic PRIMARY KEY (id),
# 15: CONSTRAINT emailuniqueindex UNIQUE (email),
# 16: CONSTRAINT Basic FOREIGN KEY (another_id) REFERENCES Another (id)
# 17: );
# 18:
# 19: CREATE INDEX titleindex ON Basic (title);
# 20:
# 21: DROP TABLE Another;
# 22: CREATE TABLE Another (
# 23: id IDENTITY int(10) NOT NULL,
# 24: CONSTRAINT pk_Another PRIMARY KEY (id)
# 25: );
# 26:
# 27: SELECT email FROM Basic WHERE (email IS NOT NULL)select foo from bar
# ============================================================================
ok 75 - Round trip for Sybase did not throw an exception # TODO Needs volunteers
ok 76 - use SQL::Translator::Producer::DB2;
ok 77 - use SQL::Translator::Parser::DB2;
ok 78 - Got proper parser instance
ok 79 - Received some meaningful output from the first DB2 production # TODO Needs volunteers
not ok 80 - 'First DB2 parser pass produced a schema:' isa 'SQL::Translator::Schema' # TODO Needs volunteers
# Failed (TODO) test ''First DB2 parser pass produced a schema:' isa 'SQL::Translator::Schema''
# at t/60roundtrip.t line 181.
# 'First DB2 parser pass produced a schema:' isn't defined
# translate: Error with parser 'SQL::Translator::Parser::DB2': no results
# Unparseable DDL:
# ============================================================================
# 1: DROP TABLE Basic;
# 2:
# 3: CREATE TABLE Basic (
# 4: id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL,
# 5: title VARCHAR(100) NOT NULL DEFAULT 'hello',
# 6: description VARCHAR(0) DEFAULT '',
# 7: email VARCHAR(500),
# 8: explicitnulldef VARCHAR(255),
# 9: explicitemptystring VARCHAR(255) DEFAULT '',
# 10: emptytagdef VARCHAR(255) DEFAULT '',
# 11: another_id INTEGER DEFAULT 2,
# 12: timest TIMESTAMP,
# 13: numeric NUMERIC(9,1),
# 14: decimal DECIMAL(10,2),
# 15: PRIMARY KEY (id),
# 16: CONSTRAINT emailuniqueindex UNIQUE (email)
# 17: );
# 18:
# 19: DROP TABLE Another;
# 20:
# 21: CREATE TABLE Another (
# 22: id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL,
# 23: PRIMARY KEY (id)
# 24: );
# 25:
# 26: ALTER TABLE Basic ADD CONSTRAINT Basic FOREIGN KEY (another_id) REFERENCES Another(id);
# 27:
# 28: CREATE INDEX titleindex ON Basic ( title );
# 29:
# 30: CREATE VIEW email_list AS
# 31: SELECT email FROM Basic WHERE (email IS NOT NULL);
# 32:
# 33: CREATE TRIGGER foo_trigger after insert ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified=timestamp();
# 34:
# 35: CREATE TRIGGER bar_trigger before insert, update ON Basic REFERENCING OLD AS oldrow NEW AS newrow FOR EACH ROW MODE DB2SQL update modified2=timestamp();
# ============================================================================
ok 81 - Round trip for DB2 did not throw an exception # TODO Needs volunteers
1..81
ok
t/61translator_agnostic.t ............... skipped: Missing dependency: XML::LibXML
t/62roundtrip_datacheck.t ............... skipped: Missing dependency: XML::LibXML
t/63-spacial-pgsql.t ....................
1..10
ok 1 - Create geometry field works
ok 2 - Add geometry column works
ok 3 - Add geometry constraints works
ok 4 - Alter field geometry to non geometry works
ok 5 - Alter field non geometry to geometry works
ok 6 - Add geometry field works
ok 7 - Drop geometry field works
ok 8 - Create table with geometry works.
ok 9 - Rename table with geometry works.
ok 10 - Drop table with geometry works.
ok
t/64xml-to-mysql.t ...................... skipped: Missing dependency: XML::LibXML
t/66-postgres-dbi-parser.t .............. skipped: Set $ENV{DBICTEST_PG_DSN}, _USER and _PASS to run this test
t/70sqlt-diff_script.t ..................
1..16
ok 1 - Detected altered 'person_id' field
ok 2 - Detected altered 'iq' field
ok 3 - Detected altered 'name' field
ok 4 - Detected altered 'age' field
ok 5 - Detected missing rock star field
ok 6 - Detected missing unique constraint
ok 7 - Detected unique index with different name
ok 8 - Detected drop foreign key
ok 9 - Detected add constraint
ok 10 - Primary key looks different when it shouldn't
ok 11 - Quoted table name
ok 12 - Quoted 'person_id' field
ok 13 - Quoted 'iq' field
ok 14 - Quoted 'name' field
ok 15 - Quoted 'age' field
ok 16 - Properly detected no differences
ok
t/70sqlt-diff_script_old.t ..............
1..21
ok 1 - Found sqlt-diff script
ok 2 - Detected 'untested' comment
ok 3 - Detected altered 'iq' field
ok 4 - Detected missing rock star field
ok 5 - Properly detected no differences
ok 6 - Did not detect 'untested' comment
ok 7 - Detected altered 'person_id' field
ok 8 - Detected altered 'iq' field
ok 9 - Detected altered 'name' field
ok 10 - Detected altered 'age' field
ok 11 - Detected missing rock star field
ok 12 - Detected missing unique constraint
ok 13 - Detected unique index with different name
ok 14 - Detected altered table option
ok 15 - Detected drop foreign key
ok 16 - Detected add constraint
ok 17 - Primary key looks different when it shouldn't
ok 18 - Properly detected no differences
ok 19 - Did not detect 'untested' comment
ok 20 - Detected drop foreign key
ok 21 - Detected add constraint
ok
t/71-generator-sql_server.t .............
ok 1 - simple field is generated correctly
ok 2 - sized field is generated correctly
1..2
ok
t/72-sqlite-add-drop-fields.t ...........
1..4
ok 1
ok 2
ok 3
ok 4 - Diff as expected
ok
t/73-sqlite-respects-quote.t ............
1..3
ok 1 - DDL with default quoting
ok 2 - mix and match quotes is asinine
ok 3 - DDL with quoting
ok
t/74-filename-arrayref.t ................
1..2
ok 1 - filename takes a Str
ok 2 - filename takes an ArrayRef
ok
t/mysql-sqlite-translate.t ..............
ok 1 - use SQL::Translator;
ok 2 - use SQL::Translator::Parser::MySQL;
ok 3 - use SQL::Translator::Producer::SQLite;
ok 4
1..4
ok
t/postgresql-rename-table-and-field.t ... skipped: Can't create test database: could not find initdb, please set appropriate PATH or POSTGRES_HOME
t/sqlite-rename-field.t .................
ok 1 - dbi connect
ok 2 - create table
ok 3 - insert data
ok 4 - one row inserted
ok 5 - -- Convert schema '' to '':;
ok 6 - BEGIN;
ok 7 - CREATE TEMPORARY TABLE Foo_temp_alter ( foo INTEGER PRIMARY KEY NOT NULL, biff VARCHAR(10));
ok 8 - INSERT INTO Foo_temp_alter( foo, biff) SELECT foo, bar FROM Foo;
ok 9 - DROP TABLE Foo;
ok 10 - CREATE TABLE Foo ( foo INTEGER PRIMARY KEY NOT NULL, biff VARCHAR(10));
ok 11 - INSERT INTO Foo SELECT foo, biff FROM Foo_temp_alter;
ok 12 - DROP TABLE Foo_temp_alter;
ok 13 - COMMIT;
ok 14 - query DB for data
ok 15 - Got 1 row
ok 16 - col biff has value buzz
1..16
ok
Test Summary Report
-------------------
t/09sqlt-diagram.t (Wstat: 512 Tests: 3 Failed: 2)
Failed tests: 2-3
Non-zero exit status: 2
t/60roundtrip.t (Wstat: 0 Tests: 81 Failed: 0)
TODO passed: 67, 69, 73, 75, 79, 81
Files=72, Tests=1639, 88 wallclock secs ( 0.41 usr 0.02 sys + 62.80 cusr 2.39 csys = 65.62 CPU)
Result: FAIL
Failed 1/72 test programs. 2/1639 subtests failed.
make: *** [test_dynamic] Error 255
ILMARI/SQL-Translator-0.11020.tar.gz
make test TEST_VERBOSE=1 -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports ILMARI/SQL-Translator-0.11020.tar.gz
Running test for module 'Plack'
Running make for M/MI/MIYAGAWA/Plack-1.0033.tar.gz
Checksum for /home/fly1400/var/cpan/sources/authors/id/M/MI/MIYAGAWA/Plack-1.0033.tar.gz ok
Plack-1.0033/
Plack-1.0033/benchmarks/
Plack-1.0033/Changes
Plack-1.0033/cpanfile
Plack-1.0033/dist.ini
Plack-1.0033/eg/
Plack-1.0033/lib/
Plack-1.0033/LICENSE
Plack-1.0033/Makefile.PL
Plack-1.0033/MANIFEST
Plack-1.0033/META.json
Plack-1.0033/META.yml
Plack-1.0033/README
Plack-1.0033/script/
Plack-1.0033/share/
Plack-1.0033/t/
Plack-1.0033/xt/
Plack-1.0033/xt/author-downstream.t
Plack-1.0033/t/FCGIUtils.pm
Plack-1.0033/t/HTTP-Message-PSGI/
Plack-1.0033/t/HTTP-Server-PSGI/
Plack-1.0033/t/Plack-Builder/
Plack-1.0033/t/Plack-Handler/
Plack-1.0033/t/Plack-HTTPParser-PP/
Plack-1.0033/t/Plack-Loader/
Plack-1.0033/t/Plack-Middleware/
Plack-1.0033/t/Plack-MIME/
Plack-1.0033/t/Plack-Request/
Plack-1.0033/t/Plack-Response/
Plack-1.0033/t/Plack-Runner/
Plack-1.0033/t/Plack-TempBuffer/
Plack-1.0033/t/Plack-Test/
Plack-1.0033/t/Plack-Util/
Plack-1.0033/t/release-pod-syntax.t
Plack-1.0033/t/test.txt
Plack-1.0033/t/Plack-Util/bad.psgi
Plack-1.0033/t/Plack-Util/bad2.psgi
Plack-1.0033/t/Plack-Util/bin/
Plack-1.0033/t/Plack-Util/can.t
Plack-1.0033/t/Plack-Util/error.psgi
Plack-1.0033/t/Plack-Util/foreach.t
Plack-1.0033/t/Plack-Util/headers.t
Plack-1.0033/t/Plack-Util/headers_obj.t
Plack-1.0033/t/Plack-Util/Hello.pm
Plack-1.0033/t/Plack-Util/hello.psgi
Plack-1.0033/t/Plack-Util/inc/
Plack-1.0033/t/Plack-Util/inline_object.t
Plack-1.0033/t/Plack-Util/io_with_path.t
Plack-1.0033/t/Plack-Util/is_real_fh.t
Plack-1.0033/t/Plack-Util/load.t
Plack-1.0033/t/Plack-Util/response_cb.t
Plack-1.0033/t/Plack-Util/inc/hello.psgi
Plack-1.0033/t/Plack-Util/bin/findbin.psgi
Plack-1.0033/t/Plack-Test/2args.t
Plack-1.0033/t/Plack-Test/cookie.t
Plack-1.0033/t/Plack-Test/hello.t
Plack-1.0033/t/Plack-Test/hello_server.t
Plack-1.0033/t/Plack-Test/suite.t
Plack-1.0033/t/Plack-TempBuffer/print.t
Plack-1.0033/t/Plack-Runner/options.t
Plack-1.0033/t/Plack-Runner/path.t
Plack-1.0033/t/Plack-Response/body.t
Plack-1.0033/t/Plack-Response/compatible.t
Plack-1.0033/t/Plack-Response/cookie.t
Plack-1.0033/t/Plack-Response/new.t
Plack-1.0033/t/Plack-Response/redirect.t
Plack-1.0033/t/Plack-Response/response.t
Plack-1.0033/t/Plack-Response/to_app.t
Plack-1.0033/t/Plack-Request/base.t
Plack-1.0033/t/Plack-Request/body.t
Plack-1.0033/t/Plack-Request/content-on-get.t
Plack-1.0033/t/Plack-Request/content.t
Plack-1.0033/t/Plack-Request/cookie.t
Plack-1.0033/t/Plack-Request/double_port.t
Plack-1.0033/t/Plack-Request/foo1.txt
Plack-1.0033/t/Plack-Request/foo2.txt
Plack-1.0033/t/Plack-Request/hostname.t
Plack-1.0033/t/Plack-Request/many_upload.t
Plack-1.0033/t/Plack-Request/multi_read.t
Plack-1.0033/t/Plack-Request/new.t
Plack-1.0033/t/Plack-Request/parameters.t
Plack-1.0033/t/Plack-Request/params.t
Plack-1.0033/t/Plack-Request/path_info.t
Plack-1.0033/t/Plack-Request/path_info_escaped.t
Plack-1.0033/t/Plack-Request/query_string.t
Plack-1.0033/t/Plack-Request/readbody.t
Plack-1.0033/t/Plack-Request/request_uri.t
Plack-1.0033/t/Plack-Request/upload-basename.t
Plack-1.0033/t/Plack-Request/upload-large.t
Plack-1.0033/t/Plack-Request/upload.t
Plack-1.0033/t/Plack-Request/uri.t
Plack-1.0033/t/Plack-Request/uri_utf8.t
Plack-1.0033/t/Plack-MIME/add_type.t
Plack-1.0033/t/Plack-MIME/basic.t
Plack-1.0033/t/Plack-MIME/fallback.t
Plack-1.0033/t/Plack-Middleware/access_log.t
Plack-1.0033/t/Plack-Middleware/access_log_timed.t
Plack-1.0033/t/Plack-Middleware/access_log_value_zero.t
Plack-1.0033/t/Plack-Middleware/auth_basic.t
Plack-1.0033/t/Plack-Middleware/auth_basic_env.t
Plack-1.0033/t/Plack-Middleware/auth_basic_simple.t
Plack-1.0033/t/Plack-Middleware/bufferedstreaming.t
Plack-1.0033/t/Plack-Middleware/cascade/
Plack-1.0033/t/Plack-Middleware/cgi-bin/
Plack-1.0033/t/Plack-Middleware/cgibin.t
Plack-1.0033/t/Plack-Middleware/cgibin_exec.t
Plack-1.0033/t/Plack-Middleware/chunked.t
Plack-1.0033/t/Plack-Middleware/component-leak.t
Plack-1.0033/t/Plack-Middleware/component.t
Plack-1.0033/t/Plack-Middleware/conditional.t
Plack-1.0033/t/Plack-Middleware/conditional_new.t
Plack-1.0033/t/Plack-Middleware/conditionalget.t
Plack-1.0033/t/Plack-Middleware/conditionalget_writer.t
Plack-1.0033/t/Plack-Middleware/content_length.t
Plack-1.0033/t/Plack-Middleware/directory.t
Plack-1.0033/t/Plack-Middleware/error_document.t
Plack-1.0033/t/Plack-Middleware/error_document_streaming_app.t
Plack-1.0033/t/Plack-Middleware/errors/
Plack-1.0033/t/Plack-Middleware/file.t
Plack-1.0033/t/Plack-Middleware/head.t
Plack-1.0033/t/Plack-Middleware/head_streaming.t
Plack-1.0033/t/Plack-Middleware/htpasswd
Plack-1.0033/t/Plack-Middleware/httpexceptions.t
Plack-1.0033/t/Plack-Middleware/httpexceptions_streaming.t
Plack-1.0033/t/Plack-Middleware/iis6_script_name_fix.t
Plack-1.0033/t/Plack-Middleware/iis7_keep_alive_fix.t
Plack-1.0033/t/Plack-Middleware/jsonp.t
Plack-1.0033/t/Plack-Middleware/lint.t
Plack-1.0033/t/Plack-Middleware/lint_env.t
Plack-1.0033/t/Plack-Middleware/lint_utf8_false_alarm.t
Plack-1.0033/t/Plack-Middleware/log4perl.t
Plack-1.0033/t/Plack-Middleware/log_dispatch.t
Plack-1.0033/t/Plack-Middleware/order.t
Plack-1.0033/t/Plack-Middleware/prefix.t
Plack-1.0033/t/Plack-Middleware/psgibin.t
Plack-1.0033/t/Plack-Middleware/rearrange_headers.t
Plack-1.0033/t/Plack-Middleware/recursive/
Plack-1.0033/t/Plack-Middleware/refresh-init.t
Plack-1.0033/t/Plack-Middleware/runtime.t
Plack-1.0033/t/Plack-Middleware/simple_content_filter.t
Plack-1.0033/t/Plack-Middleware/simple_logger.t
Plack-1.0033/t/Plack-Middleware/stacktrace/
Plack-1.0033/t/Plack-Middleware/static.foo
Plack-1.0033/t/Plack-Middleware/static.t
Plack-1.0033/t/Plack-Middleware/static.txt
Plack-1.0033/t/Plack-Middleware/static_env.t
Plack-1.0033/t/Plack-Middleware/urlmap.t
Plack-1.0033/t/Plack-Middleware/urlmap_builder.t
Plack-1.0033/t/Plack-Middleware/urlmap_env.t
Plack-1.0033/t/Plack-Middleware/urlmap_ports.t
Plack-1.0033/t/Plack-Middleware/wrapcgi.t
Plack-1.0033/t/Plack-Middleware/wrapcgi_exec.t
Plack-1.0033/t/Plack-Middleware/xframework.t
Plack-1.0033/t/Plack-Middleware/xsendfile.t
Plack-1.0033/t/Plack-Middleware/stacktrace/basic.t
Plack-1.0033/t/Plack-Middleware/stacktrace/force.t
Plack-1.0033/t/Plack-Middleware/stacktrace/multiple_exceptions.t
Plack-1.0033/t/Plack-Middleware/stacktrace/sigdie.t
Plack-1.0033/t/Plack-Middleware/stacktrace/streaming.t
Plack-1.0033/t/Plack-Middleware/stacktrace/utf8.t
Plack-1.0033/t/Plack-Middleware/recursive/base.t
Plack-1.0033/t/Plack-Middleware/recursive/streaming.t
Plack-1.0033/t/Plack-Middleware/recursive/throw.t
Plack-1.0033/t/Plack-Middleware/recursive/throw_streaming.t
Plack-1.0033/t/Plack-Middleware/errors/404.html
Plack-1.0033/t/Plack-Middleware/errors/500.html
Plack-1.0033/t/Plack-Middleware/cgi-bin/cgi_dir.cgi
Plack-1.0033/t/Plack-Middleware/cgi-bin/hello.cgi
Plack-1.0033/t/Plack-Middleware/cgi-bin/hello.py
Plack-1.0033/t/Plack-Middleware/cgi-bin/hello2.cgi
Plack-1.0033/t/Plack-Middleware/cgi-bin/hello3.cgi
Plack-1.0033/t/Plack-Middleware/cgi-bin/utf8.cgi
Plack-1.0033/t/Plack-Middleware/cascade/basic.t
Plack-1.0033/t/Plack-Middleware/cascade/streaming.t
Plack-1.0033/t/Plack-Loader/auto.t
Plack-1.0033/t/Plack-Loader/auto_fallback.t
Plack-1.0033/t/Plack-Loader/delayed.t
Plack-1.0033/t/Plack-Loader/restarter.t
Plack-1.0033/t/Plack-Loader/restarter_valid.t
Plack-1.0033/t/Plack-Loader/shotgun.t
Plack-1.0033/t/Plack-HTTPParser-PP/simple.t
Plack-1.0033/t/Plack-Handler/apache1.t
Plack-1.0033/t/Plack-Handler/apache2-registry.t
Plack-1.0033/t/Plack-Handler/apache2.t
Plack-1.0033/t/Plack-Handler/cgi.t
Plack-1.0033/t/Plack-Handler/fcgi.t
Plack-1.0033/t/Plack-Handler/output_encoding.t
Plack-1.0033/t/Plack-Handler/standalone.t
Plack-1.0033/t/Plack-Handler/try_mangle.pl
Plack-1.0033/t/Plack-Builder/builder.t
Plack-1.0033/t/Plack-Builder/mount.t
Plack-1.0033/t/Plack-Builder/oo_interface.t
Plack-1.0033/t/HTTP-Server-PSGI/harakiri.t
Plack-1.0033/t/HTTP-Server-PSGI/post.t
Plack-1.0033/t/HTTP-Message-PSGI/content_length.t
Plack-1.0033/t/HTTP-Message-PSGI/empty_streamed_response.t
Plack-1.0033/t/HTTP-Message-PSGI/host.t
Plack-1.0033/t/HTTP-Message-PSGI/path_info.t
Plack-1.0033/t/HTTP-Message-PSGI/unknown_response.t
Plack-1.0033/t/HTTP-Message-PSGI/utf8_req.t
Plack-1.0033/share/#foo
Plack-1.0033/share/baybridge.jpg
Plack-1.0033/share/face.jpg
Plack-1.0033/script/plackup
Plack-1.0033/lib/HTTP/
Plack-1.0033/lib/Plack/
Plack-1.0033/lib/Plack.pm
Plack-1.0033/lib/Plack/App/
Plack-1.0033/lib/Plack/Builder.pm
Plack-1.0033/lib/Plack/Component.pm
Plack-1.0033/lib/Plack/Handler/
Plack-1.0033/lib/Plack/Handler.pm
Plack-1.0033/lib/Plack/HTTPParser/
Plack-1.0033/lib/Plack/HTTPParser.pm
Plack-1.0033/lib/Plack/Loader/
Plack-1.0033/lib/Plack/Loader.pm
Plack-1.0033/lib/Plack/LWPish.pm
Plack-1.0033/lib/Plack/Middleware/
Plack-1.0033/lib/Plack/Middleware.pm
Plack-1.0033/lib/Plack/MIME.pm
Plack-1.0033/lib/Plack/Request/
Plack-1.0033/lib/Plack/Request.pm
Plack-1.0033/lib/Plack/Response.pm
Plack-1.0033/lib/Plack/Runner.pm
Plack-1.0033/lib/Plack/TempBuffer.pm
Plack-1.0033/lib/Plack/Test/
Plack-1.0033/lib/Plack/Test.pm
Plack-1.0033/lib/Plack/Util/
Plack-1.0033/lib/Plack/Util.pm
Plack-1.0033/lib/Plack/Util/Accessor.pm
Plack-1.0033/lib/Plack/Test/MockHTTP.pm
Plack-1.0033/lib/Plack/Test/Server.pm
Plack-1.0033/lib/Plack/Test/Suite.pm
Plack-1.0033/lib/Plack/Request/Upload.pm
Plack-1.0033/lib/Plack/Middleware/AccessLog/
Plack-1.0033/lib/Plack/Middleware/AccessLog.pm
Plack-1.0033/lib/Plack/Middleware/Auth/
Plack-1.0033/lib/Plack/Middleware/BufferedStreaming.pm
Plack-1.0033/lib/Plack/Middleware/Chunked.pm
Plack-1.0033/lib/Plack/Middleware/Conditional.pm
Plack-1.0033/lib/Plack/Middleware/ConditionalGET.pm
Plack-1.0033/lib/Plack/Middleware/ContentLength.pm
Plack-1.0033/lib/Plack/Middleware/ContentMD5.pm
Plack-1.0033/lib/Plack/Middleware/ErrorDocument.pm
Plack-1.0033/lib/Plack/Middleware/Head.pm
Plack-1.0033/lib/Plack/Middleware/HTTPExceptions.pm
Plack-1.0033/lib/Plack/Middleware/IIS6ScriptNameFix.pm
Plack-1.0033/lib/Plack/Middleware/IIS7KeepAliveFix.pm
Plack-1.0033/lib/Plack/Middleware/JSONP.pm
Plack-1.0033/lib/Plack/Middleware/LighttpdScriptNameFix.pm
Plack-1.0033/lib/Plack/Middleware/Lint.pm
Plack-1.0033/lib/Plack/Middleware/Log4perl.pm
Plack-1.0033/lib/Plack/Middleware/LogDispatch.pm
Plack-1.0033/lib/Plack/Middleware/NullLogger.pm
Plack-1.0033/lib/Plack/Middleware/RearrangeHeaders.pm
Plack-1.0033/lib/Plack/Middleware/Recursive.pm
Plack-1.0033/lib/Plack/Middleware/Refresh.pm
Plack-1.0033/lib/Plack/Middleware/Runtime.pm
Plack-1.0033/lib/Plack/Middleware/SimpleContentFilter.pm
Plack-1.0033/lib/Plack/Middleware/SimpleLogger.pm
Plack-1.0033/lib/Plack/Middleware/StackTrace.pm
Plack-1.0033/lib/Plack/Middleware/Static.pm
Plack-1.0033/lib/Plack/Middleware/XFramework.pm
Plack-1.0033/lib/Plack/Middleware/XSendfile.pm
Plack-1.0033/lib/Plack/Middleware/Auth/Basic.pm
Plack-1.0033/lib/Plack/Middleware/AccessLog/Timed.pm
Plack-1.0033/lib/Plack/Loader/Delayed.pm
Plack-1.0033/lib/Plack/Loader/Restarter.pm
Plack-1.0033/lib/Plack/Loader/Shotgun.pm
Plack-1.0033/lib/Plack/HTTPParser/PP.pm
Plack-1.0033/lib/Plack/Handler/Apache1.pm
Plack-1.0033/lib/Plack/Handler/Apache2/
Plack-1.0033/lib/Plack/Handler/Apache2.pm
Plack-1.0033/lib/Plack/Handler/CGI.pm
Plack-1.0033/lib/Plack/Handler/FCGI.pm
Plack-1.0033/lib/Plack/Handler/HTTP/
Plack-1.0033/lib/Plack/Handler/Standalone.pm
Plack-1.0033/lib/Plack/Handler/HTTP/Server/
Plack-1.0033/lib/Plack/Handler/HTTP/Server/PSGI.pm
Plack-1.0033/lib/Plack/Handler/Apache2/Registry.pm
Plack-1.0033/lib/Plack/App/Cascade.pm
Plack-1.0033/lib/Plack/App/CGIBin.pm
Plack-1.0033/lib/Plack/App/Directory.pm
Plack-1.0033/lib/Plack/App/File.pm
Plack-1.0033/lib/Plack/App/PSGIBin.pm
Plack-1.0033/lib/Plack/App/URLMap.pm
Plack-1.0033/lib/Plack/App/WrapCGI.pm
Plack-1.0033/lib/HTTP/Message/
Plack-1.0033/lib/HTTP/Server/
Plack-1.0033/lib/HTTP/Server/PSGI.pm
Plack-1.0033/lib/HTTP/Message/PSGI.pm
Plack-1.0033/eg/dot-psgi/
Plack-1.0033/eg/dot-psgi/cgi-pm.psgi
Plack-1.0033/eg/dot-psgi/cgi-script.psgi
Plack-1.0033/eg/dot-psgi/Dumper.psgi
Plack-1.0033/eg/dot-psgi/echo-stream-sync.psgi
Plack-1.0033/eg/dot-psgi/echo-stream.psgi
Plack-1.0033/eg/dot-psgi/echo.psgi
Plack-1.0033/eg/dot-psgi/error.psgi
Plack-1.0033/eg/dot-psgi/Hello.psgi
Plack-1.0033/eg/dot-psgi/image.psgi
Plack-1.0033/eg/dot-psgi/nonblock-hello.psgi
Plack-1.0033/eg/dot-psgi/plack-req.psgi
Plack-1.0033/eg/dot-psgi/runnable.psgi
Plack-1.0033/eg/dot-psgi/slowapp.psgi
Plack-1.0033/eg/dot-psgi/static/
Plack-1.0033/eg/dot-psgi/static.psgi
Plack-1.0033/eg/dot-psgi/twitter-stream.psgi
Plack-1.0033/eg/dot-psgi/static/index.html
Plack-1.0033/eg/dot-psgi/static/test.css
Plack-1.0033/eg/dot-psgi/static/test.js
Plack-1.0033/benchmarks/ab.pl
Plack-1.0033/benchmarks/fcgi.pl
CPAN.pm: Building M/MI/MIYAGAWA/Plack-1.0033.tar.gz
>>> /home/fly1400/ap1400/bin/perl-static Makefile.PL
Checking if your kit is complete...
Looks good
Generating a Unix-style Makefile
Writing Makefile for Plack
Writing MYMETA.yml and MYMETA.json
>>> make
cp share/#foo blib/lib/auto/share/dist/Plack/#foo
cp share/baybridge.jpg blib/lib/auto/share/dist/Plack/baybridge.jpg
cp share/face.jpg blib/lib/auto/share/dist/Plack/face.jpg
cp lib/Plack/Util/Accessor.pm blib/lib/Plack/Util/Accessor.pm
cp lib/Plack/App/CGIBin.pm blib/lib/Plack/App/CGIBin.pm
cp lib/Plack/App/PSGIBin.pm blib/lib/Plack/App/PSGIBin.pm
cp lib/Plack/Middleware/Log4perl.pm blib/lib/Plack/Middleware/Log4perl.pm
cp lib/Plack/Handler/Apache2.pm blib/lib/Plack/Handler/Apache2.pm
cp lib/Plack/Response.pm blib/lib/Plack/Response.pm
cp lib/Plack/Middleware/Recursive.pm blib/lib/Plack/Middleware/Recursive.pm
cp lib/Plack/Test/MockHTTP.pm blib/lib/Plack/Test/MockHTTP.pm
cp lib/Plack/Middleware/Lint.pm blib/lib/Plack/Middleware/Lint.pm
cp lib/Plack/Middleware/BufferedStreaming.pm blib/lib/Plack/Middleware/BufferedStreaming.pm
cp lib/Plack/HTTPParser.pm blib/lib/Plack/HTTPParser.pm
cp lib/Plack/Middleware/StackTrace.pm blib/lib/Plack/Middleware/StackTrace.pm
cp lib/Plack/Middleware/AccessLog/Timed.pm blib/lib/Plack/Middleware/AccessLog/Timed.pm
cp lib/Plack/Middleware/LighttpdScriptNameFix.pm blib/lib/Plack/Middleware/LighttpdScriptNameFix.pm
cp lib/Plack/Middleware/Chunked.pm blib/lib/Plack/Middleware/Chunked.pm
cp lib/Plack/Request.pm blib/lib/Plack/Request.pm
cp lib/Plack/Middleware/Conditional.pm blib/lib/Plack/Middleware/Conditional.pm
cp lib/Plack/App/Cascade.pm blib/lib/Plack/App/Cascade.pm
cp lib/Plack/Middleware/Runtime.pm blib/lib/Plack/Middleware/Runtime.pm
cp lib/Plack/Middleware/SimpleLogger.pm blib/lib/Plack/Middleware/SimpleLogger.pm
cp lib/Plack/App/WrapCGI.pm blib/lib/Plack/App/WrapCGI.pm
cp lib/Plack/TempBuffer.pm blib/lib/Plack/TempBuffer.pm
cp lib/Plack/Middleware/Auth/Basic.pm blib/lib/Plack/Middleware/Auth/Basic.pm
cp lib/Plack/Middleware/Static.pm blib/lib/Plack/Middleware/Static.pm
cp lib/Plack/Util.pm blib/lib/Plack/Util.pm
cp lib/Plack/Handler/Apache1.pm blib/lib/Plack/Handler/Apache1.pm
cp lib/Plack/Loader/Shotgun.pm blib/lib/Plack/Loader/Shotgun.pm
cp lib/Plack/Middleware/SimpleContentFilter.pm blib/lib/Plack/Middleware/SimpleContentFilter.pm
cp lib/Plack/Middleware/IIS7KeepAliveFix.pm blib/lib/Plack/Middleware/IIS7KeepAliveFix.pm
cp lib/Plack/Middleware/NullLogger.pm blib/lib/Plack/Middleware/NullLogger.pm
cp lib/Plack/Middleware/ContentMD5.pm blib/lib/Plack/Middleware/ContentMD5.pm
cp lib/Plack/App/File.pm blib/lib/Plack/App/File.pm
cp lib/Plack/Handler/CGI.pm blib/lib/Plack/Handler/CGI.pm
cp lib/Plack/Handler.pm blib/lib/Plack/Handler.pm
cp lib/Plack/Middleware.pm blib/lib/Plack/Middleware.pm
cp lib/Plack/Handler/Apache2/Registry.pm blib/lib/Plack/Handler/Apache2/Registry.pm
cp lib/Plack/Runner.pm blib/lib/Plack/Runner.pm
cp lib/Plack/Loader/Restarter.pm blib/lib/Plack/Loader/Restarter.pm
cp lib/Plack/Test/Server.pm blib/lib/Plack/Test/Server.pm
cp lib/Plack/Test.pm blib/lib/Plack/Test.pm
cp lib/Plack/Handler/FCGI.pm blib/lib/Plack/Handler/FCGI.pm
cp lib/Plack/Request/Upload.pm blib/lib/Plack/Request/Upload.pm
cp lib/Plack/LWPish.pm blib/lib/Plack/LWPish.pm
cp lib/HTTP/Server/PSGI.pm blib/lib/HTTP/Server/PSGI.pm
cp lib/Plack/Middleware/ContentLength.pm blib/lib/Plack/Middleware/ContentLength.pm
cp lib/Plack/MIME.pm blib/lib/Plack/MIME.pm
cp lib/Plack/Middleware/HTTPExceptions.pm blib/lib/Plack/Middleware/HTTPExceptions.pm
cp lib/Plack.pm blib/lib/Plack.pm
cp lib/Plack/HTTPParser/PP.pm blib/lib/Plack/HTTPParser/PP.pm
cp lib/Plack/Middleware/XFramework.pm blib/lib/Plack/Middleware/XFramework.pm
cp lib/Plack/Test/Suite.pm blib/lib/Plack/Test/Suite.pm
cp lib/Plack/Handler/HTTP/Server/PSGI.pm blib/lib/Plack/Handler/HTTP/Server/PSGI.pm
cp lib/Plack/Middleware/Refresh.pm blib/lib/Plack/Middleware/Refresh.pm
cp lib/Plack/Middleware/JSONP.pm blib/lib/Plack/Middleware/JSONP.pm
cp lib/Plack/Middleware/IIS6ScriptNameFix.pm blib/lib/Plack/Middleware/IIS6ScriptNameFix.pm
cp lib/Plack/Loader.pm blib/lib/Plack/Loader.pm
cp lib/Plack/Middleware/ErrorDocument.pm blib/lib/Plack/Middleware/ErrorDocument.pm
cp lib/Plack/Builder.pm blib/lib/Plack/Builder.pm
cp lib/Plack/Middleware/Head.pm blib/lib/Plack/Middleware/Head.pm
cp lib/Plack/Middleware/XSendfile.pm blib/lib/Plack/Middleware/XSendfile.pm
cp lib/Plack/Loader/Delayed.pm blib/lib/Plack/Loader/Delayed.pm
cp lib/Plack/Middleware/LogDispatch.pm blib/lib/Plack/Middleware/LogDispatch.pm
cp lib/Plack/App/Directory.pm blib/lib/Plack/App/Directory.pm
cp lib/Plack/App/URLMap.pm blib/lib/Plack/App/URLMap.pm
cp lib/Plack/Middleware/ConditionalGET.pm blib/lib/Plack/Middleware/ConditionalGET.pm
cp lib/Plack/Component.pm blib/lib/Plack/Component.pm
cp lib/Plack/Middleware/RearrangeHeaders.pm blib/lib/Plack/Middleware/RearrangeHeaders.pm
cp lib/Plack/Middleware/AccessLog.pm blib/lib/Plack/Middleware/AccessLog.pm
cp lib/Plack/Handler/Standalone.pm blib/lib/Plack/Handler/Standalone.pm
cp lib/HTTP/Message/PSGI.pm blib/lib/HTTP/Message/PSGI.pm
cp script/plackup blib/script/plackup
"/home/fly1400/ap1400/bin/perl-static" -MExtUtils::MY -e 'MY->fixin(shift)' -- blib/script/plackup
Manifying 1 pod document
Manifying 69 pod documents
MIYAGAWA/Plack-1.0033.tar.gz
make -- OK
Running make test
>>> make test TEST_VERBOSE=1
Skip blib/lib/auto/share/dist/Plack/#foo (unchanged)
Skip blib/lib/auto/share/dist/Plack/baybridge.jpg (unchanged)
Skip blib/lib/auto/share/dist/Plack/face.jpg (unchanged)
PERL_DL_NONLAZY=1 "/home/fly1400/ap1400/bin/perl-static" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/HTTP-Message-PSGI/*.t t/HTTP-Server-PSGI/*.t t/Plack-Builder/*.t t/Plack-HTTPParser-PP/*.t t/Plack-Handler/*.t t/Plack-Loader/*.t t/Plack-MIME/*.t t/Plack-Middleware/*.t t/Plack-Middleware/cascade/*.t t/Plack-Middleware/recursive/*.t t/Plack-Middleware/stacktrace/*.t t/Plack-Request/*.t t/Plack-Response/*.t t/Plack-Runner/*.t t/Plack-TempBuffer/*.t t/Plack-Test/*.t t/Plack-Util/*.t
t/HTTP-Message-PSGI/content_length.t .................
ok 1
ok 2
1..2
ok
t/HTTP-Message-PSGI/empty_streamed_response.t ........
ok 1 - undef response body converted to empty string
1..1
ok
t/HTTP-Message-PSGI/host.t ...........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/HTTP-Message-PSGI/path_info.t ......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/HTTP-Message-PSGI/unknown_response.t ...............
ok 1 - converting undef PSGI response results in error
ok 2 - converting invalid PSGI response results in error
1..2
ok
t/HTTP-Message-PSGI/utf8_req.t .......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
1..16
ok
t/HTTP-Server-PSGI/harakiri.t ........................
ok 1
ok 2
ok 3
ok 4
ok 5
# check that the server is dead
ok 6 - no response
1..6
ok
t/HTTP-Server-PSGI/post.t ............................
# send a broken request
# send next request
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Builder/builder.t ............................
1..1
ok 1
ok
t/Plack-Builder/mount.t ..............................
ok 1
ok 2
1..2
ok
t/Plack-Builder/oo_interface.t .......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13 - to_app() is called without mount(). No application to build. at t/Plack-Builder/oo_interface.t line 52.
#
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19 - no warnings
1..19
ok
t/Plack-Handler/apache1.t ............................ skipped: TEST_APACHE1 is not set
t/Plack-Handler/apache2-registry.t ................... skipped: TEST_APACHE2 is not set
t/Plack-Handler/apache2.t ............................ skipped: TEST_APACHE2 is not set
t/Plack-Handler/cgi.t ................................
# SCRIPT_NAME
ok 1
# GET
ok 2
ok 3
ok 4
ok 5
# POST
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
# big POST
ok 12
ok 13
ok 14
ok 15
ok 16
# psgi.url_scheme
ok 17
ok 18
ok 19
ok 20
# return glob
ok 21
ok 22
ok 23
ok 24
ok 25
# filehandle
ok 26
ok 27
ok 28
ok 29
# bigger file
ok 30
ok 31
ok 32
ok 33
ok 34
# handle HTTP-Header
ok 35
ok 36
ok 37
ok 38
# handle HTTP-Cookie
ok 39
ok 40
ok 41
ok 42
# validate env
ok 43
ok 44
ok 45
ok 46
# % encoding in PATH_INFO
ok 47 - PATH_INFO should be decoded per RFC 3875
# % double encoding in PATH_INFO
ok 48 - PATH_INFO should be decoded only once, per RFC 3875
# % encoding in PATH_INFO (outside of URI characters)
ok 49
# SERVER_PROTOCOL is required
ok 50
ok 51
ok 52
ok 53
# SCRIPT_NAME should not be undef
ok 54
# call close after read IO::Handle-like
ok 55 - closed
ok 56
# has errors
ok 57
# status line
ok 58
# Do not crash when the app dies
ok 59
ok 60
# multi headers (request)
ok 61
# multi headers (response)
ok 62
# Do not set $env->{COOKIE}
ok 63
ok 64
# no entity headers on 304
ok 65
ok 66
ok 67
ok 68 - No Content-Type
ok 69 - No Content-Length
ok 70 - No Transfer-Encoding
# REQUEST_URI is set
ok 71
# filehandle with path()
ok 72
ok 73
ok 74
ok 75
# a big header value > 128 bytes
ok 76
ok 77
ok 78
# coderef res
ok 79
ok 80
ok 81
ok 82
# coderef streaming
ok 83
ok 84
ok 85
ok 86
# CRLF output and FCGI parse bug
ok 87
ok 88
# newlines
ok 89
# test 404
ok 90
ok 91
ok 92
# request->input seekable
ok 93
# request->content on GET
ok 94
# handle Authorization header
ok 95 # skip Authorization header is unsupported under CGI
ok 96 # skip Authorization header is unsupported under CGI
ok 97 # skip Authorization header is unsupported under CGI
ok 98 # skip Authorization header is unsupported under CGI
# repeated slashes
ok 99
ok 100
ok 101
ok 102
1..102
ok
t/Plack-Handler/fcgi.t ............................... skipped: release test only
t/Plack-Handler/output_encoding.t ....................
ok 1 - \n is not converted
1..1
ok
t/Plack-Handler/standalone.t .........................
# SCRIPT_NAME
ok 1
# GET
ok 2
ok 3
ok 4
ok 5
# POST
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
# big POST
ok 12
ok 13
ok 14
ok 15
ok 16
# psgi.url_scheme
ok 17
ok 18
ok 19
ok 20
# return glob
ok 21
ok 22
ok 23
ok 24
ok 25
# filehandle
ok 26
ok 27
ok 28
ok 29
# bigger file
ok 30
ok 31
ok 32
ok 33
ok 34
# handle HTTP-Header
ok 35
ok 36
ok 37
ok 38
# handle HTTP-Cookie
ok 39
ok 40
ok 41
ok 42
# validate env
ok 43
ok 44
ok 45
ok 46
# % encoding in PATH_INFO
ok 47 - PATH_INFO should be decoded per RFC 3875
# % double encoding in PATH_INFO
ok 48 - PATH_INFO should be decoded only once, per RFC 3875
# % encoding in PATH_INFO (outside of URI characters)
ok 49
# SERVER_PROTOCOL is required
ok 50
ok 51
ok 52
ok 53
# SCRIPT_NAME should not be undef
ok 54
# call close after read IO::Handle-like
ok 55 - closed
ok 56
# has errors
ok 57
# status line
ok 58
# Do not crash when the app dies
ok 59
ok 60
# multi headers (request)
ok 61
# multi headers (response)
ok 62
# Do not set $env->{COOKIE}
ok 63
ok 64
# no entity headers on 304
ok 65
ok 66
ok 67
ok 68 - No Content-Type
ok 69 - No Content-Length
ok 70 - No Transfer-Encoding
# REQUEST_URI is set
ok 71
# filehandle with path()
ok 72
ok 73
ok 74
ok 75
# a big header value > 128 bytes
ok 76
ok 77
ok 78
# coderef res
ok 79
ok 80
ok 81
ok 82
# coderef streaming
ok 83
ok 84
ok 85
ok 86
# CRLF output and FCGI parse bug
ok 87
ok 88
# newlines
ok 89
# test 404
ok 90
ok 91
ok 92
# request->input seekable
ok 93
# request->content on GET
ok 94
# handle Authorization header
ok 95
ok 96
ok 97
ok 98
# repeated slashes
ok 99
ok 100
ok 101
ok 102
1..102
ok
t/Plack-HTTPParser-PP/simple.t .......................
ok 1 - simple get
ok 2 - result of GET /
ok 3 - POST
ok 4 - result of GET with headers
ok 5 - multiline header
ok 6 - multiline
ok 7 - URI fragment
ok 8
ok 9 - %23 -> \#
ok 10
ok 11 - URI fragment after query string
ok 12
ok 13
1..13
ok
t/Plack-Loader/auto.t ................................
ok 1
1..1
ok
t/Plack-Loader/auto_fallback.t .......................
ok 1
1..1
ok
t/Plack-Loader/delayed.t .............................
ok 1
1..1
ok
t/Plack-Loader/restarter.t ........................... skipped: author test only
t/Plack-Loader/restarter_valid.t .....................
ok 1 - Foo.pm is valid
ok 2 - foo.t is valid
ok 3 - lib/Bar.pm is valid
ok 4 - view/index.tt is valid
ok 5 - _myapp/foo.psgi is valid
ok 6 - .www/bar.pl is valid
ok 7 - _sass.css is valid
ok 8 - /Users/joe/foo/bar.pm is valid
ok 9 - /path/to/4912 is valid
ok 10 - /path/to/5037 is valid
ok 11 - .git/123 should be ignored
ok 12 - .svn/abc should be ignored
ok 13 - Foo.pm~ should be ignored
ok 14 - _flymake.pl should be ignored
ok 15 - /Users/joe/foo.pl~ should be ignored
ok 16 - /foo/bar/x.txt.bak should be ignored
ok 17 - /path/to/foo.swp should be ignored
ok 18 - /path/to/foo.swpx should be ignored
ok 19 - /path/to/foo.swx should be ignored
ok 20 - /path/to/4913 should be ignored
ok 21 - /path/to/5036 should be ignored
ok 22 - /path/to/.\#Foo.pm should be ignored
1..22
ok
t/Plack-Loader/shotgun.t .............................
# SCRIPT_NAME
ok 1
# GET
ok 2
ok 3
ok 4
ok 5
# POST
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
# big POST
ok 12
ok 13
ok 14
ok 15
ok 16
# psgi.url_scheme
ok 17
ok 18
ok 19
ok 20
# return glob
ok 21
ok 22
ok 23
ok 24
ok 25
# filehandle
ok 26
ok 27
ok 28
ok 29
# bigger file
ok 30
ok 31
ok 32
ok 33
ok 34
# handle HTTP-Header
ok 35
ok 36
ok 37
ok 38
# handle HTTP-Cookie
ok 39
ok 40
ok 41
ok 42
# validate env
ok 43
ok 44
ok 45
ok 46
# % encoding in PATH_INFO
ok 47 - PATH_INFO should be decoded per RFC 3875
# % double encoding in PATH_INFO
ok 48 - PATH_INFO should be decoded only once, per RFC 3875
# % encoding in PATH_INFO (outside of URI characters)
ok 49
# SERVER_PROTOCOL is required
ok 50
ok 51
ok 52
ok 53
# SCRIPT_NAME should not be undef
ok 54
# call close after read IO::Handle-like
ok 55 - closed
ok 56
# has errors
ok 57
# status line
ok 58
# Do not crash when the app dies
ok 59
ok 60
# multi headers (request)
ok 61
# multi headers (response)
ok 62
# Do not set $env->{COOKIE}
ok 63
ok 64
# no entity headers on 304
ok 65
ok 66
ok 67
ok 68 - No Content-Type
ok 69 - No Content-Length
ok 70 - No Transfer-Encoding
# REQUEST_URI is set
ok 71
# filehandle with path()
ok 72
ok 73
ok 74
ok 75
# a big header value > 128 bytes
ok 76
ok 77
ok 78
# coderef res
ok 79
ok 80
ok 81
ok 82
# coderef streaming
ok 83
ok 84
ok 85
ok 86
# CRLF output and FCGI parse bug
ok 87
ok 88
# newlines
ok 89
# test 404
ok 90
ok 91
ok 92
# request->input seekable
ok 93
# request->content on GET
ok 94
# handle Authorization header
ok 95
ok 96
ok 97
ok 98
# repeated slashes
ok 99
ok 100
ok 101
ok 102
1..102
ok
t/Plack-Middleware/access_log.t ......................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Middleware/access_log_timed.t ................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
1..9
ok
t/Plack-Middleware/access_log_value_zero.t ...........
ok 1
ok 2
1..2
ok
t/Plack-Middleware/auth_basic.t ......................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Middleware/auth_basic_env.t ..................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
1..7
ok
t/Plack-Middleware/auth_basic_simple.t ...............
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Middleware/bufferedstreaming.t ...............
1..4
ok 1 - headers passed through
ok 2 - body accumulated
ok 3 - headers passed through
ok 4 - body accumulated
ok
t/Plack-Middleware/cascade/basic.t ...................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Middleware/cascade/streaming.t ...............
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Middleware/cgibin.t .......................... skipped: release test only
t/Plack-Middleware/cgibin_exec.t ..................... skipped: release test only
t/Plack-Middleware/chunked.t .........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21 - Chunked shouldn't be used in HTTP/1.0
ok 22
ok 23
ok 24 - Chunked shouldn't be used in HTTP/1.0
ok 25
ok 26
ok 27 - Chunked shouldn't be used in HTTP/1.0
ok 28
ok 29
ok 30 - Chunked shouldn't be used in HTTP/1.0
ok 31
ok 32
ok 33 - Chunked shouldn't be used in HTTP/1.0
ok 34
ok 35
ok 36 - Chunked shouldn't be used in HTTP/1.0
1..36
ok
t/Plack-Middleware/component-leak.t ..................
ok 1 - $res has been released.
ok 2 - $cb has been released.
1..2
ok
t/Plack-Middleware/component.t .......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Middleware/conditional.t .....................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/conditional_new.t .................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/conditionalget.t ..................
1..12
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok
t/Plack-Middleware/conditionalget_writer.t ...........
ok 1 - Response HTTP status
ok 2 - Response content
ok 3 - Response HTTP status
ok 4
1..4
ok
t/Plack-Middleware/content_length.t ..................
1..5
ok 1
ok 2
ok 3
ok 4
ok 5
ok
t/Plack-Middleware/directory.t .......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
1..7
ok
t/Plack-Middleware/error_document.t ..................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/Plack-Middleware/error_document_streaming_app.t ....
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
1..16
ok
t/Plack-Middleware/file.t ............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok 33
ok 34
ok 35
ok 36
ok 37
ok 38
ok 39
ok 40
ok 41
ok 42
ok 43
ok 44
ok 45
ok 46
ok 47
ok 48
ok 49
ok 50
ok 51
ok 52
ok 53
ok 54
ok 55
ok 56
ok 57
ok 58
ok 59
ok 60
ok 61
ok 62
ok 63
ok 64
ok 65
ok 66
ok 67
ok 68
ok 69
ok 70
ok 71
ok 72
ok 73
ok 74
ok 75
ok 76
ok 77
ok 78
ok 79
ok 80
ok 81
ok 82
ok 83
ok 84
ok 85
ok 86
ok 87
ok 88
ok 89
ok 90
ok 91
ok 92
ok 93
ok 94
ok 95
ok 96
ok 97
ok 98
ok 99
ok 100
ok 101
ok 102
ok 103
ok 104
ok 105
ok 106
ok 107
ok 108
ok 109
ok 110
ok 111
ok 112
ok 113
ok 114
ok 115
ok 116
ok 117
ok 118
ok 119
ok 120
ok 121
ok 122
ok 123
ok 124
ok 125
ok 126
ok 127
ok 128
ok 129
ok 130
ok 131
ok 132
ok 133
ok 134
ok 135
ok 136
ok 137
ok 138
ok 139
ok 140
ok 141
ok 142
ok 143
ok 144
ok 145
ok 146
ok 147
ok 148
ok 149
ok 150
ok 151
ok 152
ok 153
ok 154
ok 155
ok 156
ok 157
ok 158
ok 159
ok 160
ok 161
ok 162
ok 163
ok 164
ok 165
ok 166
ok 167
ok 168
ok 169
ok 170
ok 171
ok 172
ok 173
ok 174
ok 175
ok 176
ok 177
ok 178
ok 179
ok 180
ok 181
ok 182
ok 183
ok 184
ok 185
ok 186
ok 187
ok 188
ok 189
ok 190
ok 191
ok 192
ok 193
ok 194
ok 195
ok 196
ok 197
ok 198
ok 199
ok 200
ok 201
ok 202
ok 203
ok 204
ok 205
ok 206
ok 207
ok 208
ok 209
ok 210
ok 211
ok 212
1..212
ok
t/Plack-Middleware/head.t ............................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/head_streaming.t ..................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/httpexceptions.t ..................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Middleware/httpexceptions_streaming.t ........
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/Plack-Middleware/iis6_script_name_fix.t ............
ok 1 - check PATH_INFO
ok 2 - check SCRIPT_NAME
1..2
ok
t/Plack-Middleware/iis7_keep_alive_fix.t .............
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/jsonp.t ...........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Middleware/lint.t ............................
ok 1 - Response should be array ref or code ref: HASH(0x84ecd98) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 104.
#
ok 2 - Response needs to be 3 element array, or 2 element in streaming at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 112.
#
ok 3 - Headers needs to be an array ref: HASH(0x84ece78) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 120.
#
ok 4 - Status code needs to be an integer greater than or equal to 100: 0 at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 116.
#
ok 5 - Body must be bytes and should not contain wide characters (UTF-8 strings) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 156.
#
ok 6 - Body should be an array ref or filehandle: HASH(0x84ece28) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 152.
#
ok 7 - Body should be an array ref or filehandle: at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 152.
#
ok 8 - Response headers MUST NOT contain a key with : or newlines, or that end in - or _: Foo: at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 133.
#
ok 9 - Response headers MUST NOT contain a key with : or newlines, or that end in - or _: Foo- at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 133.
#
ok 10 - Response headers MUST consist only of letters, digits, _ or - and MUST start with a letter: 0xyz at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 136.
#
ok 11 - Response headers MUST NOT contain a key named Status at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 130.
#
ok 12 - Response headers MUST NOT contain a key with : or newlines, or that end in - or _: Foo
# Bar at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 133.
#
ok 13 - Response headers MUST NOT contain characters below octal : Foo
# Bar at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 139.
#
ok 14 - The number of response headers needs to be even, not odd(1) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 125.
#
ok 15 - Body should be an array ref or filehandle: HASH(0x84f3400) at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 152.
#
ok 16 - Body should be an array ref or filehandle: at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 152.
#
ok 17 - Response headers MUST be a defined string at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 142.
#
ok 18 - SCRIPT_NAME must not be / at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/blib/lib/Plack/Middleware/Lint.pm line 40.
#
ok 19 - foo
ok 20 - Léon
1..20
ok
t/Plack-Middleware/lint_env.t ........................
ok 1
ok 2 - (?^:Missing env param: REQUEST_METHOD)
ok 3 - (?^:Invalid env param: REQUEST_METHOD)
ok 4 - (?^:PATH_INFO must begin with /)
ok 5 - (?^:Missing mandatory .*SERVER_PORT)
ok 6 - (?^:Invalid SERVER_PROTOCOL)
ok 7 - (?^:psgi\.version should be ArrayRef)
ok 8 - (?^:HTTP_CONTENT_TYPE should not exist)
1..8
ok
t/Plack-Middleware/lint_utf8_false_alarm.t ...........
ok 1 - abc
1..1
ok
t/Plack-Middleware/log4perl.t ........................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/log_dispatch.t ....................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
1..7
ok
t/Plack-Middleware/order.t ...........................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/prefix.t ..........................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/psgibin.t .........................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/rearrange_headers.t ...............
ok 1 - Pre-test: test that header order is not changed by default.
ok 2 - Rearrange Middleware changes the header order
1..2
ok
t/Plack-Middleware/recursive/base.t ..................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/recursive/streaming.t .............
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/recursive/throw.t .................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Middleware/recursive/throw_streaming.t .......
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/refresh-init.t ....................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/runtime.t .........................
ok 1
1..1
ok
t/Plack-Middleware/simple_content_filter.t ...........
ok 1
ok 2
1..2
ok
t/Plack-Middleware/simple_logger.t ...................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/stacktrace/basic.t ................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Middleware/stacktrace/force.t ................
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Middleware/stacktrace/multiple_exceptions.t ..
ok 1 - Status code is 500
ok 2 - Original exception returned
ok 3 - Destructor called only once
ok 4 - Status code is 500
ok 5 - Original exception returned
ok 6 - Destructor called only once
ok 7 - Status code is 500
ok 8 - Original stack trace returned
ok 9 - Status code is 500
ok 10 - Original stack trace returned
1..10
ok
t/Plack-Middleware/stacktrace/sigdie.t ...............
ok 1
ok 2
1..2
ok
t/Plack-Middleware/stacktrace/streaming.t ............
ok 1
ok 2
1..2
ok
t/Plack-Middleware/stacktrace/utf8.t .................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Middleware/static.t ..........................
ok 1 - ok case
ok 2
ok 3
ok 4
ok 5
ok 6 - directory traversal
ok 7 - not found
ok 8
ok 9
ok 10
ok 11 - pass through
ok 12
ok 13
ok 14
ok 15
1..15
ok
t/Plack-Middleware/static_env.t ......................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/urlmap.t ..........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
1..11
ok
t/Plack-Middleware/urlmap_builder.t ..................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
1..9
ok
t/Plack-Middleware/urlmap_env.t ......................
ok 1
ok 2
1..2
ok
t/Plack-Middleware/urlmap_ports.t ....................
ok 1
1..1
ok
Array found where operator expected at /usr/lib/perl5/5.8.0/warnings.pm line 294, at end of line
(Missing operator before ?)
syntax error at /usr/lib/perl5/5.8.0/warnings.pm line 294, near "croak @_ "
Compilation failed in require at /home/fly1400/var/megalib/Carp.pm line 5.
BEGIN failed--compilation aborted at /home/fly1400/var/megalib/Carp.pm line 5.
Compilation failed in require at /home/fly1400/var/megalib/CGI.pm line 4.
BEGIN failed--compilation aborted at /home/fly1400/var/megalib/CGI.pm line 4.
Compilation failed in require at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/t/Plack-Middleware/cgi-bin/cgi_dir.cgi line 2.
BEGIN failed--compilation aborted at /home/fly1400/var/cpan/build/Plack-1.0033-ItSkMV/t/Plack-Middleware/cgi-bin/cgi_dir.cgi line 2.
# Failed test at t/Plack-Middleware/wrapcgi.t line 33.
# got: '500'
# expected: '200'
# Failed test at t/Plack-Middleware/wrapcgi.t line 34.
# got: '
# An Error Occurred
#
# An Error Occurred
# 500 Internal Server Error
#
#
# '
# expected: 'MATCH'
# Looks like you failed 2 tests of 6.
t/Plack-Middleware/wrapcgi.t .........................
ok 1
ok 2
ok 3
ok 4
not ok 5
not ok 6
1..6
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/6 subtests
t/Plack-Middleware/wrapcgi_exec.t ....................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
1..11
ok
t/Plack-Middleware/xframework.t ......................
ok 1
1..1
ok
t/Plack-Middleware/xsendfile.t .......................
ok 1
ok 2
ok 3
ok 4 - pass through app header
1..4
ok
t/Plack-MIME/add_type.t ..............................
ok 1
ok 2
1..2
ok
t/Plack-MIME/basic.t .................................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-MIME/fallback.t ..............................
ok 1
ok 2
1..2
ok
t/Plack-Request/base.t ...............................
1..9
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok
t/Plack-Request/body.t ...............................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Request/content-on-get.t .....................
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Request/content.t ............................
ok 1
ok 2
1..2
ok
t/Plack-Request/cookie.t .............................
ok 1 - non-existing keys return undef
ok 2
ok 3
ok 4
ok 5 - When we get multiple values we return the first one (which e.g. Apache does too)
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Request/double_port.t ........................
ok 1
1..1
ok
t/Plack-Request/hostname.t ...........................
1..2
ok 1
ok 2
ok
t/Plack-Request/many_upload.t ........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
1..7
ok
t/Plack-Request/multi_read.t .........................
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Request/new.t ................................
ok 1 - An object of class 'Plack::Request' isa 'Plack::Request'
ok 2 - address
ok 3 - method
ok 4 - protocol
ok 5 - uri
ok 6 - port
ok 7 - url_scheme
1..7
ok
t/Plack-Request/parameters.t .........................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Request/params.t .............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
1..12
ok
t/Plack-Request/path_info.t ..........................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Request/path_info_escaped.t ..................
ok 1
ok 2 - %2f vs / can't be distinguished - that's alright
ok 3
1..3
ok
t/Plack-Request/query_string.t .......................
ok 1
ok 2
1..2
ok
t/Plack-Request/readbody.t ...........................
1..1
ok 1
ok
t/Plack-Request/request_uri.t ........................
ok 1
ok 2
1..2
ok
t/Plack-Request/upload-basename.t ....................
1..1
ok 1
ok
t/Plack-Request/upload-large.t .......................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/Plack-Request/upload.t .............................
ok 1 - An object of class 'Plack::Request::Upload' isa 'HASH'
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
1..14
ok
t/Plack-Request/uri.t ................................
1..32
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
ok 15
ok 16
ok 17
ok 18
ok 19
ok 20
ok 21
ok 22
ok 23
ok 24
ok 25
ok 26
ok 27
ok 28
ok 29
ok 30
ok 31
ok 32
ok
t/Plack-Request/uri_utf8.t ...........................
ok 1
1..1
ok
t/Plack-Response/body.t ..............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/Plack-Response/compatible.t ........................
ok 1
ok 2
ok 3
ok 4
1..4
ok
t/Plack-Response/cookie.t ............................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Response/new.t ...............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
1..6
ok
t/Plack-Response/redirect.t ..........................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Response/response.t ..........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
1..9
ok
t/Plack-Response/to_app.t ............................
ok 1 - response code
ok 2 - content
1..2
ok
t/Plack-Runner/options.t .............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
ok 14
1..14
ok
t/Plack-Runner/path.t ................................ skipped: release test only
t/Plack-TempBuffer/print.t ...........................
ok 1
ok 2
ok 3
ok 4
ok 5 - An object of class 'IO::File' isa 'IO::File'
ok 6
ok 7
ok 8
ok 9 - An object of class 'IO::File' isa 'IO::File'
ok 10
ok 11
1..11
ok
t/Plack-Test/2args.t .................................
ok 1
1..1
ok
t/Plack-Test/cookie.t ................................
ok 1
ok 2
1..2
ok
t/Plack-Test/hello.t .................................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Test/hello_server.t ..........................
ok 1
ok 2
ok 3
1..3
ok
t/Plack-Test/suite.t .................................
# SCRIPT_NAME
ok 1
# GET
ok 2
ok 3
ok 4
ok 5
# POST
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
# big POST
ok 12
ok 13
ok 14
ok 15
ok 16
# psgi.url_scheme
ok 17
ok 18
ok 19
ok 20
# return glob
ok 21
ok 22
ok 23
ok 24
ok 25
# filehandle
ok 26
ok 27
ok 28
ok 29
# bigger file
ok 30
ok 31
ok 32
ok 33
ok 34
# handle HTTP-Header
ok 35
ok 36
ok 37
ok 38
# handle HTTP-Cookie
ok 39
ok 40
ok 41
ok 42
# validate env
ok 43
ok 44
ok 45
ok 46
# % encoding in PATH_INFO
ok 47 - PATH_INFO should be decoded per RFC 3875
# % double encoding in PATH_INFO
ok 48 - PATH_INFO should be decoded only once, per RFC 3875
# % encoding in PATH_INFO (outside of URI characters)
ok 49
# SERVER_PROTOCOL is required
ok 50
ok 51
ok 52
ok 53
# SCRIPT_NAME should not be undef
ok 54
# call close after read IO::Handle-like
ok 55 - closed
ok 56
# has errors
ok 57
# status line
ok 58
# Do not crash when the app dies
ok 59
ok 60
# multi headers (request)
ok 61
# multi headers (response)
ok 62
# Do not set $env->{COOKIE}
ok 63
ok 64
# no entity headers on 304
ok 65
ok 66
ok 67
ok 68 - No Content-Type
ok 69 - No Content-Length
ok 70 - No Transfer-Encoding
# REQUEST_URI is set
ok 71
# filehandle with path()
ok 72
ok 73
ok 74
ok 75
# a big header value > 128 bytes
ok 76
ok 77
ok 78
# coderef res
ok 79
ok 80
ok 81
ok 82
# coderef streaming
ok 83
ok 84
ok 85
ok 86
# CRLF output and FCGI parse bug
ok 87
ok 88
# newlines
ok 89
# test 404
ok 90
ok 91
ok 92
# request->input seekable
ok 93
# request->content on GET
ok 94
# handle Authorization header
ok 95
ok 96
ok 97
ok 98
# repeated slashes
ok 99
ok 100
ok 101
ok 102
1..102
ok
t/Plack-Util/can.t ...................................
ok 1 - Did not die calling 'can' on Plack::Util package with invalid sub
ok 2 - Cannot do that method
ok 3 - Did not die calling 'can' on Plack::Util package with real sub
ok 4 - can() returns the sub
1..4
ok
t/Plack-Util/foreach.t ...............................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11 - close
1..11
ok
t/Plack-Util/headers.t ...............................
ok 1
ok 2
ok 3 - header_set case-insensitive
ok 4
ok 5 - header_get case-insensitive
ok 6
ok 7
ok 8 - header_remove case-insensitive
ok 9
ok 10
1..10
ok
t/Plack-Util/headers_obj.t ...........................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
1..8
ok
t/Plack-Util/inline_object.t .........................
ok 1 - method call works
ok 2 - can returns true value for method
ok 3 - can returns sub ref for method
ok 4 - croaks if nonexistant method called
ok 5 - can returns undef for nonexistant method
1..5
ok
t/Plack-Util/io_with_path.t ..........................
ok 1
ok 2
ok 3
ok 4 - An object of class 'Plack::Util::IOWithPath' isa 'IO::Handle'
1..4
ok
t/Plack-Util/is_real_fh.t ............................
ok 1
ok 2
ok 3
ok 4
ok 5
1..5
ok
t/Plack-Util/load.t ..................................
ok 1
ok 2
ok 3
ok 4
ok 5
ok 6
ok 7
ok 8
ok 9
ok 10
ok 11
ok 12
ok 13
1..13
ok
t/Plack-Util/response_cb.t ...........................
ok 1
1..1
ok
t/release-pod-syntax.t ............................... skipped: these tests are for release candidate testing
Test Summary Report
-------------------
t/Plack-Middleware/wrapcgi.t (Wstat: 512 Tests: 6 Failed: 2)
Failed tests: 5-6
Non-zero exit status: 2
Files=138, Tests=1329, 29 wallclock secs ( 0.34 usr 0.04 sys + 17.90 cusr 0.89 csys = 19.17 CPU)
Result: FAIL
Failed 1/138 test programs. 2/1329 subtests failed.
make: *** [test_dynamic] Error 255
MIYAGAWA/Plack-1.0033.tar.gz
make test TEST_VERBOSE=1 -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MIYAGAWA/Plack-1.0033.tar.gz
Running make for T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz
Has already been unwrapped into directory /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx
CPAN.pm: Building T/TI/TIMB/WebAPI-DBIC-0.002003.tar.gz
Warning: Prerequisite 'SQL::Translator => 0.11018' for 'TIMB/WebAPI-DBIC-0.002003.tar.gz' failed when processing 'ILMARI/SQL-Translator-0.11020.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
Warning: Prerequisite 'Plack => 1.0033' for 'TIMB/WebAPI-DBIC-0.002003.tar.gz' failed when processing 'MIYAGAWA/Plack-1.0033.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited.
>>> make
cp lib/WebAPI/DBIC/Resource/Role/Relationship.pm blib/lib/WebAPI/DBIC/Resource/Role/Relationship.pm
cp lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm blib/lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm
cp lib/WebAPI/DBIC/Resource/Role/RootHAL.pm blib/lib/WebAPI/DBIC/Resource/Role/RootHAL.pm
cp lib/WebAPI/HTTP/Throwable/Factory.pm blib/lib/WebAPI/HTTP/Throwable/Factory.pm
cp lib/WebAPI/DBIC/Role/JsonEncoder.pm blib/lib/WebAPI/DBIC/Role/JsonEncoder.pm
cp lib/WebAPI/DBIC.pm blib/lib/WebAPI/DBIC.pm
cp lib/WebAPI/DBIC/Resource/Role/SetWritableJSONAPI.pm blib/lib/WebAPI/DBIC/Resource/Role/SetWritableJSONAPI.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemWritableHAL.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemWritableHAL.pm
cp lib/WebAPI/DBIC/Resource/Role/SetHAL.pm blib/lib/WebAPI/DBIC/Resource/Role/SetHAL.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemWritableJSONAPI.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemWritableJSONAPI.pm
cp lib/WebAPI/DBIC/Resource/Role/Item.pm blib/lib/WebAPI/DBIC/Resource/Role/Item.pm
cp lib/WebAPI/DBIC/Resource/Role/Root.pm blib/lib/WebAPI/DBIC/Resource/Role/Root.pm
cp NOTES.pod blib/lib/WebAPI/NOTES.pod
cp lib/WebAPI/DBIC/Resource/GenericSet.pm blib/lib/WebAPI/DBIC/Resource/GenericSet.pm
cp lib/WebAPI/DBIC/Resource/GenericItem.pm blib/lib/WebAPI/DBIC/Resource/GenericItem.pm
cp lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm
cp lib/WebAPI/DBIC/Resource/Role/SetWritable.pm blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm
cp lib/WebAPI/DBIC/Resource/Role/DBICException.pm blib/lib/WebAPI/DBIC/Resource/Role/DBICException.pm
cp lib/WebAPI/DBIC/Resource/Role/Identity.pm blib/lib/WebAPI/DBIC/Resource/Role/Identity.pm
cp lib/WebAPI/DBIC/WebApp.pm blib/lib/WebAPI/DBIC/WebApp.pm
cp lib/WebAPI/DBIC/Resource/GenericRoot.pm blib/lib/WebAPI/DBIC/Resource/GenericRoot.pm
cp lib/WebAPI/DBIC/Resource/Role/SetJSONAPI.pm blib/lib/WebAPI/DBIC/Resource/Role/SetJSONAPI.pm
cp lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm blib/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm
cp data_service_api.pod blib/lib/WebAPI/data_service_api.pod
cp lib/WebAPI/DBIC/Resource/Role/DBIC.pm blib/lib/WebAPI/DBIC/Resource/Role/DBIC.pm
cp lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm blib/lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm
cp lib/WebAPI/DBIC/Resource/Role/Set.pm blib/lib/WebAPI/DBIC/Resource/Role/Set.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemJSONAPI.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemJSONAPI.pm
cp lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm
cp lib/WebAPI/DBIC/Role/JsonParams.pm blib/lib/WebAPI/DBIC/Role/JsonParams.pm
cp lib/WebAPI/DBIC/Resource/Role/DBICParams.pm blib/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm
cp lib/WebAPI/DBIC/Resource/Role/Router.pm blib/lib/WebAPI/DBIC/Resource/Role/Router.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemHAL.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemHAL.pm
cp lib/WebAPI/DBIC/Resource/Base.pm blib/lib/WebAPI/DBIC/Resource/Base.pm
cp lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm
cp lib/WebAPI/DBIC/Util.pm blib/lib/WebAPI/DBIC/Util.pm
cp lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm
cp lib/WebAPI/DBIC/Router.pm blib/lib/WebAPI/DBIC/Router.pm
cp lib/WebAPI/DBIC/Resource/GenericCore.pm blib/lib/WebAPI/DBIC/Resource/GenericCore.pm
Manifying 40 pod documents
TIMB/WebAPI-DBIC-0.002003.tar.gz
make -- OK
Running make test
>>> make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 "/home/fly1400/ap1400/bin/perl-static" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
webapi-dbic-any.psgi syntax OK
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8c642b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8c643a8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8c86e90), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8c86e90), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8c98260), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x90885a0)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8c98260), Moose::Meta::Instance=HASH(0x90aff98), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x90885a0), HASH(0x9088ad0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x90470b8), HASH(0x9088ad0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x90470b8), HASH(0x9088ad0)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x90470b8), HASH(0x9088ad0)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x90882b0)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x90882b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x90882b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8a5a800)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at t/lib/DummyLoadedSchema.pm line 8
DummyLoadedSchema::BEGIN() called at t/lib/DummyLoadedSchema.pm line 8
eval {...} called at t/lib/DummyLoadedSchema.pm line 8
require DummyLoadedSchema.pm called at webapi-dbic-demo.psgi line 13
main::BEGIN() called at t/lib/DummyLoadedSchema.pm line 8
eval {...} called at t/lib/DummyLoadedSchema.pm line 8
webapi-dbic-demo.psgi syntax OK
t/00-compile.t ...........
ok 1 - lib/WebAPI/DBIC.pm compiles
ok 2 - lib/WebAPI/DBIC/Util.pm compiles
ok 3 - lib/WebAPI/DBIC/Router.pm compiles
ok 4 - lib/WebAPI/DBIC/WebApp.pm compiles
ok 5 - blib/lib/WebAPI/DBIC.pm compiles
ok 6 - lib/WebAPI/DBIC/Resource/Base.pm compiles
ok 7 - lib/WebAPI/DBIC/Resource/GenericSet.pm compiles
ok 8 - lib/WebAPI/DBIC/Resource/GenericCore.pm compiles
ok 9 - lib/WebAPI/DBIC/Resource/GenericItem.pm compiles
ok 10 - lib/WebAPI/DBIC/Resource/GenericRoot.pm compiles
ok 11 - lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm compiles
ok 12 - lib/WebAPI/DBIC/Role/JsonParams.pm compiles
ok 13 - lib/WebAPI/DBIC/Role/JsonEncoder.pm compiles
ok 14 - lib/WebAPI/HTTP/Throwable/Factory.pm compiles
ok 15 - blib/lib/WebAPI/DBIC/WebApp.pm compiles
ok 16 - blib/lib/WebAPI/DBIC/Util.pm compiles
ok 17 - blib/lib/WebAPI/DBIC/Router.pm compiles
ok 18 - lib/WebAPI/DBIC/Resource/Role/Set.pm compiles
ok 19 - lib/WebAPI/DBIC/Resource/Role/DBIC.pm compiles
ok 20 - lib/WebAPI/DBIC/Resource/Role/Item.pm compiles
ok 21 - lib/WebAPI/DBIC/Resource/Role/Root.pm compiles
ok 22 - lib/WebAPI/DBIC/Resource/Role/Router.pm compiles
ok 23 - lib/WebAPI/DBIC/Resource/Role/SetHAL.pm compiles
ok 24 - lib/WebAPI/DBIC/Resource/Role/ItemHAL.pm compiles
ok 25 - lib/WebAPI/DBIC/Resource/Role/RootHAL.pm compiles
ok 26 - lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm compiles
ok 27 - lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm compiles
ok 28 - lib/WebAPI/DBIC/Resource/Role/Identity.pm compiles
ok 29 - lib/WebAPI/DBIC/Resource/Role/DBICParams.pm compiles
ok 30 - lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm compiles
ok 31 - lib/WebAPI/DBIC/Resource/Role/SetJSONAPI.pm compiles
ok 32 - lib/WebAPI/DBIC/Resource/Role/ItemJSONAPI.pm compiles
ok 33 - lib/WebAPI/DBIC/Resource/Role/SetWritable.pm compiles
ok 34 - lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm compiles
ok 35 - lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm compiles
ok 36 - lib/WebAPI/DBIC/Resource/Role/Relationship.pm compiles
ok 37 - lib/WebAPI/DBIC/Resource/Role/DBICException.pm compiles
ok 38 - lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm compiles
ok 39 - lib/WebAPI/DBIC/Resource/Role/ItemWritableHAL.pm compiles
ok 40 - lib/WebAPI/DBIC/Resource/Role/SetWritableJSONAPI.pm compiles
ok 41 - lib/WebAPI/DBIC/Resource/Role/ItemWritableJSONAPI.pm compiles
ok 42 - lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm compiles
ok 43 - blib/lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm compiles
ok 44 - blib/lib/WebAPI/DBIC/Resource/GenericSet.pm compiles
ok 45 - blib/lib/WebAPI/DBIC/Resource/GenericItem.pm compiles
ok 46 - blib/lib/WebAPI/DBIC/Resource/GenericRoot.pm compiles
ok 47 - blib/lib/WebAPI/DBIC/Resource/Base.pm compiles
ok 48 - blib/lib/WebAPI/DBIC/Resource/GenericCore.pm compiles
ok 49 - blib/lib/WebAPI/DBIC/Role/JsonEncoder.pm compiles
ok 50 - blib/lib/WebAPI/DBIC/Role/JsonParams.pm compiles
ok 51 - blib/lib/WebAPI/HTTP/Throwable/Factory.pm compiles
ok 52 - blib/lib/WebAPI/DBIC/Resource/Role/Relationship.pm compiles
ok 53 - blib/lib/WebAPI/DBIC/Resource/Role/RootHAL.pm compiles
ok 54 - blib/lib/WebAPI/DBIC/Resource/Role/SetWritableJSONAPI.pm compiles
ok 55 - blib/lib/WebAPI/DBIC/Resource/Role/ItemWritableHAL.pm compiles
ok 56 - blib/lib/WebAPI/DBIC/Resource/Role/SetHAL.pm compiles
ok 57 - blib/lib/WebAPI/DBIC/Resource/Role/ItemWritableJSONAPI.pm compiles
ok 58 - blib/lib/WebAPI/DBIC/Resource/Role/Item.pm compiles
ok 59 - blib/lib/WebAPI/DBIC/Resource/Role/Root.pm compiles
ok 60 - blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm compiles
ok 61 - blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm compiles
ok 62 - blib/lib/WebAPI/DBIC/Resource/Role/DBICException.pm compiles
ok 63 - blib/lib/WebAPI/DBIC/Resource/Role/Identity.pm compiles
ok 64 - blib/lib/WebAPI/DBIC/Resource/Role/SetJSONAPI.pm compiles
ok 65 - blib/lib/WebAPI/DBIC/Resource/Role/DBIC.pm compiles
ok 66 - blib/lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm compiles
ok 67 - blib/lib/WebAPI/DBIC/Resource/Role/Set.pm compiles
ok 68 - blib/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm compiles
ok 69 - blib/lib/WebAPI/DBIC/Resource/Role/ItemJSONAPI.pm compiles
ok 70 - blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm compiles
ok 71 - blib/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm compiles
ok 72 - blib/lib/WebAPI/DBIC/Resource/Role/Router.pm compiles
ok 73 - blib/lib/WebAPI/DBIC/Resource/Role/ItemHAL.pm compiles
ok 74 - blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm compiles
ok 75 - blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm compiles
ok 76 - blib/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm compiles
ok 77 - has psgi files
1..77
ok
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a4b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a868), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ec10), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ec10), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19b8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93110f0)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19b8), Moose::Meta::Instance=HASH(0x937b388), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93110f0), HASH(0x9311620)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311890), HASH(0x9311620)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311890), HASH(0x9311620)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311890), HASH(0x9311620)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310f30)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310f30)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310f30)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb628)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/10-basics-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artist, me.title, me.genre, me.release_year, me.cdid FROM ( SELECT artist.name as artist, cd.title, genre.name as genre,
# Failed test '10-basics-core.t output in t/10-basics-core.got matches t/10-basics-core.exp'
# at t/lib/TestDS.pm line 67.
# +---+---------------------------------------------+----+---------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+---------------------------------------------+----+---------------------------------------------+
# | 1|'=== get single item | 1|'=== get single item |
# | 2|Request: | 2|Request: |
# | 3|GET /artist/1 | 3|GET /artist/1 |
# | 4|Response: | 4|Response: |
# * 5|500 Internal Server Error * 5|200 OK *
# | 6|Content-type: application/json | 6|Content-type: application/json |
# | | * 7|{ *
# | | * 8| "artistid" : 1, *
# | | * 9| "charfield" : null, *
# | | * 10| "name" : "Caterwauler McCrae", *
# | | * 11| "rank" : 13 *
# | | * 12|} *
# | | * 13|\n *
# | 7|=== get different single item | 14|=== get different single item |
# | 8|Request: | 15|Request: |
# | 9|GET /artist/2 | 16|GET /artist/2 |
# | 10|Response: | 17|Response: |
# * 11|500 Internal Server Error * 18|200 OK *
# | 12|Content-type: application/json | 19|Content-type: application/json |
# | | * 20|{ *
# | | * 21| "artistid" : 2, *
# | | * 22| "charfield" : null, *
# | | * 23| "name" : "Random Boy Band", *
# | | * 24| "rank" : 13 *
# | | * 25|} *
# | | * 26|\n *
# | 13|=== get set of items | 27|=== get set of items |
# | 14|Request: | 28|Request: |
# | 15|GET /artist | 29|GET /artist |
# | 16|Response: | 30|Response: |
# * 17|500 Internal Server Error * 31|200 OK *
# | 18|Content-type: application/json | 32|Content-type: application/json |
# | | * 33|[ *
# | | * 34| { *
# | | * 35| "artistid" : 1, *
# | | * 36| "charfield" : null, *
# | | * 37| "name" : "Caterwauler McCrae", *
# | | * 38| "rank" : 13 *
# | | * 39| }, *
# | | * 40| { *
# | | * 41| "artistid" : 2, *
# | | * 42| "charfield" : null, *
# | | * 43| "name" : "Random Boy Band", *
# | | * 44| "rank" : 13 *
# | | * 45| }, *
# | | * 46| { *
# | | * 47| "artistid" : 3, *
# | | * 48| "charfield" : null, *
# | | * 49| "name" : "We Are Goth", *
# | | * 50| "rank" : 13 *
# | | * 51| }, *
# | | * 52| { *
# | | * 53| "artistid" : 4, *
# | | * 54| "charfield" : null, *
# | | * 55| "name" : "KielbaSka", *
# | | * 56| "rank" : 13 *
# | | * 57| }, *
# | | * 58| { *
# | | * 59| "artistid" : 5, *
# | | * 60| "charfield" : null, *
# | | * 61| "name" : "Gruntfiddle", *
# | | * 62| "rank" : 13 *
# | | * 63| }, *
# | | * 64| { *
# | | * 65| "artistid" : 6, *
# | | * 66| "charfield" : null, *
# | | * 67| "name" : "A-ha Na Na", *
# | | * 68| "rank" : 13 *
# | | * 69| } *
# | | * 70|] *
# | | * 71|\n *
# | 19|=== get item with multi-field key | 72|=== get item with multi-field key |
# | 20|Request: | 73|Request: |
# | 21|GET /gig/1/2014-01-01T01:01:01Z | 74|GET /gig/1/2014-01-01T01:01:01Z |
# | 22|Response: | 75|Response: |
# * 23|500 Internal Server Error * 76|200 OK *
# | 24|Content-type: application/json | 77|Content-type: application/json |
# | | * 78|{ *
# | | * 79| "artistid" : 1, *
# | | * 80| "gig_datetime" : "2014-01-01T01:01:01Z" *
# | | * 81|} *
# | | * 82|\n *
# | 25|=== get different item with multi-field key | 83|=== get different item with multi-field key |
# | 26|Request: | 84|Request: |
# | 27|GET /gig/2/2014-06-30T19:00:00Z | 85|GET /gig/2/2014-06-30T19:00:00Z |
# | 28|Response: | 86|Response: |
# * 29|500 Internal Server Error * 87|200 OK *
# | 30|Content-type: application/json | 88|Content-type: application/json |
# | | * 89|{ *
# | | * 90| "artistid" : 2, *
# | | * 91| "gig_datetime" : "2014-06-30T19:00:00Z" *
# | | * 92|} *
# | | * 93|\n *
# | 31|=== get view data | 94|=== get view data |
# | 32|Request: | 95|Request: |
# | 33|GET /classic_albums | 96|GET /classic_albums |
# | 34|Response: | 97|Response: |
# * 35|500 Internal Server Error * 98|200 OK *
# | 36|Content-type: application/json | 99|Content-type: application/json |
# | | * 100|[ *
# | | * 101| { *
# | | * 102| "artist" : "Caterwauler McCrae", *
# | | * 103| "cdid" : 1, *
# | | * 104| "genre" : "emo", *
# | | * 105| "release_year" : "1999", *
# | | * 106| "title" : "Spoonful of bees" *
# | | * 107| }, *
# | | * 108| { *
# | | * 109| "artist" : "Caterwauler McCrae", *
# | | * 110| "cdid" : 3, *
# | | * 111| "genre" : "country", *
# | | * 112| "release_year" : "1997", *
# | | * 113| "title" : "Caterwaulin\' Blues" *
# | | * 114| }, *
# | | * 115| { *
# | | * 116| "artist" : "We Are Goth", *
# | | * 117| "cdid" : 5, *
# | | * 118| "genre" : "goth", *
# | | * 119| "release_year" : "1998", *
# | | * 120| "title" : "Come Be Depressed With Us" *
# | | * 121| } *
# | | * 122|] *
# | | * 123|\n *
# | 37|' | 124|' |
# +---+---------------------------------------------+----+---------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== basics - specs ====='
# at t/10-basics-core.t line 19.
# Looks like you failed 3 tests of 3.
t/10-basics-core.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/yWP31aCliv
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== basics - specs =====
# --- Config:
# --- Name: get single item
# GET /artist/1
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get different single item
# GET /artist/2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get set of items
# GET /artist
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get item with multi-field key
# GET /gig/1/2014-01-01T01:01:01Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get different item with multi-field key
# GET /gig/2/2014-06-30T19:00:00Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get view data
# GET /classic_albums
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
not ok 1 - 10-basics-core.t output in t/10-basics-core.got matches t/10-basics-core.exp
1..1
not ok 3 - ===== basics - specs =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a4b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a868), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ebe8), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ebe8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19d0), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93110d8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19d0), Moose::Meta::Instance=HASH(0x937b338), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93110d8), HASH(0x9311608)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311878), HASH(0x9311608)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311878), HASH(0x9311608)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311878), HASH(0x9311608)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310240)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310240)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310240)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb640)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/10-basics-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artist, me.title, me.genre, me.release_year, me.cdid FROM ( SELECT artist.name as artist, cd.title, genre.name as genre,
# Failed test '10-basics-hal.t output in t/10-basics-hal.got matches t/10-basics-hal.exp'
# at t/lib/TestDS.pm line 67.
# +---+-----------------------------------------------+----+--------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+-----------------------------------------------+----+--------------------------------------------------------+
# | 1|'=== get single item | 1|'=== get single item |
# | 2|Request: | 2|Request: |
# | 3|GET /artist/1 | 3|GET /artist/1 |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json |
# | | * 8|{ *
# | | * 9| "_links" : { *
# | | * 10| "cds" : { *
# | | * 11| "href" : "/cd?me.artist=1" *
# | | * 12| }, *
# | | * 13| "cds_cref_cond" : { *
# | | * 14| "href" : "/cd/1" *
# | | * 15| }, *
# | | * 16| "self" : { *
# | | * 17| "href" : "/artist/1" *
# | | * 18| } *
# | | * 19| }, *
# | | * 20| "artistid" : 1, *
# | | * 21| "charfield" : null, *
# | | * 22| "name" : "Caterwauler McCrae", *
# | | * 23| "rank" : 13 *
# | | * 24|} *
# | | * 25|\n *
# | 8|=== get different single item | 26|=== get different single item |
# | 9|Request: | 27|Request: |
# | 10|GET /artist/2 | 28|GET /artist/2 |
# | 11|Accept: application/hal+json,application/json | 29|Accept: application/hal+json,application/json |
# | 12|Response: | 30|Response: |
# * 13|500 Internal Server Error * 31|200 OK *
# | 14|Content-type: application/hal+json | 32|Content-type: application/hal+json |
# | | * 33|{ *
# | | * 34| "_links" : { *
# | | * 35| "cds" : { *
# | | * 36| "href" : "/cd?me.artist=2" *
# | | * 37| }, *
# | | * 38| "cds_cref_cond" : { *
# | | * 39| "href" : "/cd/2" *
# | | * 40| }, *
# | | * 41| "self" : { *
# | | * 42| "href" : "/artist/2" *
# | | * 43| } *
# | | * 44| }, *
# | | * 45| "artistid" : 2, *
# | | * 46| "charfield" : null, *
# | | * 47| "name" : "Random Boy Band", *
# | | * 48| "rank" : 13 *
# | | * 49|} *
# | | * 50|\n *
# | 15|=== get set of items | 51|=== get set of items |
# | 16|Request: | 52|Request: |
# | 17|GET /artist | 53|GET /artist |
# | 18|Accept: application/hal+json,application/json | 54|Accept: application/hal+json,application/json |
# | 19|Response: | 55|Response: |
# * 20|500 Internal Server Error * 56|200 OK *
# | 21|Content-type: application/hal+json | 57|Content-type: application/hal+json |
# | | * 58|{ *
# | | * 59| "_embedded" : { *
# | | * 60| "artist" : [ *
# | | * 61| { *
# | | * 62| "_links" : { *
# | | * 63| "cds" : { *
# | | * 64| "href" : "/cd?me.artist=1" *
# | | * 65| }, *
# | | * 66| "cds_cref_cond" : { *
# | | * 67| "href" : "/cd/1" *
# | | * 68| }, *
# | | * 69| "self" : { *
# | | * 70| "href" : "/artist/1" *
# | | * 71| } *
# | | * 72| }, *
# | | * 73| "artistid" : 1, *
# | | * 74| "charfield" : null, *
# | | * 75| "name" : "Caterwauler McCrae", *
# | | * 76| "rank" : 13 *
# | | * 77| }, *
# | | * 78| { *
# | | * 79| "_links" : { *
# | | * 80| "cds" : { *
# | | * 81| "href" : "/cd?me.artist=2" *
# | | * 82| }, *
# | | * 83| "cds_cref_cond" : { *
# | | * 84| "href" : "/cd/2" *
# | | * 85| }, *
# | | * 86| "self" : { *
# | | * 87| "href" : "/artist/2" *
# | | * 88| } *
# | | * 89| }, *
# | | * 90| "artistid" : 2, *
# | | * 91| "charfield" : null, *
# | | * 92| "name" : "Random Boy Band", *
# | | * 93| "rank" : 13 *
# | | * 94| }, *
# | | * 95| { *
# | | * 96| "_links" : { *
# | | * 97| "cds" : { *
# | | * 98| "href" : "/cd?me.artist=3" *
# | | * 99| }, *
# | | * 100| "cds_cref_cond" : { *
# | | * 101| "href" : "/cd/3" *
# | | * 102| }, *
# | | * 103| "self" : { *
# | | * 104| "href" : "/artist/3" *
# | | * 105| } *
# | | * 106| }, *
# | | * 107| "artistid" : 3, *
# | | * 108| "charfield" : null, *
# | | * 109| "name" : "We Are Goth", *
# | | * 110| "rank" : 13 *
# | | * 111| }, *
# | | * 112| { *
# | | * 113| "_links" : { *
# | | * 114| "cds" : { *
# | | * 115| "href" : "/cd?me.artist=4" *
# | | * 116| }, *
# | | * 117| "cds_cref_cond" : { *
# | | * 118| "href" : "/cd/4" *
# | | * 119| }, *
# | | * 120| "self" : { *
# | | * 121| "href" : "/artist/4" *
# | | * 122| } *
# | | * 123| }, *
# | | * 124| "artistid" : 4, *
# | | * 125| "charfield" : null, *
# | | * 126| "name" : "KielbaSka", *
# | | * 127| "rank" : 13 *
# | | * 128| }, *
# | | * 129| { *
# | | * 130| "_links" : { *
# | | * 131| "cds" : { *
# | | * 132| "href" : "/cd?me.artist=5" *
# | | * 133| }, *
# | | * 134| "cds_cref_cond" : { *
# | | * 135| "href" : "/cd/5" *
# | | * 136| }, *
# | | * 137| "self" : { *
# | | * 138| "href" : "/artist/5" *
# | | * 139| } *
# | | * 140| }, *
# | | * 141| "artistid" : 5, *
# | | * 142| "charfield" : null, *
# | | * 143| "name" : "Gruntfiddle", *
# | | * 144| "rank" : 13 *
# | | * 145| }, *
# | | * 146| { *
# | | * 147| "_links" : { *
# | | * 148| "cds" : { *
# | | * 149| "href" : "/cd?me.artist=6" *
# | | * 150| }, *
# | | * 151| "cds_cref_cond" : { *
# | | * 152| "href" : "/cd/6" *
# | | * 153| }, *
# | | * 154| "self" : { *
# | | * 155| "href" : "/artist/6" *
# | | * 156| } *
# | | * 157| }, *
# | | * 158| "artistid" : 6, *
# | | * 159| "charfield" : null, *
# | | * 160| "name" : "A-ha Na Na", *
# | | * 161| "rank" : 13 *
# | | * 162| } *
# | | * 163| ] *
# | | * 164| }, *
# | | * 165| "_links" : { *
# | | * 166| "self" : { *
# | | * 167| "href" : "/artist?rows=30&page=1", *
# | | * 168| "title" : "TestSchema::Result::Artist" *
# | | * 169| } *
# | | * 170| } *
# | | * 171|} *
# | | * 172|\n *
# | 22|=== get item with multi-field key | 173|=== get item with multi-field key |
# | 23|Request: | 174|Request: |
# | 24|GET /gig/1/2014-01-01T01:01:01Z | 175|GET /gig/1/2014-01-01T01:01:01Z |
# | 25|Accept: application/hal+json,application/json | 176|Accept: application/hal+json,application/json |
# | 26|Response: | 177|Response: |
# * 27|500 Internal Server Error * 178|200 OK *
# | 28|Content-type: application/hal+json | 179|Content-type: application/hal+json |
# | | * 180|{ *
# | | * 181| "_links" : { *
# | | * 182| "artist" : { *
# | | * 183| "href" : "/artist/1" *
# | | * 184| }, *
# | | * 185| "self" : { *
# | | * 186| "href" : "/gig/1/2014-01-01T01:01:01Z" *
# | | * 187| } *
# | | * 188| }, *
# | | * 189| "artistid" : 1, *
# | | * 190| "gig_datetime" : "2014-01-01T01:01:01Z" *
# | | * 191|} *
# | | * 192|\n *
# | 29|=== get different item with multi-field key | 193|=== get different item with multi-field key |
# | 30|Request: | 194|Request: |
# | 31|GET /gig/2/2014-06-30T19:00:00Z | 195|GET /gig/2/2014-06-30T19:00:00Z |
# | 32|Accept: application/hal+json,application/json | 196|Accept: application/hal+json,application/json |
# | 33|Response: | 197|Response: |
# * 34|500 Internal Server Error * 198|200 OK *
# | 35|Content-type: application/hal+json | 199|Content-type: application/hal+json |
# | | * 200|{ *
# | | * 201| "_links" : { *
# | | * 202| "artist" : { *
# | | * 203| "href" : "/artist/2" *
# | | * 204| }, *
# | | * 205| "self" : { *
# | | * 206| "href" : "/gig/2/2014-06-30T19:00:00Z" *
# | | * 207| } *
# | | * 208| }, *
# | | * 209| "artistid" : 2, *
# | | * 210| "gig_datetime" : "2014-06-30T19:00:00Z" *
# | | * 211|} *
# | | * 212|\n *
# | 36|=== get view data | 213|=== get view data |
# | 37|Request: | 214|Request: |
# | 38|GET /classic_albums | 215|GET /classic_albums |
# | 39|Accept: application/hal+json,application/json | 216|Accept: application/hal+json,application/json |
# | 40|Response: | 217|Response: |
# * 41|500 Internal Server Error * 218|200 OK *
# | 42|Content-type: application/hal+json | 219|Content-type: application/hal+json |
# | | * 220|{ *
# | | * 221| "_embedded" : { *
# | | * 222| "classic_albums" : [ *
# | | * 223| { *
# | | * 224| "_links" : { *
# | | * 225| "cd" : { *
# | | * 226| "href" : "/cd/1" *
# | | * 227| }, *
# | | * 228| "self" : { *
# | | * 229| "href" : "/classic_albums/1" *
# | | * 230| } *
# | | * 231| }, *
# | | * 232| "artist" : "Caterwauler McCrae", *
# | | * 233| "cdid" : 1, *
# | | * 234| "genre" : "emo", *
# | | * 235| "release_year" : "1999", *
# | | * 236| "title" : "Spoonful of bees" *
# | | * 237| }, *
# | | * 238| { *
# | | * 239| "_links" : { *
# | | * 240| "cd" : { *
# | | * 241| "href" : "/cd/3" *
# | | * 242| }, *
# | | * 243| "self" : { *
# | | * 244| "href" : "/classic_albums/3" *
# | | * 245| } *
# | | * 246| }, *
# | | * 247| "artist" : "Caterwauler McCrae", *
# | | * 248| "cdid" : 3, *
# | | * 249| "genre" : "country", *
# | | * 250| "release_year" : "1997", *
# | | * 251| "title" : "Caterwaulin\' Blues" *
# | | * 252| }, *
# | | * 253| { *
# | | * 254| "_links" : { *
# | | * 255| "cd" : { *
# | | * 256| "href" : "/cd/5" *
# | | * 257| }, *
# | | * 258| "self" : { *
# | | * 259| "href" : "/classic_albums/5" *
# | | * 260| } *
# | | * 261| }, *
# | | * 262| "artist" : "We Are Goth", *
# | | * 263| "cdid" : 5, *
# | | * 264| "genre" : "goth", *
# | | * 265| "release_year" : "1998", *
# | | * 266| "title" : "Come Be Depressed With Us" *
# | | * 267| } *
# | | * 268| ] *
# | | * 269| }, *
# | | * 270| "_links" : { *
# | | * 271| "self" : { *
# | | * 272| "href" : "/classic_albums?rows=30&page=1", *
# | | * 273| "title" : "TestSchema::Result::ClassicAlbums" *
# | | * 274| } *
# | | * 275| } *
# | | * 276|} *
# | | * 277|\n *
# | 43|' | 278|' |
# +---+-----------------------------------------------+----+--------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== basics - specs ====='
# at t/10-basics-hal.t line 18.
# Looks like you failed 3 tests of 3.
t/10-basics-hal.t ........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/CEQow9QHnV
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== basics - specs =====
# --- Config:
# --- Name: get single item
# GET /artist/1
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get different single item
# GET /artist/2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get set of items
# GET /artist
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get item with multi-field key
# GET /gig/1/2014-01-01T01:01:01Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get different item with multi-field key
# GET /gig/2/2014-06-30T19:00:00Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get view data
# GET /classic_albums
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
not ok 1 - 10-basics-hal.t output in t/10-basics-hal.got matches t/10-basics-hal.exp
1..1
not ok 3 - ===== basics - specs =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a4b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a868), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ec10), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ec10), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19b8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311038)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19b8), Moose::Meta::Instance=HASH(0x937b318), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311038), HASH(0x9311568)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93117d8), HASH(0x9311568)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93117d8), HASH(0x9311568)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93117d8), HASH(0x9311568)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93101a0)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93101a0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93101a0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb638)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/10-basics-jsonapi.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: gig [for Statement "SELECT me.artistid, me.gig_datetime FROM gig me WHERE ( ( me.artistid = ? AND me.gig_datetime = ? ) ) ORDER BY me.artistid ASC, me.gig_datetime ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artist, me.title, me.genre, me.release_year, me.cdid FROM ( SELECT artist.name as artist, cd.title, genre.name as genre,
# Failed test '10-basics-jsonapi.t output in t/10-basics-jsonapi.got matches t/10-basics-jsonapi.exp'
# at t/lib/TestDS.pm line 67.
# +---+---------------------------------------------+----+---------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+---------------------------------------------+----+---------------------------------------------------+
# | 1|'=== get single item | 1|'=== get single item |
# | 2|Request: | 2|Request: |
# | 3|GET /artist/1 | 3|GET /artist/1 |
# | 4|Accept: application/vnd.api+json | 4|Accept: application/vnd.api+json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/vnd.api+json | 7|Content-type: application/vnd.api+json |
# | | * 8|{ *
# | | * 9| "artist" : [ *
# | | * 10| { *
# | | * 11| "artistid" : 1, *
# | | * 12| "charfield" : null, *
# | | * 13| "href" : "/artist/1", *
# | | * 14| "id" : 1, *
# | | * 15| "name" : "Caterwauler McCrae", *
# | | * 16| "rank" : 13, *
# | | * 17| "type" : "artist" *
# | | * 18| } *
# | | * 19| ] *
# | | * 20|} *
# | | * 21|\n *
# | 8|=== get different single item | 22|=== get different single item |
# | 9|Request: | 23|Request: |
# | 10|GET /artist/2 | 24|GET /artist/2 |
# | 11|Accept: application/vnd.api+json | 25|Accept: application/vnd.api+json |
# | 12|Response: | 26|Response: |
# * 13|500 Internal Server Error * 27|200 OK *
# | 14|Content-type: application/vnd.api+json | 28|Content-type: application/vnd.api+json |
# | | * 29|{ *
# | | * 30| "artist" : [ *
# | | * 31| { *
# | | * 32| "artistid" : 2, *
# | | * 33| "charfield" : null, *
# | | * 34| "href" : "/artist/2", *
# | | * 35| "id" : 2, *
# | | * 36| "name" : "Random Boy Band", *
# | | * 37| "rank" : 13, *
# | | * 38| "type" : "artist" *
# | | * 39| } *
# | | * 40| ] *
# | | * 41|} *
# | | * 42|\n *
# | 15|=== get set of items | 43|=== get set of items |
# | 16|Request: | 44|Request: |
# | 17|GET /artist | 45|GET /artist |
# | 18|Accept: application/vnd.api+json | 46|Accept: application/vnd.api+json |
# | 19|Response: | 47|Response: |
# * 20|500 Internal Server Error * 48|200 OK *
# | 21|Content-type: application/vnd.api+json | 49|Content-type: application/vnd.api+json |
# | | * 50|{ *
# | | * 51| "artist" : [ *
# | | * 52| { *
# | | * 53| "artistid" : 1, *
# | | * 54| "charfield" : null, *
# | | * 55| "href" : "/artist/1", *
# | | * 56| "id" : 1, *
# | | * 57| "name" : "Caterwauler McCrae", *
# | | * 58| "rank" : 13, *
# | | * 59| "type" : "artist" *
# | | * 60| }, *
# | | * 61| { *
# | | * 62| "artistid" : 2, *
# | | * 63| "charfield" : null, *
# | | * 64| "href" : "/artist/2", *
# | | * 65| "id" : 2, *
# | | * 66| "name" : "Random Boy Band", *
# | | * 67| "rank" : 13, *
# | | * 68| "type" : "artist" *
# | | * 69| }, *
# | | * 70| { *
# | | * 71| "artistid" : 3, *
# | | * 72| "charfield" : null, *
# | | * 73| "href" : "/artist/3", *
# | | * 74| "id" : 3, *
# | | * 75| "name" : "We Are Goth", *
# | | * 76| "rank" : 13, *
# | | * 77| "type" : "artist" *
# | | * 78| }, *
# | | * 79| { *
# | | * 80| "artistid" : 4, *
# | | * 81| "charfield" : null, *
# | | * 82| "href" : "/artist/4", *
# | | * 83| "id" : 4, *
# | | * 84| "name" : "KielbaSka", *
# | | * 85| "rank" : 13, *
# | | * 86| "type" : "artist" *
# | | * 87| }, *
# | | * 88| { *
# | | * 89| "artistid" : 5, *
# | | * 90| "charfield" : null, *
# | | * 91| "href" : "/artist/5", *
# | | * 92| "id" : 5, *
# | | * 93| "name" : "Gruntfiddle", *
# | | * 94| "rank" : 13, *
# | | * 95| "type" : "artist" *
# | | * 96| }, *
# | | * 97| { *
# | | * 98| "artistid" : 6, *
# | | * 99| "charfield" : null, *
# | | * 100| "href" : "/artist/6", *
# | | * 101| "id" : 6, *
# | | * 102| "name" : "A-ha Na Na", *
# | | * 103| "rank" : 13, *
# | | * 104| "type" : "artist" *
# | | * 105| } *
# | | * 106| ] *
# | | * 107|} *
# | | * 108|\n *
# | 22|=== get item with multi-field key | 109|=== get item with multi-field key |
# | 23|Request: | 110|Request: |
# | 24|GET /gig/1/2014-01-01T01:01:01Z | 111|GET /gig/1/2014-01-01T01:01:01Z |
# | 25|Accept: application/vnd.api+json | 112|Accept: application/vnd.api+json |
# | 26|Response: | 113|Response: |
# * 27|500 Internal Server Error * 114|200 OK *
# | 28|Content-type: application/vnd.api+json | 115|Content-type: application/vnd.api+json |
# | | * 116|{ *
# | | * 117| "gig" : [ *
# | | * 118| { *
# | | * 119| "artistid" : 1, *
# | | * 120| "gig_datetime" : "2014-01-01T01:01:01Z", *
# | | * 121| "href" : "/gig/1/2014-01-01T01:01:01Z", *
# | | * 122| "id" : 1, *
# | | * 123| "type" : "gig" *
# | | * 124| } *
# | | * 125| ] *
# | | * 126|} *
# | | * 127|\n *
# | 29|=== get different item with multi-field key | 128|=== get different item with multi-field key |
# | 30|Request: | 129|Request: |
# | 31|GET /gig/2/2014-06-30T19:00:00Z | 130|GET /gig/2/2014-06-30T19:00:00Z |
# | 32|Accept: application/vnd.api+json | 131|Accept: application/vnd.api+json |
# | 33|Response: | 132|Response: |
# * 34|500 Internal Server Error * 133|200 OK *
# | 35|Content-type: application/vnd.api+json | 134|Content-type: application/vnd.api+json |
# | | * 135|{ *
# | | * 136| "gig" : [ *
# | | * 137| { *
# | | * 138| "artistid" : 2, *
# | | * 139| "gig_datetime" : "2014-06-30T19:00:00Z", *
# | | * 140| "href" : "/gig/2/2014-06-30T19:00:00Z", *
# | | * 141| "id" : 2, *
# | | * 142| "type" : "gig" *
# | | * 143| } *
# | | * 144| ] *
# | | * 145|} *
# | | * 146|\n *
# | 36|=== get view data | 147|=== get view data |
# | 37|Request: | 148|Request: |
# | 38|GET /classic_albums | 149|GET /classic_albums |
# | 39|Accept: application/vnd.api+json | 150|Accept: application/vnd.api+json |
# | 40|Response: | 151|Response: |
# * 41|500 Internal Server Error * 152|200 OK *
# | 42|Content-type: application/vnd.api+json | 153|Content-type: application/vnd.api+json |
# | | * 154|{ *
# | | * 155| "classic_albums" : [ *
# | | * 156| { *
# | | * 157| "artist" : "Caterwauler McCrae", *
# | | * 158| "cdid" : 1, *
# | | * 159| "genre" : "emo", *
# | | * 160| "href" : "/classic_albums/1", *
# | | * 161| "id" : 1, *
# | | * 162| "release_year" : "1999", *
# | | * 163| "title" : "Spoonful of bees", *
# | | * 164| "type" : "classic_albums" *
# | | * 165| }, *
# | | * 166| { *
# | | * 167| "artist" : "Caterwauler McCrae", *
# | | * 168| "cdid" : 3, *
# | | * 169| "genre" : "country", *
# | | * 170| "href" : "/classic_albums/3", *
# | | * 171| "id" : 3, *
# | | * 172| "release_year" : "1997", *
# | | * 173| "title" : "Caterwaulin\' Blues", *
# | | * 174| "type" : "classic_albums" *
# | | * 175| }, *
# | | * 176| { *
# | | * 177| "artist" : "We Are Goth", *
# | | * 178| "cdid" : 5, *
# | | * 179| "genre" : "goth", *
# | | * 180| "href" : "/classic_albums/5", *
# | | * 181| "id" : 5, *
# | | * 182| "release_year" : "1998", *
# | | * 183| "title" : "Come Be Depressed With Us", *
# | | * 184| "type" : "classic_albums" *
# | | * 185| } *
# | | * 186| ] *
# | | * 187|} *
# | | * 188|\n *
# | 43|' | 189|' |
# +---+---------------------------------------------+----+---------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== basics - specs ====='
# at t/10-basics-jsonapi.t line 18.
# Looks like you failed 3 tests of 3.
t/10-basics-jsonapi.t ....
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/TAccsqeLoX
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== basics - specs =====
# --- Config:
# --- Name: get single item
# GET /artist/1
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: get different single item
# GET /artist/2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: get set of items
# GET /artist
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: get item with multi-field key
# GET /gig/1/2014-01-01T01:01:01Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: get different item with multi-field key
# GET /gig/2/2014-06-30T19:00:00Z
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: get view data
# GET /classic_albums
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
not ok 1 - 10-basics-jsonapi.t output in t/10-basics-jsonapi.got matches t/10-basics-jsonapi.exp
1..1
not ok 3 - ===== basics - specs =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a040), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a3f0), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8e790), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8e790), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1560), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310b98)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1560), Moose::Meta::Instance=HASH(0x937ad38), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310b98), HASH(0x93110c8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311338), HASH(0x93110c8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311338), HASH(0x93110c8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311338), HASH(0x93110c8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93708f8)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93708f8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93708f8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb3d0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/11-paging-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ? OFFSET ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test '11-paging-core.t output in t/11-paging-core.got matches t/11-paging-core.exp'
# at t/lib/TestDS.pm line 67.
# +---+-------------------------------------+---+--------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+-------------------------------------+---+--------------------------------------+
# | 1|'=== get 1 row | 1|'=== get 1 row |
# | 2|Request: | 2|Request: |
# | 3|GET /artist?rows=1 | 3|GET /artist?rows=1 |
# | 4|Response: | 4|Response: |
# * 5|500 Internal Server Error * 5|200 OK *
# | 6|Content-type: application/json | 6|Content-type: application/json |
# | | * 7|[ *
# | | * 8| { *
# | | * 9| "artistid" : 1, *
# | | * 10| "charfield" : null, *
# | | * 11| "name" : "Caterwauler McCrae", *
# | | * 12| "rank" : 13 *
# | | * 13| } *
# | | * 14|] *
# | | * 15|\n *
# | 7|=== get 2 rows | 16|=== get 2 rows |
# | 8|Request: | 17|Request: |
# | 9|GET /artist?rows=2 | 18|GET /artist?rows=2 |
# | 10|Response: | 19|Response: |
# * 11|500 Internal Server Error * 20|200 OK *
# | 12|Content-type: application/json | 21|Content-type: application/json |
# | | * 22|[ *
# | | * 23| { *
# | | * 24| "artistid" : 1, *
# | | * 25| "charfield" : null, *
# | | * 26| "name" : "Caterwauler McCrae", *
# | | * 27| "rank" : 13 *
# | | * 28| }, *
# | | * 29| { *
# | | * 30| "artistid" : 2, *
# | | * 31| "charfield" : null, *
# | | * 32| "name" : "Random Boy Band", *
# | | * 33| "rank" : 13 *
# | | * 34| } *
# | | * 35|] *
# | | * 36|\n *
# | 13|=== get 2 rows from second \'page\' | 37|=== get 2 rows from second \'page\' |
# | 14|Request: | 38|Request: |
# | 15|GET /artist?rows=2&page=2 | 39|GET /artist?rows=2&page=2 |
# | 16|Response: | 40|Response: |
# * 17|500 Internal Server Error * 41|200 OK *
# | 18|Content-type: application/json | 42|Content-type: application/json |
# | | * 43|[ *
# | | * 44| { *
# | | * 45| "artistid" : 3, *
# | | * 46| "charfield" : null, *
# | | * 47| "name" : "We Are Goth", *
# | | * 48| "rank" : 13 *
# | | * 49| }, *
# | | * 50| { *
# | | * 51| "artistid" : 4, *
# | | * 52| "charfield" : null, *
# | | * 53| "name" : "KielbaSka", *
# | | * 54| "rank" : 13 *
# | | * 55| } *
# | | * 56|] *
# | | * 57|\n *
# | 19|' | 58|' |
# +---+-------------------------------------+---+--------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Paging ====='
# at t/11-paging-core.t line 18.
# Looks like you failed 3 tests of 3.
t/11-paging-core.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/k8cNcoHYyB
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Paging =====
# --- Config:
# --- Name: get 1 row
# GET /artist?rows=1
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get 2 rows
# GET /artist?rows=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get 2 rows from second 'page'
# GET /artist?rows=2&page=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
not ok 1 - 11-paging-core.t output in t/11-paging-core.got matches t/11-paging-core.exp
1..1
not ok 3 - ===== Paging =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a370), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a720), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ea88), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ea88), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1868), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310ef0)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1868), Moose::Meta::Instance=HASH(0x937b0f8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310ef0), HASH(0x9311420)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311690), HASH(0x9311420)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311690), HASH(0x9311420)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311690), HASH(0x9311420)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370c80)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370c80)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9370c80)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb610)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/11-paging-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ? OFFSET ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test '11-paging-hal.t output in t/11-paging-hal.got matches t/11-paging-hal.exp'
# at t/lib/TestDS.pm line 67.
# +---+-----------------------------------------------+----+-------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+-----------------------------------------------+----+-------------------------------------------------------+
# | 1|'=== get 1 row | 1|'=== get 1 row |
# | 2|Request: | 2|Request: |
# | 3|GET /artist?rows=1 | 3|GET /artist?rows=1 |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json |
# | | * 8|{ *
# | | * 9| "_embedded" : { *
# | | * 10| "artist" : [ *
# | | * 11| { *
# | | * 12| "_links" : { *
# | | * 13| "cds" : { *
# | | * 14| "href" : "/cd?me.artist=1" *
# | | * 15| }, *
# | | * 16| "cds_cref_cond" : { *
# | | * 17| "href" : "/cd/1" *
# | | * 18| }, *
# | | * 19| "self" : { *
# | | * 20| "href" : "/artist/1" *
# | | * 21| } *
# | | * 22| }, *
# | | * 23| "artistid" : 1, *
# | | * 24| "charfield" : null, *
# | | * 25| "name" : "Caterwauler McCrae", *
# | | * 26| "rank" : 13 *
# | | * 27| } *
# | | * 28| ] *
# | | * 29| }, *
# | | * 30| "_links" : { *
# | | * 31| "next" : { *
# | | * 32| "href" : "/artist?rows=1&page=2" *
# | | * 33| }, *
# | | * 34| "self" : { *
# | | * 35| "href" : "/artist?rows=1&page=1", *
# | | * 36| "title" : "TestSchema::Result::Artist" *
# | | * 37| } *
# | | * 38| } *
# | | * 39|} *
# | | * 40|\n *
# | 8|=== get 2 rows with count | 41|=== get 2 rows with count |
# | 9|Request: | 42|Request: |
# | 10|GET /artist?rows=2&with=count | 43|GET /artist?rows=2&with=count |
# | 11|Accept: application/hal+json,application/json | 44|Accept: application/hal+json,application/json |
# | 12|Response: | 45|Response: |
# * 13|500 Internal Server Error * 46|200 OK *
# | 14|Content-type: application/hal+json | 47|Content-type: application/hal+json |
# | | * 48|{ *
# | | * 49| "_embedded" : { *
# | | * 50| "artist" : [ *
# | | * 51| { *
# | | * 52| "_links" : { *
# | | * 53| "cds" : { *
# | | * 54| "href" : "/cd?me.artist=1" *
# | | * 55| }, *
# | | * 56| "cds_cref_cond" : { *
# | | * 57| "href" : "/cd/1" *
# | | * 58| }, *
# | | * 59| "self" : { *
# | | * 60| "href" : "/artist/1" *
# | | * 61| } *
# | | * 62| }, *
# | | * 63| "artistid" : 1, *
# | | * 64| "charfield" : null, *
# | | * 65| "name" : "Caterwauler McCrae", *
# | | * 66| "rank" : 13 *
# | | * 67| }, *
# | | * 68| { *
# | | * 69| "_links" : { *
# | | * 70| "cds" : { *
# | | * 71| "href" : "/cd?me.artist=2" *
# | | * 72| }, *
# | | * 73| "cds_cref_cond" : { *
# | | * 74| "href" : "/cd/2" *
# | | * 75| }, *
# | | * 76| "self" : { *
# | | * 77| "href" : "/artist/2" *
# | | * 78| } *
# | | * 79| }, *
# | | * 80| "artistid" : 2, *
# | | * 81| "charfield" : null, *
# | | * 82| "name" : "Random Boy Band", *
# | | * 83| "rank" : 13 *
# | | * 84| } *
# | | * 85| ] *
# | | * 86| }, *
# | | * 87| "_links" : { *
# | | * 88| "last" : { *
# | | * 89| "href" : "/artist?rows=2&with=count&page=3" *
# | | * 90| }, *
# | | * 91| "next" : { *
# | | * 92| "href" : "/artist?rows=2&with=count&page=2" *
# | | * 93| }, *
# | | * 94| "self" : { *
# | | * 95| "href" : "/artist?rows=2&with=count&page=1", *
# | | * 96| "title" : "TestSchema::Result::Artist" *
# | | * 97| } *
# | | * 98| }, *
# | | * 99| "_meta" : { *
# | | * 100| "count" : 6 *
# | | * 101| } *
# | | * 102|} *
# | | * 103|\n *
# | 15|=== get 2 rows from second \'page\' | 104|=== get 2 rows from second \'page\' |
# | 16|Request: | 105|Request: |
# | 17|GET /artist?rows=2&page=2 | 106|GET /artist?rows=2&page=2 |
# | 18|Accept: application/hal+json,application/json | 107|Accept: application/hal+json,application/json |
# | 19|Response: | 108|Response: |
# * 20|500 Internal Server Error * 109|200 OK *
# | 21|Content-type: application/hal+json | 110|Content-type: application/hal+json |
# | | * 111|{ *
# | | * 112| "_embedded" : { *
# | | * 113| "artist" : [ *
# | | * 114| { *
# | | * 115| "_links" : { *
# | | * 116| "cds" : { *
# | | * 117| "href" : "/cd?me.artist=3" *
# | | * 118| }, *
# | | * 119| "cds_cref_cond" : { *
# | | * 120| "href" : "/cd/3" *
# | | * 121| }, *
# | | * 122| "self" : { *
# | | * 123| "href" : "/artist/3" *
# | | * 124| } *
# | | * 125| }, *
# | | * 126| "artistid" : 3, *
# | | * 127| "charfield" : null, *
# | | * 128| "name" : "We Are Goth", *
# | | * 129| "rank" : 13 *
# | | * 130| }, *
# | | * 131| { *
# | | * 132| "_links" : { *
# | | * 133| "cds" : { *
# | | * 134| "href" : "/cd?me.artist=4" *
# | | * 135| }, *
# | | * 136| "cds_cref_cond" : { *
# | | * 137| "href" : "/cd/4" *
# | | * 138| }, *
# | | * 139| "self" : { *
# | | * 140| "href" : "/artist/4" *
# | | * 141| } *
# | | * 142| }, *
# | | * 143| "artistid" : 4, *
# | | * 144| "charfield" : null, *
# | | * 145| "name" : "KielbaSka", *
# | | * 146| "rank" : 13 *
# | | * 147| } *
# | | * 148| ] *
# | | * 149| }, *
# | | * 150| "_links" : { *
# | | * 151| "first" : { *
# | | * 152| "href" : "/artist?rows=2&page=1" *
# | | * 153| }, *
# | | * 154| "next" : { *
# | | * 155| "href" : "/artist?rows=2&page=3" *
# | | * 156| }, *
# | | * 157| "prev" : { *
# | | * 158| "href" : "/artist?rows=2&page=1" *
# | | * 159| }, *
# | | * 160| "self" : { *
# | | * 161| "href" : "/artist?rows=2&page=2", *
# | | * 162| "title" : "TestSchema::Result::Artist" *
# | | * 163| } *
# | | * 164| } *
# | | * 165|} *
# | | * 166|\n *
# | 22|' | 167|' |
# +---+-----------------------------------------------+----+-------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Paging ====='
# at t/11-paging-hal.t line 17.
# Looks like you failed 3 tests of 3.
t/11-paging-hal.t ........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/6NuzMmaKB_
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Paging =====
# --- Config:
# --- Name: get 1 row
# GET /artist?rows=1
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get 2 rows with count
# GET /artist?rows=2&with=count
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get 2 rows from second 'page'
# GET /artist?rows=2&page=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
not ok 1 - 11-paging-hal.t output in t/11-paging-hal.got matches t/11-paging-hal.exp
1..1
not ok 3 - ===== Paging =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a4b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a868), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ec00), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ec00), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19c8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311040)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19c8), Moose::Meta::Instance=HASH(0x937b268), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311040), HASH(0x9311570)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370e28)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370e28)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9370e28)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb640)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/12-searching-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( ( me.artistid = ? OR me.artistid = ? ) ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid <= ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test '12-searching-core.t output in t/12-searching-core.got matches t/12-searching-core.exp'
# at t/lib/TestDS.pm line 67.
# +---+----------------------------------------------------------------+---+----------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+----------------------------------------------------------------+---+----------------------------------------------------------------+
# | 1|'=== get 1 row from set by qualifying the key | 1|'=== get 1 row from set by qualifying the key |
# | 2|Request: | 2|Request: |
# | 3|GET /artist?me.artistid=2 | 3|GET /artist?me.artistid=2 |
# | 4|Response: | 4|Response: |
# * 5|500 Internal Server Error * 5|200 OK *
# | 6|Content-type: application/json | 6|Content-type: application/json |
# | | * 7|[ *
# | | * 8| { *
# | | * 9| "artistid" : 2, *
# | | * 10| "charfield" : null, *
# | | * 11| "name" : "Random Boy Band", *
# | | * 12| "rank" : 13 *
# | | * 13| } *
# | | * 14|] *
# | | * 15|\n *
# | 7|=== get specific rows via json array | 16|=== get specific rows via json array |
# | 8|Request: | 17|Request: |
# | 9|GET /artist PARAMS: me.artistid~json=>[1,3] | 18|GET /artist PARAMS: me.artistid~json=>[1,3] |
# | 10|GET /artist?me.artistid~json=%5B1%2C3%5D | 19|GET /artist?me.artistid~json=%5B1%2C3%5D |
# | 11|Response: | 20|Response: |
# * 12|500 Internal Server Error * 21|200 OK *
# | 13|Content-type: application/json | 22|Content-type: application/json |
# | | * 23|[ *
# | | * 24| { *
# | | * 25| "artistid" : 1, *
# | | * 26| "charfield" : null, *
# | | * 27| "name" : "Caterwauler McCrae", *
# | | * 28| "rank" : 13 *
# | | * 29| }, *
# | | * 30| { *
# | | * 31| "artistid" : 3, *
# | | * 32| "charfield" : null, *
# | | * 33| "name" : "We Are Goth", *
# | | * 34| "rank" : 13 *
# | | * 35| } *
# | | * 36|] *
# | | * 37|\n *
# | 14|=== get specific rows via json qualifier expression | 38|=== get specific rows via json qualifier expression |
# | 15|Request: | 39|Request: |
# | 16|GET /artist PARAMS: me.artistid~json=>{"<=",2} | 40|GET /artist PARAMS: me.artistid~json=>{"<=",2} |
# | 17|GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D | 41|GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D |
# | 18|Response: | 42|Response: |
# * 19|500 Internal Server Error * 43|200 OK *
# | 20|Content-type: application/json | 44|Content-type: application/json |
# | | * 45|[ *
# | | * 46| { *
# | | * 47| "artistid" : 1, *
# | | * 48| "charfield" : null, *
# | | * 49| "name" : "Caterwauler McCrae", *
# | | * 50| "rank" : 13 *
# | | * 51| }, *
# | | * 52| { *
# | | * 53| "artistid" : 2, *
# | | * 54| "charfield" : null, *
# | | * 55| "name" : "Random Boy Band", *
# | | * 56| "rank" : 13 *
# | | * 57| } *
# | | * 58|] *
# | | * 59|\n *
# | 21|=== get no rows, empty set, due to qualifier that matches none | 60|=== get no rows, empty set, due to qualifier that matches none |
# | 22|Request: | 61|Request: |
# | 23|GET /artist?me.artistid=999999 | 62|GET /artist?me.artistid=999999 |
# | 24|Response: | 63|Response: |
# * 25|500 Internal Server Error * 64|200 OK *
# | 26|Content-type: application/json | 65|Content-type: application/json |
# | | * 66|[] *
# | | * 67|\n *
# | 27|' | 68|' |
# +---+----------------------------------------------------------------+---+----------------------------------------------------------------+
# Looks like you failed 1 test of 2.
# Failed test '===== Paging ====='
# at t/12-searching-core.t line 18.
# Looks like you failed 3 tests of 3.
t/12-searching-core.t ....
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/vElsZW9IT6
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Paging =====
# --- Config:
# --- Name: get 1 row from set by qualifying the key
# GET /artist?me.artistid=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get specific rows via json array
# GET /artist?me.artistid~json=%5B1%2C3%5D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get specific rows via json qualifier expression
# GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: get no rows, empty set, due to qualifier that matches none
# GET /artist?me.artistid=999999
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: invalid request due to qualifying by non-existant field
ok 1 # skip need to add post-processing of the error result
not ok 2 - 12-searching-core.t output in t/12-searching-core.got matches t/12-searching-core.exp
1..2
not ok 3 - ===== Paging =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a4b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a868), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ec00), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ec00), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19c8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311040)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa19c8), Moose::Meta::Instance=HASH(0x937b268), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311040), HASH(0x9311570)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93117e0), HASH(0x9311570)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370e28)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9370e28)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9370e28)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb640)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/12-searching-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( ( me.artistid = ? OR me.artistid = ? ) ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid <= ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test '12-searching-hal.t output in t/12-searching-hal.got matches t/12-searching-hal.exp'
# at t/lib/TestDS.pm line 67.
# +---+----------------------------------------------------------------+----+-------------------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+----------------------------------------------------------------+----+-------------------------------------------------------------------------------------+
# | 1|'=== get 1 row from set by qualifying the key | 1|'=== get 1 row from set by qualifying the key |
# | 2|Request: | 2|Request: |
# | 3|GET /artist?me.artistid=2 | 3|GET /artist?me.artistid=2 |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json |
# | | * 8|{ *
# | | * 9| "_embedded" : { *
# | | * 10| "artist" : [ *
# | | * 11| { *
# | | * 12| "_links" : { *
# | | * 13| "cds" : { *
# | | * 14| "href" : "/cd?me.artist=2" *
# | | * 15| }, *
# | | * 16| "cds_cref_cond" : { *
# | | * 17| "href" : "/cd/2" *
# | | * 18| }, *
# | | * 19| "self" : { *
# | | * 20| "href" : "/artist/2" *
# | | * 21| } *
# | | * 22| }, *
# | | * 23| "artistid" : 2, *
# | | * 24| "charfield" : null, *
# | | * 25| "name" : "Random Boy Band", *
# | | * 26| "rank" : 13 *
# | | * 27| } *
# | | * 28| ] *
# | | * 29| }, *
# | | * 30| "_links" : { *
# | | * 31| "self" : { *
# | | * 32| "href" : "/artist?rows=30&me.artistid=2&page=1", *
# | | * 33| "title" : "TestSchema::Result::Artist" *
# | | * 34| } *
# | | * 35| } *
# | | * 36|} *
# | | * 37|\n *
# | 8|=== get specific rows via json array | 38|=== get specific rows via json array |
# | 9|Request: | 39|Request: |
# | 10|GET /artist PARAMS: me.artistid~json=>[1,3] | 40|GET /artist PARAMS: me.artistid~json=>[1,3] |
# | 11|GET /artist?me.artistid~json=%5B1%2C3%5D | 41|GET /artist?me.artistid~json=%5B1%2C3%5D |
# | 12|Accept: application/hal+json,application/json | 42|Accept: application/hal+json,application/json |
# | 13|Response: | 43|Response: |
# * 14|500 Internal Server Error * 44|200 OK *
# | 15|Content-type: application/hal+json | 45|Content-type: application/hal+json |
# | | * 46|{ *
# | | * 47| "_embedded" : { *
# | | * 48| "artist" : [ *
# | | * 49| { *
# | | * 50| "_links" : { *
# | | * 51| "cds" : { *
# | | * 52| "href" : "/cd?me.artist=1" *
# | | * 53| }, *
# | | * 54| "cds_cref_cond" : { *
# | | * 55| "href" : "/cd/1" *
# | | * 56| }, *
# | | * 57| "self" : { *
# | | * 58| "href" : "/artist/1" *
# | | * 59| } *
# | | * 60| }, *
# | | * 61| "artistid" : 1, *
# | | * 62| "charfield" : null, *
# | | * 63| "name" : "Caterwauler McCrae", *
# | | * 64| "rank" : 13 *
# | | * 65| }, *
# | | * 66| { *
# | | * 67| "_links" : { *
# | | * 68| "cds" : { *
# | | * 69| "href" : "/cd?me.artist=3" *
# | | * 70| }, *
# | | * 71| "cds_cref_cond" : { *
# | | * 72| "href" : "/cd/3" *
# | | * 73| }, *
# | | * 74| "self" : { *
# | | * 75| "href" : "/artist/3" *
# | | * 76| } *
# | | * 77| }, *
# | | * 78| "artistid" : 3, *
# | | * 79| "charfield" : null, *
# | | * 80| "name" : "We Are Goth", *
# | | * 81| "rank" : 13 *
# | | * 82| } *
# | | * 83| ] *
# | | * 84| }, *
# | | * 85| "_links" : { *
# | | * 86| "self" : { *
# | | * 87| "href" : "/artist?rows=30&me.artistid~json=%5B1%2C3%5D&page=1", *
# | | * 88| "title" : "TestSchema::Result::Artist" *
# | | * 89| } *
# | | * 90| } *
# | | * 91|} *
# | | * 92|\n *
# | 16|=== get specific rows via json qualifier expression | 93|=== get specific rows via json qualifier expression |
# | 17|Request: | 94|Request: |
# | 18|GET /artist PARAMS: me.artistid~json=>{"<=",2} | 95|GET /artist PARAMS: me.artistid~json=>{"<=",2} |
# | 19|GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D | 96|GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D |
# | 20|Accept: application/hal+json,application/json | 97|Accept: application/hal+json,application/json |
# | 21|Response: | 98|Response: |
# * 22|500 Internal Server Error * 99|200 OK *
# | 23|Content-type: application/hal+json | 100|Content-type: application/hal+json |
# | | * 101|{ *
# | | * 102| "_embedded" : { *
# | | * 103| "artist" : [ *
# | | * 104| { *
# | | * 105| "_links" : { *
# | | * 106| "cds" : { *
# | | * 107| "href" : "/cd?me.artist=1" *
# | | * 108| }, *
# | | * 109| "cds_cref_cond" : { *
# | | * 110| "href" : "/cd/1" *
# | | * 111| }, *
# | | * 112| "self" : { *
# | | * 113| "href" : "/artist/1" *
# | | * 114| } *
# | | * 115| }, *
# | | * 116| "artistid" : 1, *
# | | * 117| "charfield" : null, *
# | | * 118| "name" : "Caterwauler McCrae", *
# | | * 119| "rank" : 13 *
# | | * 120| }, *
# | | * 121| { *
# | | * 122| "_links" : { *
# | | * 123| "cds" : { *
# | | * 124| "href" : "/cd?me.artist=2" *
# | | * 125| }, *
# | | * 126| "cds_cref_cond" : { *
# | | * 127| "href" : "/cd/2" *
# | | * 128| }, *
# | | * 129| "self" : { *
# | | * 130| "href" : "/artist/2" *
# | | * 131| } *
# | | * 132| }, *
# | | * 133| "artistid" : 2, *
# | | * 134| "charfield" : null, *
# | | * 135| "name" : "Random Boy Band", *
# | | * 136| "rank" : 13 *
# | | * 137| } *
# | | * 138| ] *
# | | * 139| }, *
# | | * 140| "_links" : { *
# | | * 141| "self" : { *
# | | * 142| "href" : "/artist?rows=30&me.artistid~json=%7B%22%3C%3D%22%3A2%7D&page=1", *
# | | * 143| "title" : "TestSchema::Result::Artist" *
# | | * 144| } *
# | | * 145| } *
# | | * 146|} *
# | | * 147|\n *
# | 24|=== get no rows, empty set, due to qualifier that matches none | 148|=== get no rows, empty set, due to qualifier that matches none |
# | 25|Request: | 149|Request: |
# | 26|GET /artist?me.artistid=999999 | 150|GET /artist?me.artistid=999999 |
# | 27|Accept: application/hal+json,application/json | 151|Accept: application/hal+json,application/json |
# | 28|Response: | 152|Response: |
# * 29|500 Internal Server Error * 153|200 OK *
# | 30|Content-type: application/hal+json | 154|Content-type: application/hal+json |
# | | * 155|{ *
# | | * 156| "_embedded" : { *
# | | * 157| "artist" : [] *
# | | * 158| }, *
# | | * 159| "_links" : { *
# | | * 160| "self" : { *
# | | * 161| "href" : "/artist?rows=30&me.artistid=999999&page=1", *
# | | * 162| "title" : "TestSchema::Result::Artist" *
# | | * 163| } *
# | | * 164| } *
# | | * 165|} *
# | | * 166|\n *
# | 31|' | 167|' |
# +---+----------------------------------------------------------------+----+-------------------------------------------------------------------------------------+
# Looks like you failed 1 test of 2.
# Failed test '===== Paging ====='
# at t/12-searching-hal.t line 18.
# Looks like you failed 3 tests of 3.
t/12-searching-hal.t .....
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/YRtVs8336E
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Paging =====
# --- Config:
# --- Name: get 1 row from set by qualifying the key
# GET /artist?me.artistid=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get specific rows via json array
# GET /artist?me.artistid~json=%5B1%2C3%5D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get specific rows via json qualifier expression
# GET /artist?me.artistid~json=%7B%22%3C%3D%22%3A2%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: get no rows, empty set, due to qualifier that matches none
# GET /artist?me.artistid=999999
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: invalid request due to qualifying by non-existant field
ok 1 # skip need to add post-processing of the error result
not ok 2 - 12-searching-hal.t output in t/12-searching-hal.got matches t/12-searching-hal.exp
1..2
not ok 3 - ===== Paging =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a370), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a720), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8eac0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8eac0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1878), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310ff8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1878), Moose::Meta::Instance=HASH(0x937b260), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310ff8), HASH(0x9311528)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311798), HASH(0x9311528)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311798), HASH(0x9311528)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311798), HASH(0x9311528)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310e38)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310e38)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310e38)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb5b8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/13-fields-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test at t/13-fields-core.t line 20.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test '/artist data looks sane'
# at t/13-fields-core.t line 22.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/13-fields-core.t line 27.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'data isn't a hash'
# at t/13-fields-core.t line 28.
# got: ''
# expected: 'HASH'
# Failed test 'set has less than 2 attributes'
# at t/13-fields-core.t line 28.
# '0'
# >=
# '2'
# Failed test 'artistid'
# at t/13-fields-core.t line 29.
# got: undef
# expected: '1'
Use of uninitialized value in hash element at t/13-fields-core.t line 30.
# Failed test 'data matches'
# at t/13-fields-core.t line 30.
# +----+-----+----------+
# | Elt|Got |Expected |
# +----+-----+----------+
# * 0|{} |undef *
# +----+-----+----------+
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.rank FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/13-fields-core.t line 34.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'data isn't a hash'
# at t/13-fields-core.t line 35.
# got: ''
# expected: 'HASH'
# Failed test 'set has less than 2 attributes'
# at t/13-fields-core.t line 35.
# '0'
# >=
# '2'
# Failed test 'artistid'
# at t/13-fields-core.t line 36.
# got: undef
# expected: '2'
# Failed test 'has rank field'
# at t/13-fields-core.t line 37.
# Looks like you failed 12 tests of 13.
# Failed test '===== Get with fields param ====='
# at t/13-fields-core.t line 39.
# Looks like you failed 3 tests of 3.
t/13-fields-core.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/DddfvgxcdU
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Get with fields param =====
# GET /artist?fields=artistid,name
not ok 1
not ok 2 - /artist data looks sane
ok 3 - rank fields not preset
# GET /artist/1?fields=artistid,name
not ok 4
not ok 5 - data isn't a hash
not ok 6 - set has less than 2 attributes
not ok 7 - artistid
not ok 8 - data matches
# GET /artist/2?fields=artistid,rank
not ok 9
not ok 10 - data isn't a hash
not ok 11 - set has less than 2 attributes
not ok 12 - artistid
not ok 13 - has rank field
1..13
not ok 3 - ===== Get with fields param =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a5a8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a958), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ed10), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ed10), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1af8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93111b8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1af8), Moose::Meta::Instance=HASH(0x937b3e0), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93111b8), HASH(0x93116e8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311958), HASH(0x93116e8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311958), HASH(0x93116e8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311958), HASH(0x93116e8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310320)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310320)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310320)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb760)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/13-fields-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test at t/13-fields-hal.t line 20.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'data isn't a hash'
# at t/13-fields-hal.t line 21.
# got: ''
# expected: 'HASH'
# Failed test '_embedded isn't hash'
# at t/13-fields-hal.t line 21.
# got: ''
# expected: 'HASH'
# HASH(0xa97f0a8)
# Failed test '_embedded has artist array'
# at t/13-fields-hal.t line 21.
# got: ''
# expected: 'ARRAY'
# Failed test '/artist includes 1'
# at t/13-fields-hal.t line 24.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 2'
# at t/13-fields-hal.t line 24.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 3'
# at t/13-fields-hal.t line 24.
# got: ''
# expected: 'HASH'
# Failed test '/artist data looks sane'
# at t/13-fields-hal.t line 25.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/13-fields-hal.t line 30.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'data isn't a hash'
# at t/13-fields-hal.t line 31.
# got: ''
# expected: 'HASH'
# Failed test 'set has less than 2 attributes'
# at t/13-fields-hal.t line 31.
# '0'
# >=
# '2'
# Failed test 'artistid'
# at t/13-fields-hal.t line 32.
# got: undef
# expected: '1'
Use of uninitialized value in hash element at t/13-fields-hal.t line 33.
# Failed test 'data matches'
# at t/13-fields-hal.t line 33.
# +----+-----+----------+
# | Elt|Got |Expected |
# +----+-----+----------+
# * 0|{} |undef *
# +----+-----+----------+
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.rank FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/13-fields-hal.t line 37.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'data isn't a hash'
# at t/13-fields-hal.t line 38.
# got: ''
# expected: 'HASH'
# Failed test 'set has less than 2 attributes'
# at t/13-fields-hal.t line 38.
# '0'
# >=
# '2'
# Failed test 'artistid'
# at t/13-fields-hal.t line 39.
# got: undef
# expected: '2'
# Failed test 'has rank field'
# at t/13-fields-hal.t line 40.
# Looks like you failed 18 tests of 19.
# Failed test '===== Get with fields param ====='
# at t/13-fields-hal.t line 42.
# Looks like you failed 3 tests of 3.
t/13-fields-hal.t ........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/bKP2MaJFfb
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Get with fields param =====
# GET /artist?fields=artistid,name
not ok 1
not ok 2 - data isn't a hash
not ok 3 - _embedded isn't hash
not ok 4 - _embedded has artist array
not ok 5 - /artist includes 1
not ok 6 - /artist includes 2
not ok 7 - /artist includes 3
not ok 8 - /artist data looks sane
ok 9 - rank fields not preset
# GET /artist/1?fields=artistid,name
not ok 10
not ok 11 - data isn't a hash
not ok 12 - set has less than 2 attributes
not ok 13 - artistid
not ok 14 - data matches
# GET /artist/2?fields=artistid,rank
not ok 15
not ok 16 - data isn't a hash
not ok 17 - set has less than 2 attributes
not ok 18 - artistid
not ok 19 - has rank field
1..19
not ok 3 - ===== Get with fields param =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f69fa0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a350), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8e718), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8e718), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa14d0), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310a60)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa14d0), Moose::Meta::Instance=HASH(0x937aa08), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310a60), HASH(0x9310f90)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311200), HASH(0x9310f90)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311200), HASH(0x9310f90)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311200), HASH(0x9310f90)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93707a8)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93707a8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93707a8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb340)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/14-distinct-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.year FROM cd me GROUP BY me.year ORDER BY year ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test at t/14-distinct-core.t line 19.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test at t/14-distinct-core.t line 20.
# Compared reftype($data)
# got : undef
# expect : 'ARRAY'
# Looks like you failed 2 tests of 2.
# Failed test '===== GET distinct ====='
# at t/14-distinct-core.t line 23.
# Looks like you failed 3 tests of 3.
t/14-distinct-core.t .....
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/_u8u_SrW4f
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== GET distinct =====
# GET /cd?fields=year&order=year&distinct=1
not ok 1
not ok 2
1..2
not ok 3 - ===== GET distinct =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a3e8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a798), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8eb48), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8eb48), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1940), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310f10)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1940), Moose::Meta::Instance=HASH(0x937b178), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310f10), HASH(0x9311440)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93116b0), HASH(0x9311440)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93116b0), HASH(0x9311440)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93116b0), HASH(0x9311440)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310d50)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310d50)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310d50)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb618)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/14-distinct-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.year FROM cd me GROUP BY me.year ORDER BY year ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test at t/14-distinct-hal.t line 19.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'data isn't a hash'
# at t/14-distinct-hal.t line 20.
# got: ''
# expected: 'HASH'
# Failed test '_embedded isn't hash'
# at t/14-distinct-hal.t line 20.
# got: ''
# expected: 'HASH'
# HASH(0xaa5bba8)
# Failed test '_embedded has cd array'
# at t/14-distinct-hal.t line 20.
# got: ''
# expected: 'ARRAY'
# Failed test at t/14-distinct-hal.t line 21.
# Compared reftype($data)
# got : undef
# expect : 'ARRAY'
# Looks like you failed 5 tests of 5.
# Failed test '===== GET distinct ====='
# at t/14-distinct-hal.t line 24.
# Looks like you failed 3 tests of 3.
t/14-distinct-hal.t ......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/ieGVFuH8x2
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== GET distinct =====
# GET /cd?fields=year&order=year&distinct=1
not ok 1
not ok 2 - data isn't a hash
not ok 3 - _embedded isn't hash
not ok 4 - _embedded has cd array
not ok 5
1..5
not ok 3 - ===== GET distinct =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a2f8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a6a8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ea50), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ea50), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1800), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310d10)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1800), Moose::Meta::Instance=HASH(0x937aee0), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310d10), HASH(0x9311240)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93114b0), HASH(0x9311240)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93114b0), HASH(0x9311240)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93114b0), HASH(0x9311240)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930fe78)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930fe78)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x930fe78)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb648)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/30-ordering-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.year FROM cd me ORDER BY me.cdid DESC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.year, me.title FROM cd me ORDER BY me.year DESC, title DESC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.year, me.title FROM cd me ORDER BY year DESC, title DESC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test '30-ordering-core.t output in t/30-ordering-core.got matches t/30-ordering-core.exp'
# at t/lib/TestDS.pm line 67.
# +---+-----------------------------------------------------------------+----+-----------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+-----------------------------------------------------------------+----+-----------------------------------------------------------------+
# | 1|'=== order by PK asc | 1|'=== order by PK asc |
# | 2|Request: | 2|Request: |
# | 3|GET /cd?order=me.cdid | 3|GET /cd?order=me.cdid |
# | 4|Response: | 4|Response: |
# * 5|500 Internal Server Error * 5|200 OK *
# | 6|Content-type: application/json | 6|Content-type: application/json |
# | | * 7|[ *
# | | * 8| { *
# | | * 9| "artist" : 1, *
# | | * 10| "cdid" : 1, *
# | | * 11| "genreid" : 1, *
# | | * 12| "single_track" : null, *
# | | * 13| "title" : "Spoonful of bees", *
# | | * 14| "year" : "1999" *
# | | * 15| }, *
# | | * 16| { *
# | | * 17| "artist" : 1, *
# | | * 18| "cdid" : 2, *
# | | * 19| "genreid" : 2, *
# | | * 20| "single_track" : null, *
# | | * 21| "title" : "Forkful of bees", *
# | | * 22| "year" : "2001" *
# | | * 23| }, *
# | | * 24| { *
# | | * 25| "artist" : 1, *
# | | * 26| "cdid" : 3, *
# | | * 27| "genreid" : 2, *
# | | * 28| "single_track" : null, *
# | | * 29| "title" : "Caterwaulin\' Blues", *
# | | * 30| "year" : "1997" *
# | | * 31| }, *
# | | * 32| { *
# | | * 33| "artist" : 2, *
# | | * 34| "cdid" : 4, *
# | | * 35| "genreid" : 3, *
# | | * 36| "single_track" : null, *
# | | * 37| "title" : "Generic Manufactured Singles", *
# | | * 38| "year" : "2001" *
# | | * 39| }, *
# | | * 40| { *
# | | * 41| "artist" : 3, *
# | | * 42| "cdid" : 5, *
# | | * 43| "genreid" : 4, *
# | | * 44| "single_track" : null, *
# | | * 45| "title" : "Come Be Depressed With Us", *
# | | * 46| "year" : "1998" *
# | | * 47| } *
# | | * 48|] *
# | | * 49|\n *
# | 7|=== order by PK desc | 50|=== order by PK desc |
# | 8|Request: | 51|Request: |
# | 9|GET /cd?order=me.cdid%20desc&fields=cdid,year | 52|GET /cd?order=me.cdid%20desc&fields=cdid,year |
# | 10|Response: | 53|Response: |
# * 11|500 Internal Server Error * 54|200 OK *
# | 12|Content-type: application/json | 55|Content-type: application/json |
# | | * 56|[ *
# | | * 57| { *
# | | * 58| "cdid" : 5, *
# | | * 59| "year" : "1998" *
# | | * 60| }, *
# | | * 61| { *
# | | * 62| "cdid" : 4, *
# | | * 63| "year" : "2001" *
# | | * 64| }, *
# | | * 65| { *
# | | * 66| "cdid" : 3, *
# | | * 67| "year" : "1997" *
# | | * 68| }, *
# | | * 69| { *
# | | * 70| "cdid" : 2, *
# | | * 71| "year" : "2001" *
# | | * 72| }, *
# | | * 73| { *
# | | * 74| "cdid" : 1, *
# | | * 75| "year" : "1999" *
# | | * 76| } *
# | | * 77|] *
# | | * 78|\n *
# | 13|=== order by year desc and title desc | 79|=== order by year desc and title desc |
# | 14|Request: | 80|Request: |
# | 15|GET /cd?sort=me.year%20desc,title%20desc&fields=cdid,year,title | 81|GET /cd?sort=me.year%20desc,title%20desc&fields=cdid,year,title |
# | 16|Response: | 82|Response: |
# * 17|500 Internal Server Error * 83|200 OK *
# | 18|Content-type: application/json | 84|Content-type: application/json |
# | | * 85|[ *
# | | * 86| { *
# | | * 87| "cdid" : 4, *
# | | * 88| "title" : "Generic Manufactured Singles", *
# | | * 89| "year" : "2001" *
# | | * 90| }, *
# | | * 91| { *
# | | * 92| "cdid" : 2, *
# | | * 93| "title" : "Forkful of bees", *
# | | * 94| "year" : "2001" *
# | | * 95| }, *
# | | * 96| { *
# | | * 97| "cdid" : 1, *
# | | * 98| "title" : "Spoonful of bees", *
# | | * 99| "year" : "1999" *
# | | * 100| }, *
# | | * 101| { *
# | | * 102| "cdid" : 5, *
# | | * 103| "title" : "Come Be Depressed With Us", *
# | | * 104| "year" : "1998" *
# | | * 105| }, *
# | | * 106| { *
# | | * 107| "cdid" : 3, *
# | | * 108| "title" : "Caterwaulin\' Blues", *
# | | * 109| "year" : "1997" *
# | | * 110| } *
# | | * 111|] *
# | | * 112|\n *
# | 19|=== order by year desc and title desc using JSON API style | 113|=== order by year desc and title desc using JSON API style |
# | 20|Request: | 114|Request: |
# | 21|GET /cd?sort=-year,-title&fields=cdid,year,title | 115|GET /cd?sort=-year,-title&fields=cdid,year,title |
# | 22|Response: | 116|Response: |
# * 23|500 Internal Server Error * 117|200 OK *
# | 24|Content-type: application/json | 118|Content-type: application/json |
# | | * 119|[ *
# | | * 120| { *
# | | * 121| "cdid" : 4, *
# | | * 122| "title" : "Generic Manufactured Singles", *
# | | * 123| "year" : "2001" *
# | | * 124| }, *
# | | * 125| { *
# | | * 126| "cdid" : 2, *
# | | * 127| "title" : "Forkful of bees", *
# | | * 128| "year" : "2001" *
# | | * 129| }, *
# | | * 130| { *
# | | * 131| "cdid" : 1, *
# | | * 132| "title" : "Spoonful of bees", *
# | | * 133| "year" : "1999" *
# | | * 134| }, *
# | | * 135| { *
# | | * 136| "cdid" : 5, *
# | | * 137| "title" : "Come Be Depressed With Us", *
# | | * 138| "year" : "1998" *
# | | * 139| }, *
# | | * 140| { *
# | | * 141| "cdid" : 3, *
# | | * 142| "title" : "Caterwaulin\' Blues", *
# | | * 143| "year" : "1997" *
# | | * 144| } *
# | | * 145|] *
# | | * 146|\n *
# | 25|' | 147|' |
# +---+-----------------------------------------------------------------+----+-----------------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Ordering ====='
# at t/30-ordering-core.t line 20.
# Looks like you failed 3 tests of 3.
t/30-ordering-core.t .....
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/HB6oZFRPZo
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Ordering =====
# --- Config:
# --- Name: order by PK asc
# GET /cd?order=me.cdid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: order by PK desc
# GET /cd?order=me.cdid%20desc&fields=cdid,year
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: order by year desc and title desc
# GET /cd?sort=me.year%20desc,title%20desc&fields=cdid,year,title
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: order by year desc and title desc using JSON API style
# GET /cd?sort=-year,-title&fields=cdid,year,title
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
not ok 1 - 30-ordering-core.t output in t/30-ordering-core.got matches t/30-ordering-core.exp
1..1
not ok 3 - ===== Ordering =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a3a8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a758), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8eb20), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8eb20), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1888), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310f08)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1888), Moose::Meta::Instance=HASH(0x937b250), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310f08), HASH(0x9311438)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93116a8), HASH(0x9311438)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93116a8), HASH(0x9311438)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93116a8), HASH(0x9311438)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310d48)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310d48)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310d48)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb5d8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/30-ordering-hal.t line 4
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me ORDER BY me.cdid DESC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me ORDER BY me.year DESC, title DESC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist ORDER BY artist.name ASC, cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield, genre.genreid, genre.name FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid ORDER BY genre.name DESC, artist.name ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test '30-ordering-hal.t output in t/30-ordering-hal.got matches t/30-ordering-hal.exp'
# at t/lib/TestDS.pm line 67.
# +---+---------------------------------------------------------------------------+----+---------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+---------------------------------------------------------------------------+----+---------------------------------------------------------------------------+
# | 1|'=== order by PK asc | 1|'=== order by PK asc |
# | 2|Request: | 2|Request: |
# | 3|GET /cd?order=me.cdid | 3|GET /cd?order=me.cdid |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json |
# | | * 8|{ *
# | | * 9| "_embedded" : { *
# | | * 10| "cd" : [ *
# | | * 11| { *
# | | * 12| "_links" : { *
# | | * 13| "artist" : { *
# | | * 14| "href" : "/artist/1" *
# | | * 15| }, *
# | | * 16| "cd_to_producer" : { *
# | | * 17| "href" : "/cd_to_producer?me.cd=1" *
# | | * 18| }, *
# | | * 19| "genre" : { *
# | | * 20| "href" : "/genre/1" *
# | | * 21| }, *
# | | * 22| "self" : { *
# | | * 23| "href" : "/cd/1" *
# | | * 24| }, *
# | | * 25| "tracks" : { *
# | | * 26| "href" : "/track?me.cd=1" *
# | | * 27| } *
# | | * 28| }, *
# | | * 29| "artist" : 1, *
# | | * 30| "cdid" : 1, *
# | | * 31| "genreid" : 1, *
# | | * 32| "single_track" : null, *
# | | * 33| "title" : "Spoonful of bees", *
# | | * 34| "year" : "1999" *
# | | * 35| }, *
# | | * 36| { *
# | | * 37| "_links" : { *
# | | * 38| "artist" : { *
# | | * 39| "href" : "/artist/1" *
# | | * 40| }, *
# | | * 41| "cd_to_producer" : { *
# | | * 42| "href" : "/cd_to_producer?me.cd=2" *
# | | * 43| }, *
# | | * 44| "genre" : { *
# | | * 45| "href" : "/genre/2" *
# | | * 46| }, *
# | | * 47| "self" : { *
# | | * 48| "href" : "/cd/2" *
# | | * 49| }, *
# | | * 50| "tracks" : { *
# | | * 51| "href" : "/track?me.cd=2" *
# | | * 52| } *
# | | * 53| }, *
# | | * 54| "artist" : 1, *
# | | * 55| "cdid" : 2, *
# | | * 56| "genreid" : 2, *
# | | * 57| "single_track" : null, *
# | | * 58| "title" : "Forkful of bees", *
# | | * 59| "year" : "2001" *
# | | * 60| }, *
# | | * 61| { *
# | | * 62| "_links" : { *
# | | * 63| "artist" : { *
# | | * 64| "href" : "/artist/1" *
# | | * 65| }, *
# | | * 66| "cd_to_producer" : { *
# | | * 67| "href" : "/cd_to_producer?me.cd=3" *
# | | * 68| }, *
# | | * 69| "genre" : { *
# | | * 70| "href" : "/genre/2" *
# | | * 71| }, *
# | | * 72| "self" : { *
# | | * 73| "href" : "/cd/3" *
# | | * 74| }, *
# | | * 75| "tracks" : { *
# | | * 76| "href" : "/track?me.cd=3" *
# | | * 77| } *
# | | * 78| }, *
# | | * 79| "artist" : 1, *
# | | * 80| "cdid" : 3, *
# | | * 81| "genreid" : 2, *
# | | * 82| "single_track" : null, *
# | | * 83| "title" : "Caterwaulin\' Blues", *
# | | * 84| "year" : "1997" *
# | | * 85| }, *
# | | * 86| { *
# | | * 87| "_links" : { *
# | | * 88| "artist" : { *
# | | * 89| "href" : "/artist/2" *
# | | * 90| }, *
# | | * 91| "cd_to_producer" : { *
# | | * 92| "href" : "/cd_to_producer?me.cd=4" *
# | | * 93| }, *
# | | * 94| "genre" : { *
# | | * 95| "href" : "/genre/3" *
# | | * 96| }, *
# | | * 97| "self" : { *
# | | * 98| "href" : "/cd/4" *
# | | * 99| }, *
# | | * 100| "tracks" : { *
# | | * 101| "href" : "/track?me.cd=4" *
# | | * 102| } *
# | | * 103| }, *
# | | * 104| "artist" : 2, *
# | | * 105| "cdid" : 4, *
# | | * 106| "genreid" : 3, *
# | | * 107| "single_track" : null, *
# | | * 108| "title" : "Generic Manufactured Singles", *
# | | * 109| "year" : "2001" *
# | | * 110| }, *
# | | * 111| { *
# | | * 112| "_links" : { *
# | | * 113| "artist" : { *
# | | * 114| "href" : "/artist/3" *
# | | * 115| }, *
# | | * 116| "cd_to_producer" : { *
# | | * 117| "href" : "/cd_to_producer?me.cd=5" *
# | | * 118| }, *
# | | * 119| "genre" : { *
# | | * 120| "href" : "/genre/4" *
# | | * 121| }, *
# | | * 122| "self" : { *
# | | * 123| "href" : "/cd/5" *
# | | * 124| }, *
# | | * 125| "tracks" : { *
# | | * 126| "href" : "/track?me.cd=5" *
# | | * 127| } *
# | | * 128| }, *
# | | * 129| "artist" : 3, *
# | | * 130| "cdid" : 5, *
# | | * 131| "genreid" : 4, *
# | | * 132| "single_track" : null, *
# | | * 133| "title" : "Come Be Depressed With Us", *
# | | * 134| "year" : "1998" *
# | | * 135| } *
# | | * 136| ] *
# | | * 137| }, *
# | | * 138| "_links" : { *
# | | * 139| "self" : { *
# | | * 140| "href" : "/cd?rows=30&page=1", *
# | | * 141| "title" : "TestSchema::Result::CD" *
# | | * 142| } *
# | | * 143| } *
# | | * 144|} *
# | | * 145|\n *
# | 8|=== order by PK desc | 146|=== order by PK desc |
# | 9|Request: | 147|Request: |
# | 10|GET /cd?order=me.cdid%20desc | 148|GET /cd?order=me.cdid%20desc |
# | 11|Accept: application/hal+json,application/json | 149|Accept: application/hal+json,application/json |
# | 12|Response: | 150|Response: |
# * 13|500 Internal Server Error * 151|200 OK *
# | 14|Content-type: application/hal+json | 152|Content-type: application/hal+json |
# | | * 153|{ *
# | | * 154| "_embedded" : { *
# | | * 155| "cd" : [ *
# | | * 156| { *
# | | * 157| "_links" : { *
# | | * 158| "artist" : { *
# | | * 159| "href" : "/artist/3" *
# | | * 160| }, *
# | | * 161| "cd_to_producer" : { *
# | | * 162| "href" : "/cd_to_producer?me.cd=5" *
# | | * 163| }, *
# | | * 164| "genre" : { *
# | | * 165| "href" : "/genre/4" *
# | | * 166| }, *
# | | * 167| "self" : { *
# | | * 168| "href" : "/cd/5" *
# | | * 169| }, *
# | | * 170| "tracks" : { *
# | | * 171| "href" : "/track?me.cd=5" *
# | | * 172| } *
# | | * 173| }, *
# | | * 174| "artist" : 3, *
# | | * 175| "cdid" : 5, *
# | | * 176| "genreid" : 4, *
# | | * 177| "single_track" : null, *
# | | * 178| "title" : "Come Be Depressed With Us", *
# | | * 179| "year" : "1998" *
# | | * 180| }, *
# | | * 181| { *
# | | * 182| "_links" : { *
# | | * 183| "artist" : { *
# | | * 184| "href" : "/artist/2" *
# | | * 185| }, *
# | | * 186| "cd_to_producer" : { *
# | | * 187| "href" : "/cd_to_producer?me.cd=4" *
# | | * 188| }, *
# | | * 189| "genre" : { *
# | | * 190| "href" : "/genre/3" *
# | | * 191| }, *
# | | * 192| "self" : { *
# | | * 193| "href" : "/cd/4" *
# | | * 194| }, *
# | | * 195| "tracks" : { *
# | | * 196| "href" : "/track?me.cd=4" *
# | | * 197| } *
# | | * 198| }, *
# | | * 199| "artist" : 2, *
# | | * 200| "cdid" : 4, *
# | | * 201| "genreid" : 3, *
# | | * 202| "single_track" : null, *
# | | * 203| "title" : "Generic Manufactured Singles", *
# | | * 204| "year" : "2001" *
# | | * 205| }, *
# | | * 206| { *
# | | * 207| "_links" : { *
# | | * 208| "artist" : { *
# | | * 209| "href" : "/artist/1" *
# | | * 210| }, *
# | | * 211| "cd_to_producer" : { *
# | | * 212| "href" : "/cd_to_producer?me.cd=3" *
# | | * 213| }, *
# | | * 214| "genre" : { *
# | | * 215| "href" : "/genre/2" *
# | | * 216| }, *
# | | * 217| "self" : { *
# | | * 218| "href" : "/cd/3" *
# | | * 219| }, *
# | | * 220| "tracks" : { *
# | | * 221| "href" : "/track?me.cd=3" *
# | | * 222| } *
# | | * 223| }, *
# | | * 224| "artist" : 1, *
# | | * 225| "cdid" : 3, *
# | | * 226| "genreid" : 2, *
# | | * 227| "single_track" : null, *
# | | * 228| "title" : "Caterwaulin\' Blues", *
# | | * 229| "year" : "1997" *
# | | * 230| }, *
# | | * 231| { *
# | | * 232| "_links" : { *
# | | * 233| "artist" : { *
# | | * 234| "href" : "/artist/1" *
# | | * 235| }, *
# | | * 236| "cd_to_producer" : { *
# | | * 237| "href" : "/cd_to_producer?me.cd=2" *
# | | * 238| }, *
# | | * 239| "genre" : { *
# | | * 240| "href" : "/genre/2" *
# | | * 241| }, *
# | | * 242| "self" : { *
# | | * 243| "href" : "/cd/2" *
# | | * 244| }, *
# | | * 245| "tracks" : { *
# | | * 246| "href" : "/track?me.cd=2" *
# | | * 247| } *
# | | * 248| }, *
# | | * 249| "artist" : 1, *
# | | * 250| "cdid" : 2, *
# | | * 251| "genreid" : 2, *
# | | * 252| "single_track" : null, *
# | | * 253| "title" : "Forkful of bees", *
# | | * 254| "year" : "2001" *
# | | * 255| }, *
# | | * 256| { *
# | | * 257| "_links" : { *
# | | * 258| "artist" : { *
# | | * 259| "href" : "/artist/1" *
# | | * 260| }, *
# | | * 261| "cd_to_producer" : { *
# | | * 262| "href" : "/cd_to_producer?me.cd=1" *
# | | * 263| }, *
# | | * 264| "genre" : { *
# | | * 265| "href" : "/genre/1" *
# | | * 266| }, *
# | | * 267| "self" : { *
# | | * 268| "href" : "/cd/1" *
# | | * 269| }, *
# | | * 270| "tracks" : { *
# | | * 271| "href" : "/track?me.cd=1" *
# | | * 272| } *
# | | * 273| }, *
# | | * 274| "artist" : 1, *
# | | * 275| "cdid" : 1, *
# | | * 276| "genreid" : 1, *
# | | * 277| "single_track" : null, *
# | | * 278| "title" : "Spoonful of bees", *
# | | * 279| "year" : "1999" *
# | | * 280| } *
# | | * 281| ] *
# | | * 282| }, *
# | | * 283| "_links" : { *
# | | * 284| "self" : { *
# | | * 285| "href" : "/cd?rows=30&page=1", *
# | | * 286| "title" : "TestSchema::Result::CD" *
# | | * 287| } *
# | | * 288| } *
# | | * 289|} *
# | | * 290|\n *
# | 15|=== order by year desc and title desc | 291|=== order by year desc and title desc |
# | 16|Request: | 292|Request: |
# | 17|GET /cd?sort=me.year%20desc,title%20desc | 293|GET /cd?sort=me.year%20desc,title%20desc |
# | 18|Accept: application/hal+json,application/json | 294|Accept: application/hal+json,application/json |
# | 19|Response: | 295|Response: |
# * 20|500 Internal Server Error * 296|200 OK *
# | 21|Content-type: application/hal+json | 297|Content-type: application/hal+json |
# | | * 298|{ *
# | | * 299| "_embedded" : { *
# | | * 300| "cd" : [ *
# | | * 301| { *
# | | * 302| "_links" : { *
# | | * 303| "artist" : { *
# | | * 304| "href" : "/artist/2" *
# | | * 305| }, *
# | | * 306| "cd_to_producer" : { *
# | | * 307| "href" : "/cd_to_producer?me.cd=4" *
# | | * 308| }, *
# | | * 309| "genre" : { *
# | | * 310| "href" : "/genre/3" *
# | | * 311| }, *
# | | * 312| "self" : { *
# | | * 313| "href" : "/cd/4" *
# | | * 314| }, *
# | | * 315| "tracks" : { *
# | | * 316| "href" : "/track?me.cd=4" *
# | | * 317| } *
# | | * 318| }, *
# | | * 319| "artist" : 2, *
# | | * 320| "cdid" : 4, *
# | | * 321| "genreid" : 3, *
# | | * 322| "single_track" : null, *
# | | * 323| "title" : "Generic Manufactured Singles", *
# | | * 324| "year" : "2001" *
# | | * 325| }, *
# | | * 326| { *
# | | * 327| "_links" : { *
# | | * 328| "artist" : { *
# | | * 329| "href" : "/artist/1" *
# | | * 330| }, *
# | | * 331| "cd_to_producer" : { *
# | | * 332| "href" : "/cd_to_producer?me.cd=2" *
# | | * 333| }, *
# | | * 334| "genre" : { *
# | | * 335| "href" : "/genre/2" *
# | | * 336| }, *
# | | * 337| "self" : { *
# | | * 338| "href" : "/cd/2" *
# | | * 339| }, *
# | | * 340| "tracks" : { *
# | | * 341| "href" : "/track?me.cd=2" *
# | | * 342| } *
# | | * 343| }, *
# | | * 344| "artist" : 1, *
# | | * 345| "cdid" : 2, *
# | | * 346| "genreid" : 2, *
# | | * 347| "single_track" : null, *
# | | * 348| "title" : "Forkful of bees", *
# | | * 349| "year" : "2001" *
# | | * 350| }, *
# | | * 351| { *
# | | * 352| "_links" : { *
# | | * 353| "artist" : { *
# | | * 354| "href" : "/artist/1" *
# | | * 355| }, *
# | | * 356| "cd_to_producer" : { *
# | | * 357| "href" : "/cd_to_producer?me.cd=1" *
# | | * 358| }, *
# | | * 359| "genre" : { *
# | | * 360| "href" : "/genre/1" *
# | | * 361| }, *
# | | * 362| "self" : { *
# | | * 363| "href" : "/cd/1" *
# | | * 364| }, *
# | | * 365| "tracks" : { *
# | | * 366| "href" : "/track?me.cd=1" *
# | | * 367| } *
# | | * 368| }, *
# | | * 369| "artist" : 1, *
# | | * 370| "cdid" : 1, *
# | | * 371| "genreid" : 1, *
# | | * 372| "single_track" : null, *
# | | * 373| "title" : "Spoonful of bees", *
# | | * 374| "year" : "1999" *
# | | * 375| }, *
# | | * 376| { *
# | | * 377| "_links" : { *
# | | * 378| "artist" : { *
# | | * 379| "href" : "/artist/3" *
# | | * 380| }, *
# | | * 381| "cd_to_producer" : { *
# | | * 382| "href" : "/cd_to_producer?me.cd=5" *
# | | * 383| }, *
# | | * 384| "genre" : { *
# | | * 385| "href" : "/genre/4" *
# | | * 386| }, *
# | | * 387| "self" : { *
# | | * 388| "href" : "/cd/5" *
# | | * 389| }, *
# | | * 390| "tracks" : { *
# | | * 391| "href" : "/track?me.cd=5" *
# | | * 392| } *
# | | * 393| }, *
# | | * 394| "artist" : 3, *
# | | * 395| "cdid" : 5, *
# | | * 396| "genreid" : 4, *
# | | * 397| "single_track" : null, *
# | | * 398| "title" : "Come Be Depressed With Us", *
# | | * 399| "year" : "1998" *
# | | * 400| }, *
# | | * 401| { *
# | | * 402| "_links" : { *
# | | * 403| "artist" : { *
# | | * 404| "href" : "/artist/1" *
# | | * 405| }, *
# | | * 406| "cd_to_producer" : { *
# | | * 407| "href" : "/cd_to_producer?me.cd=3" *
# | | * 408| }, *
# | | * 409| "genre" : { *
# | | * 410| "href" : "/genre/2" *
# | | * 411| }, *
# | | * 412| "self" : { *
# | | * 413| "href" : "/cd/3" *
# | | * 414| }, *
# | | * 415| "tracks" : { *
# | | * 416| "href" : "/track?me.cd=3" *
# | | * 417| } *
# | | * 418| }, *
# | | * 419| "artist" : 1, *
# | | * 420| "cdid" : 3, *
# | | * 421| "genreid" : 2, *
# | | * 422| "single_track" : null, *
# | | * 423| "title" : "Caterwaulin\' Blues", *
# | | * 424| "year" : "1997" *
# | | * 425| } *
# | | * 426| ] *
# | | * 427| }, *
# | | * 428| "_links" : { *
# | | * 429| "self" : { *
# | | * 430| "href" : "/cd?rows=30&page=1", *
# | | * 431| "title" : "TestSchema::Result::CD" *
# | | * 432| } *
# | | * 433| } *
# | | * 434|} *
# | | * 435|\n *
# | 22|=== order by field in a relation (and the primary set for test stability) | 436|=== order by field in a relation (and the primary set for test stability) |
# | 23|Request: | 437|Request: |
# | 24|GET /cd?prefetch=artist&sort=artist.name,cdid | 438|GET /cd?prefetch=artist&sort=artist.name,cdid |
# | 25|Accept: application/hal+json,application/json | 439|Accept: application/hal+json,application/json |
# | 26|Response: | 440|Response: |
# * 27|500 Internal Server Error * 441|200 OK *
# | 28|Content-type: application/hal+json | 442|Content-type: application/hal+json |
# | | * 443|{ *
# | | * 444| "_embedded" : { *
# | | * 445| "cd" : [ *
# | | * 446| { *
# | | * 447| "_embedded" : { *
# | | * 448| "artist" : { *
# | | * 449| "artistid" : 1, *
# | | * 450| "charfield" : null, *
# | | * 451| "name" : "Caterwauler McCrae", *
# | | * 452| "rank" : 13 *
# | | * 453| } *
# | | * 454| }, *
# | | * 455| "_links" : { *
# | | * 456| "artist" : { *
# | | * 457| "href" : "/artist/1" *
# | | * 458| }, *
# | | * 459| "cd_to_producer" : { *
# | | * 460| "href" : "/cd_to_producer?me.cd=1" *
# | | * 461| }, *
# | | * 462| "genre" : { *
# | | * 463| "href" : "/genre/1" *
# | | * 464| }, *
# | | * 465| "self" : { *
# | | * 466| "href" : "/cd/1" *
# | | * 467| }, *
# | | * 468| "tracks" : { *
# | | * 469| "href" : "/track?me.cd=1" *
# | | * 470| } *
# | | * 471| }, *
# | | * 472| "artist" : 1, *
# | | * 473| "cdid" : 1, *
# | | * 474| "genreid" : 1, *
# | | * 475| "single_track" : null, *
# | | * 476| "title" : "Spoonful of bees", *
# | | * 477| "year" : "1999" *
# | | * 478| }, *
# | | * 479| { *
# | | * 480| "_embedded" : { *
# | | * 481| "artist" : { *
# | | * 482| "artistid" : 1, *
# | | * 483| "charfield" : null, *
# | | * 484| "name" : "Caterwauler McCrae", *
# | | * 485| "rank" : 13 *
# | | * 486| } *
# | | * 487| }, *
# | | * 488| "_links" : { *
# | | * 489| "artist" : { *
# | | * 490| "href" : "/artist/1" *
# | | * 491| }, *
# | | * 492| "cd_to_producer" : { *
# | | * 493| "href" : "/cd_to_producer?me.cd=2" *
# | | * 494| }, *
# | | * 495| "genre" : { *
# | | * 496| "href" : "/genre/2" *
# | | * 497| }, *
# | | * 498| "self" : { *
# | | * 499| "href" : "/cd/2" *
# | | * 500| }, *
# | | * 501| "tracks" : { *
# | | * 502| "href" : "/track?me.cd=2" *
# | | * 503| } *
# | | * 504| }, *
# | | * 505| "artist" : 1, *
# | | * 506| "cdid" : 2, *
# | | * 507| "genreid" : 2, *
# | | * 508| "single_track" : null, *
# | | * 509| "title" : "Forkful of bees", *
# | | * 510| "year" : "2001" *
# | | * 511| }, *
# | | * 512| { *
# | | * 513| "_embedded" : { *
# | | * 514| "artist" : { *
# | | * 515| "artistid" : 1, *
# | | * 516| "charfield" : null, *
# | | * 517| "name" : "Caterwauler McCrae", *
# | | * 518| "rank" : 13 *
# | | * 519| } *
# | | * 520| }, *
# | | * 521| "_links" : { *
# | | * 522| "artist" : { *
# | | * 523| "href" : "/artist/1" *
# | | * 524| }, *
# | | * 525| "cd_to_producer" : { *
# | | * 526| "href" : "/cd_to_producer?me.cd=3" *
# | | * 527| }, *
# | | * 528| "genre" : { *
# | | * 529| "href" : "/genre/2" *
# | | * 530| }, *
# | | * 531| "self" : { *
# | | * 532| "href" : "/cd/3" *
# | | * 533| }, *
# | | * 534| "tracks" : { *
# | | * 535| "href" : "/track?me.cd=3" *
# | | * 536| } *
# | | * 537| }, *
# | | * 538| "artist" : 1, *
# | | * 539| "cdid" : 3, *
# | | * 540| "genreid" : 2, *
# | | * 541| "single_track" : null, *
# | | * 542| "title" : "Caterwaulin\' Blues", *
# | | * 543| "year" : "1997" *
# | | * 544| }, *
# | | * 545| { *
# | | * 546| "_embedded" : { *
# | | * 547| "artist" : { *
# | | * 548| "artistid" : 2, *
# | | * 549| "charfield" : null, *
# | | * 550| "name" : "Random Boy Band", *
# | | * 551| "rank" : 13 *
# | | * 552| } *
# | | * 553| }, *
# | | * 554| "_links" : { *
# | | * 555| "artist" : { *
# | | * 556| "href" : "/artist/2" *
# | | * 557| }, *
# | | * 558| "cd_to_producer" : { *
# | | * 559| "href" : "/cd_to_producer?me.cd=4" *
# | | * 560| }, *
# | | * 561| "genre" : { *
# | | * 562| "href" : "/genre/3" *
# | | * 563| }, *
# | | * 564| "self" : { *
# | | * 565| "href" : "/cd/4" *
# | | * 566| }, *
# | | * 567| "tracks" : { *
# | | * 568| "href" : "/track?me.cd=4" *
# | | * 569| } *
# | | * 570| }, *
# | | * 571| "artist" : 2, *
# | | * 572| "cdid" : 4, *
# | | * 573| "genreid" : 3, *
# | | * 574| "single_track" : null, *
# | | * 575| "title" : "Generic Manufactured Singles", *
# | | * 576| "year" : "2001" *
# | | * 577| }, *
# | | * 578| { *
# | | * 579| "_embedded" : { *
# | | * 580| "artist" : { *
# | | * 581| "artistid" : 3, *
# | | * 582| "charfield" : null, *
# | | * 583| "name" : "We Are Goth", *
# | | * 584| "rank" : 13 *
# | | * 585| } *
# | | * 586| }, *
# | | * 587| "_links" : { *
# | | * 588| "artist" : { *
# | | * 589| "href" : "/artist/3" *
# | | * 590| }, *
# | | * 591| "cd_to_producer" : { *
# | | * 592| "href" : "/cd_to_producer?me.cd=5" *
# | | * 593| }, *
# | | * 594| "genre" : { *
# | | * 595| "href" : "/genre/4" *
# | | * 596| }, *
# | | * 597| "self" : { *
# | | * 598| "href" : "/cd/5" *
# | | * 599| }, *
# | | * 600| "tracks" : { *
# | | * 601| "href" : "/track?me.cd=5" *
# | | * 602| } *
# | | * 603| }, *
# | | * 604| "artist" : 3, *
# | | * 605| "cdid" : 5, *
# | | * 606| "genreid" : 4, *
# | | * 607| "single_track" : null, *
# | | * 608| "title" : "Come Be Depressed With Us", *
# | | * 609| "year" : "1998" *
# | | * 610| } *
# | | * 611| ] *
# | | * 612| }, *
# | | * 613| "_links" : { *
# | | * 614| "self" : { *
# | | * 615| "href" : "/cd?rows=30&page=1", *
# | | * 616| "title" : "TestSchema::Result::CD" *
# | | * 617| } *
# | | * 618| } *
# | | * 619|} *
# | | * 620|\n *
# | 29|=== order by field in two relations | 621|=== order by field in two relations |
# | 30|Request: | 622|Request: |
# | 31|GET /cd?prefetch=artist,genre&order=-genre.name,artist.name | 623|GET /cd?prefetch=artist,genre&order=-genre.name,artist.name |
# | 32|Accept: application/hal+json,application/json | 624|Accept: application/hal+json,application/json |
# | 33|Response: | 625|Response: |
# * 34|500 Internal Server Error * 626|200 OK *
# | 35|Content-type: application/hal+json | 627|Content-type: application/hal+json |
# | | * 628|{ *
# | | * 629| "_embedded" : { *
# | | * 630| "cd" : [ *
# | | * 631| { *
# | | * 632| "_embedded" : { *
# | | * 633| "artist" : { *
# | | * 634| "artistid" : 2, *
# | | * 635| "charfield" : null, *
# | | * 636| "name" : "Random Boy Band", *
# | | * 637| "rank" : 13 *
# | | * 638| }, *
# | | * 639| "genre" : { *
# | | * 640| "genreid" : 3, *
# | | * 641| "name" : "pop" *
# | | * 642| } *
# | | * 643| }, *
# | | * 644| "_links" : { *
# | | * 645| "artist" : { *
# | | * 646| "href" : "/artist/2" *
# | | * 647| }, *
# | | * 648| "cd_to_producer" : { *
# | | * 649| "href" : "/cd_to_producer?me.cd=4" *
# | | * 650| }, *
# | | * 651| "genre" : { *
# | | * 652| "href" : "/genre/3" *
# | | * 653| }, *
# | | * 654| "self" : { *
# | | * 655| "href" : "/cd/4" *
# | | * 656| }, *
# | | * 657| "tracks" : { *
# | | * 658| "href" : "/track?me.cd=4" *
# | | * 659| } *
# | | * 660| }, *
# | | * 661| "artist" : 2, *
# | | * 662| "cdid" : 4, *
# | | * 663| "genreid" : 3, *
# | | * 664| "single_track" : null, *
# | | * 665| "title" : "Generic Manufactured Singles", *
# | | * 666| "year" : "2001" *
# | | * 667| }, *
# | | * 668| { *
# | | * 669| "_embedded" : { *
# | | * 670| "artist" : { *
# | | * 671| "artistid" : 3, *
# | | * 672| "charfield" : null, *
# | | * 673| "name" : "We Are Goth", *
# | | * 674| "rank" : 13 *
# | | * 675| }, *
# | | * 676| "genre" : { *
# | | * 677| "genreid" : 4, *
# | | * 678| "name" : "goth" *
# | | * 679| } *
# | | * 680| }, *
# | | * 681| "_links" : { *
# | | * 682| "artist" : { *
# | | * 683| "href" : "/artist/3" *
# | | * 684| }, *
# | | * 685| "cd_to_producer" : { *
# | | * 686| "href" : "/cd_to_producer?me.cd=5" *
# | | * 687| }, *
# | | * 688| "genre" : { *
# | | * 689| "href" : "/genre/4" *
# | | * 690| }, *
# | | * 691| "self" : { *
# | | * 692| "href" : "/cd/5" *
# | | * 693| }, *
# | | * 694| "tracks" : { *
# | | * 695| "href" : "/track?me.cd=5" *
# | | * 696| } *
# | | * 697| }, *
# | | * 698| "artist" : 3, *
# | | * 699| "cdid" : 5, *
# | | * 700| "genreid" : 4, *
# | | * 701| "single_track" : null, *
# | | * 702| "title" : "Come Be Depressed With Us", *
# | | * 703| "year" : "1998" *
# | | * 704| }, *
# | | * 705| { *
# | | * 706| "_embedded" : { *
# | | * 707| "artist" : { *
# | | * 708| "artistid" : 1, *
# | | * 709| "charfield" : null, *
# | | * 710| "name" : "Caterwauler McCrae", *
# | | * 711| "rank" : 13 *
# | | * 712| }, *
# | | * 713| "genre" : { *
# | | * 714| "genreid" : 1, *
# | | * 715| "name" : "emo" *
# | | * 716| } *
# | | * 717| }, *
# | | * 718| "_links" : { *
# | | * 719| "artist" : { *
# | | * 720| "href" : "/artist/1" *
# | | * 721| }, *
# | | * 722| "cd_to_producer" : { *
# | | * 723| "href" : "/cd_to_producer?me.cd=1" *
# | | * 724| }, *
# | | * 725| "genre" : { *
# | | * 726| "href" : "/genre/1" *
# | | * 727| }, *
# | | * 728| "self" : { *
# | | * 729| "href" : "/cd/1" *
# | | * 730| }, *
# | | * 731| "tracks" : { *
# | | * 732| "href" : "/track?me.cd=1" *
# | | * 733| } *
# | | * 734| }, *
# | | * 735| "artist" : 1, *
# | | * 736| "cdid" : 1, *
# | | * 737| "genreid" : 1, *
# | | * 738| "single_track" : null, *
# | | * 739| "title" : "Spoonful of bees", *
# | | * 740| "year" : "1999" *
# | | * 741| }, *
# | | * 742| { *
# | | * 743| "_embedded" : { *
# | | * 744| "artist" : { *
# | | * 745| "artistid" : 1, *
# | | * 746| "charfield" : null, *
# | | * 747| "name" : "Caterwauler McCrae", *
# | | * 748| "rank" : 13 *
# | | * 749| }, *
# | | * 750| "genre" : { *
# | | * 751| "genreid" : 2, *
# | | * 752| "name" : "country" *
# | | * 753| } *
# | | * 754| }, *
# | | * 755| "_links" : { *
# | | * 756| "artist" : { *
# | | * 757| "href" : "/artist/1" *
# | | * 758| }, *
# | | * 759| "cd_to_producer" : { *
# | | * 760| "href" : "/cd_to_producer?me.cd=2" *
# | | * 761| }, *
# | | * 762| "genre" : { *
# | | * 763| "href" : "/genre/2" *
# | | * 764| }, *
# | | * 765| "self" : { *
# | | * 766| "href" : "/cd/2" *
# | | * 767| }, *
# | | * 768| "tracks" : { *
# | | * 769| "href" : "/track?me.cd=2" *
# | | * 770| } *
# | | * 771| }, *
# | | * 772| "artist" : 1, *
# | | * 773| "cdid" : 2, *
# | | * 774| "genreid" : 2, *
# | | * 775| "single_track" : null, *
# | | * 776| "title" : "Forkful of bees", *
# | | * 777| "year" : "2001" *
# | | * 778| }, *
# | | * 779| { *
# | | * 780| "_embedded" : { *
# | | * 781| "artist" : { *
# | | * 782| "artistid" : 1, *
# | | * 783| "charfield" : null, *
# | | * 784| "name" : "Caterwauler McCrae", *
# | | * 785| "rank" : 13 *
# | | * 786| }, *
# | | * 787| "genre" : { *
# | | * 788| "genreid" : 2, *
# | | * 789| "name" : "country" *
# | | * 790| } *
# | | * 791| }, *
# | | * 792| "_links" : { *
# | | * 793| "artist" : { *
# | | * 794| "href" : "/artist/1" *
# | | * 795| }, *
# | | * 796| "cd_to_producer" : { *
# | | * 797| "href" : "/cd_to_producer?me.cd=3" *
# | | * 798| }, *
# | | * 799| "genre" : { *
# | | * 800| "href" : "/genre/2" *
# | | * 801| }, *
# | | * 802| "self" : { *
# | | * 803| "href" : "/cd/3" *
# | | * 804| }, *
# | | * 805| "tracks" : { *
# | | * 806| "href" : "/track?me.cd=3" *
# | | * 807| } *
# | | * 808| }, *
# | | * 809| "artist" : 1, *
# | | * 810| "cdid" : 3, *
# | | * 811| "genreid" : 2, *
# | | * 812| "single_track" : null, *
# | | * 813| "title" : "Caterwaulin\' Blues", *
# | | * 814| "year" : "1997" *
# | | * 815| } *
# | | * 816| ] *
# | | * 817| }, *
# | | * 818| "_links" : { *
# | | * 819| "self" : { *
# | | * 820| "href" : "/cd?rows=30&page=1", *
# | | * 821| "title" : "TestSchema::Result::CD" *
# | | * 822| } *
# | | * 823| } *
# | | * 824|} *
# | | * 825|\n *
# | 36|' | 826|' |
# +---+---------------------------------------------------------------------------+----+---------------------------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Ordering ====='
# at t/30-ordering-hal.t line 19.
# Looks like you failed 3 tests of 3.
t/30-ordering-hal.t ......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/ZxJgDj4xuz
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Ordering =====
# --- Config:
# --- Name: order by PK asc
# GET /cd?order=me.cdid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: order by PK desc
# GET /cd?order=me.cdid%20desc
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: order by year desc and title desc
# GET /cd?sort=me.year%20desc,title%20desc
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: order by field in a relation (and the primary set for test stability)
# GET /cd?prefetch=artist&sort=artist.name,cdid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: order by field in two relations
# GET /cd?prefetch=artist,genre&order=-genre.name,artist.name
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
not ok 1 - 30-ordering-hal.t output in t/30-ordering-hal.got matches t/30-ordering-hal.exp
1..1
not ok 3 - ===== Ordering =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6acc0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6b070), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f328), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f328), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa21e8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93117b0)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa21e8), Moose::Meta::Instance=HASH(0x937b900), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93117b0), HASH(0x9311ce0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311f50), HASH(0x9311ce0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311f50), HASH(0x9311ce0)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311f50), HASH(0x9311ce0)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93115f0)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93115f0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93115f0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbbec8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/40-prefetch-hal.t line 7
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield, genre.genreid, genre.name FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield, genre.genreid, genre.name FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( artist.name = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( artist.name LIKE ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid WHERE ( me.artistid = ? ) GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY MIN( cds.cdid ) LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid WHERE ( me.artistid = ? ) ORDER BY cds.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY me.artistid ASC, MIN( cds.cdid ) LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid ORDER BY me.artistid ASC, cds.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd_to_producer [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, cd_to_producer.cd, cd_to_producer.producer, cd_to_producer.attribute, producer.producerid, producer.name FROM (SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?) me LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = me.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track, cd_to_producer.cd, cd_to_producer.producer, cd_to_producer.attribute, producer.producerid, producer.name FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = cds.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( ( cds.year > ? AND producer.name = ? ) ) GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY me.artistid ASC LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = cds.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( ( cds.year > ? AND producer.name = ? ) ) ORDER BY me.artistid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( me.artist = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.genreid, genre.genreid, artist.artistid FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.genreid, artist.artistid, genre.genreid FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test '40-prefetch-hal.t output in t/40-prefetch-hal.got matches t/40-prefetch-hal.exp'
# at t/lib/TestDS.pm line 67.
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# | 1|'=== prefetch on an item using two belongs_to relationships | 1|'=== prefetch on an item using two belongs_to relationships |
# | 2|Request: | 2|Request: |
# | 3|GET /cd/1?prefetch=artist,genre | 3|GET /cd/1?prefetch=artist,genre |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json |
# | | * 8|{ *
# | | * 9| "_embedded" : { *
# | | * 10| "artist" : { *
# | | * 11| "artistid" : 1, *
# | | * 12| "charfield" : null, *
# | | * 13| "name" : "Caterwauler McCrae", *
# | | * 14| "rank" : 13 *
# | | * 15| }, *
# | | * 16| "genre" : { *
# | | * 17| "genreid" : 1, *
# | | * 18| "name" : "emo" *
# | | * 19| } *
# | | * 20| }, *
# | | * 21| "_links" : { *
# | | * 22| "artist" : { *
# | | * 23| "href" : "/artist/1" *
# | | * 24| }, *
# | | * 25| "cd_to_producer" : { *
# | | * 26| "href" : "/cd_to_producer?me.cd=1" *
# | | * 27| }, *
# | | * 28| "genre" : { *
# | | * 29| "href" : "/genre/1" *
# | | * 30| }, *
# | | * 31| "self" : { *
# | | * 32| "href" : "/cd/1" *
# | | * 33| }, *
# | | * 34| "tracks" : { *
# | | * 35| "href" : "/track?me.cd=1" *
# | | * 36| } *
# | | * 37| }, *
# | | * 38| "artist" : 1, *
# | | * 39| "cdid" : 1, *
# | | * 40| "genreid" : 1, *
# | | * 41| "single_track" : null, *
# | | * 42| "title" : "Spoonful of bees", *
# | | * 43| "year" : "1999" *
# | | * 44|} *
# | | * 45|\n *
# | 8|=== prefetch on a set using two belongs_to relationships | 46|=== prefetch on a set using two belongs_to relationships |
# | 9|Request: | 47|Request: |
# | 10|GET /cd?rows=2&page=1&prefetch=artist,genre | 48|GET /cd?rows=2&page=1&prefetch=artist,genre |
# | 11|Accept: application/hal+json,application/json | 49|Accept: application/hal+json,application/json |
# | 12|Response: | 50|Response: |
# * 13|500 Internal Server Error * 51|200 OK *
# | 14|Content-type: application/hal+json | 52|Content-type: application/hal+json |
# | | * 53|{ *
# | | * 54| "_embedded" : { *
# | | * 55| "cd" : [ *
# | | * 56| { *
# | | * 57| "_embedded" : { *
# | | * 58| "artist" : { *
# | | * 59| "artistid" : 1, *
# | | * 60| "charfield" : null, *
# | | * 61| "name" : "Caterwauler McCrae", *
# | | * 62| "rank" : 13 *
# | | * 63| }, *
# | | * 64| "genre" : { *
# | | * 65| "genreid" : 1, *
# | | * 66| "name" : "emo" *
# | | * 67| } *
# | | * 68| }, *
# | | * 69| "_links" : { *
# | | * 70| "artist" : { *
# | | * 71| "href" : "/artist/1" *
# | | * 72| }, *
# | | * 73| "cd_to_producer" : { *
# | | * 74| "href" : "/cd_to_producer?me.cd=1" *
# | | * 75| }, *
# | | * 76| "genre" : { *
# | | * 77| "href" : "/genre/1" *
# | | * 78| }, *
# | | * 79| "self" : { *
# | | * 80| "href" : "/cd/1" *
# | | * 81| }, *
# | | * 82| "tracks" : { *
# | | * 83| "href" : "/track?me.cd=1" *
# | | * 84| } *
# | | * 85| }, *
# | | * 86| "artist" : 1, *
# | | * 87| "cdid" : 1, *
# | | * 88| "genreid" : 1, *
# | | * 89| "single_track" : null, *
# | | * 90| "title" : "Spoonful of bees", *
# | | * 91| "year" : "1999" *
# | | * 92| }, *
# | | * 93| { *
# | | * 94| "_embedded" : { *
# | | * 95| "artist" : { *
# | | * 96| "artistid" : 1, *
# | | * 97| "charfield" : null, *
# | | * 98| "name" : "Caterwauler McCrae", *
# | | * 99| "rank" : 13 *
# | | * 100| }, *
# | | * 101| "genre" : { *
# | | * 102| "genreid" : 2, *
# | | * 103| "name" : "country" *
# | | * 104| } *
# | | * 105| }, *
# | | * 106| "_links" : { *
# | | * 107| "artist" : { *
# | | * 108| "href" : "/artist/1" *
# | | * 109| }, *
# | | * 110| "cd_to_producer" : { *
# | | * 111| "href" : "/cd_to_producer?me.cd=2" *
# | | * 112| }, *
# | | * 113| "genre" : { *
# | | * 114| "href" : "/genre/2" *
# | | * 115| }, *
# | | * 116| "self" : { *
# | | * 117| "href" : "/cd/2" *
# | | * 118| }, *
# | | * 119| "tracks" : { *
# | | * 120| "href" : "/track?me.cd=2" *
# | | * 121| } *
# | | * 122| }, *
# | | * 123| "artist" : 1, *
# | | * 124| "cdid" : 2, *
# | | * 125| "genreid" : 2, *
# | | * 126| "single_track" : null, *
# | | * 127| "title" : "Forkful of bees", *
# | | * 128| "year" : "2001" *
# | | * 129| } *
# | | * 130| ] *
# | | * 131| }, *
# | | * 132| "_links" : { *
# | | * 133| "next" : { *
# | | * 134| "href" : "/cd?rows=2&page=2" *
# | | * 135| }, *
# | | * 136| "self" : { *
# | | * 137| "href" : "/cd?rows=2&page=1", *
# | | * 138| "title" : "TestSchema::Result::CD" *
# | | * 139| } *
# | | * 140| } *
# | | * 141|} *
# | | * 142|\n *
# | 15|=== filter on prefetched relation field | 143|=== filter on prefetched relation field |
# | 16|Request: | 144|Request: |
# | 17|GET /cd?prefetch=artist&artist.name=Random+Boy+Band | 145|GET /cd?prefetch=artist&artist.name=Random+Boy+Band |
# | 18|Accept: application/hal+json,application/json | 146|Accept: application/hal+json,application/json |
# | 19|Response: | 147|Response: |
# * 20|500 Internal Server Error * 148|200 OK *
# | 21|Content-type: application/hal+json | 149|Content-type: application/hal+json |
# | | * 150|{ *
# | | * 151| "_embedded" : { *
# | | * 152| "cd" : [ *
# | | * 153| { *
# | | * 154| "_embedded" : { *
# | | * 155| "artist" : { *
# | | * 156| "artistid" : 2, *
# | | * 157| "charfield" : null, *
# | | * 158| "name" : "Random Boy Band", *
# | | * 159| "rank" : 13 *
# | | * 160| } *
# | | * 161| }, *
# | | * 162| "_links" : { *
# | | * 163| "artist" : { *
# | | * 164| "href" : "/artist/2" *
# | | * 165| }, *
# | | * 166| "cd_to_producer" : { *
# | | * 167| "href" : "/cd_to_producer?me.cd=4" *
# | | * 168| }, *
# | | * 169| "genre" : { *
# | | * 170| "href" : "/genre/3" *
# | | * 171| }, *
# | | * 172| "self" : { *
# | | * 173| "href" : "/cd/4" *
# | | * 174| }, *
# | | * 175| "tracks" : { *
# | | * 176| "href" : "/track?me.cd=4" *
# | | * 177| } *
# | | * 178| }, *
# | | * 179| "artist" : 2, *
# | | * 180| "cdid" : 4, *
# | | * 181| "genreid" : 3, *
# | | * 182| "single_track" : null, *
# | | * 183| "title" : "Generic Manufactured Singles", *
# | | * 184| "year" : "2001" *
# | | * 185| } *
# | | * 186| ] *
# | | * 187| }, *
# | | * 188| "_links" : { *
# | | * 189| "self" : { *
# | | * 190| "href" : "/cd?rows=30&page=1", *
# | | * 191| "title" : "TestSchema::Result::CD" *
# | | * 192| } *
# | | * 193| } *
# | | * 194|} *
# | | * 195|\n *
# | 22|=== filter on prefetch with JSON | 196|=== filter on prefetch with JSON |
# | 23|Request: | 197|Request: |
# | 24|GET /cd?prefetch=artist PARAMS: artist.name~json=>{"like"=>"%Band"} | 198|GET /cd?prefetch=artist PARAMS: artist.name~json=>{"like"=>"%Band"} |
# | 25|GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D | 199|GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D |
# | 26|Accept: application/hal+json,application/json | 200|Accept: application/hal+json,application/json |
# | 27|Response: | 201|Response: |
# * 28|500 Internal Server Error * 202|200 OK *
# | 29|Content-type: application/hal+json | 203|Content-type: application/hal+json |
# | | * 204|{ *
# | | * 205| "_embedded" : { *
# | | * 206| "cd" : [ *
# | | * 207| { *
# | | * 208| "_embedded" : { *
# | | * 209| "artist" : { *
# | | * 210| "artistid" : 2, *
# | | * 211| "charfield" : null, *
# | | * 212| "name" : "Random Boy Band", *
# | | * 213| "rank" : 13 *
# | | * 214| } *
# | | * 215| }, *
# | | * 216| "_links" : { *
# | | * 217| "artist" : { *
# | | * 218| "href" : "/artist/2" *
# | | * 219| }, *
# | | * 220| "cd_to_producer" : { *
# | | * 221| "href" : "/cd_to_producer?me.cd=4" *
# | | * 222| }, *
# | | * 223| "genre" : { *
# | | * 224| "href" : "/genre/3" *
# | | * 225| }, *
# | | * 226| "self" : { *
# | | * 227| "href" : "/cd/4" *
# | | * 228| }, *
# | | * 229| "tracks" : { *
# | | * 230| "href" : "/track?me.cd=4" *
# | | * 231| } *
# | | * 232| }, *
# | | * 233| "artist" : 2, *
# | | * 234| "cdid" : 4, *
# | | * 235| "genreid" : 3, *
# | | * 236| "single_track" : null, *
# | | * 237| "title" : "Generic Manufactured Singles", *
# | | * 238| "year" : "2001" *
# | | * 239| } *
# | | * 240| ] *
# | | * 241| }, *
# | | * 242| "_links" : { *
# | | * 243| "self" : { *
# | | * 244| "href" : "/cd?rows=30&page=1", *
# | | * 245| "title" : "TestSchema::Result::CD" *
# | | * 246| } *
# | | * 247| } *
# | | * 248|} *
# | | * 249|\n *
# | 30|=== multi type relation (has_many) in prefetch on item | 250|=== multi type relation (has_many) in prefetch on item |
# | 31|Request: | 251|Request: |
# | 32|GET /artist/1?prefetch=cds&order=cds.cdid | 252|GET /artist/1?prefetch=cds&order=cds.cdid |
# | 33|Accept: application/hal+json,application/json | 253|Accept: application/hal+json,application/json |
# | 34|Response: | 254|Response: |
# * 35|500 Internal Server Error * 255|200 OK *
# | 36|Content-type: application/hal+json | 256|Content-type: application/hal+json |
# | | * 257|{ *
# | | * 258| "_embedded" : { *
# | | * 259| "cds" : [ *
# | | * 260| { *
# | | * 261| "_links" : { *
# | | * 262| "artist" : { *
# | | * 263| "href" : "/artist/1" *
# | | * 264| }, *
# | | * 265| "cd_to_producer" : { *
# | | * 266| "href" : "/cd_to_producer?me.cd=1" *
# | | * 267| }, *
# | | * 268| "genre" : { *
# | | * 269| "href" : "/genre/1" *
# | | * 270| }, *
# | | * 271| "self" : { *
# | | * 272| "href" : "/cd/1" *
# | | * 273| }, *
# | | * 274| "tracks" : { *
# | | * 275| "href" : "/track?me.cd=1" *
# | | * 276| } *
# | | * 277| }, *
# | | * 278| "artist" : 1, *
# | | * 279| "cdid" : "1", *
# | | * 280| "genreid" : 1, *
# | | * 281| "single_track" : null, *
# | | * 282| "title" : "Spoonful of bees", *
# | | * 283| "year" : "1999" *
# | | * 284| }, *
# | | * 285| { *
# | | * 286| "_links" : { *
# | | * 287| "artist" : { *
# | | * 288| "href" : "/artist/1" *
# | | * 289| }, *
# | | * 290| "cd_to_producer" : { *
# | | * 291| "href" : "/cd_to_producer?me.cd=2" *
# | | * 292| }, *
# | | * 293| "genre" : { *
# | | * 294| "href" : "/genre/2" *
# | | * 295| }, *
# | | * 296| "self" : { *
# | | * 297| "href" : "/cd/2" *
# | | * 298| }, *
# | | * 299| "tracks" : { *
# | | * 300| "href" : "/track?me.cd=2" *
# | | * 301| } *
# | | * 302| }, *
# | | * 303| "artist" : 1, *
# | | * 304| "cdid" : "2", *
# | | * 305| "genreid" : 2, *
# | | * 306| "single_track" : null, *
# | | * 307| "title" : "Forkful of bees", *
# | | * 308| "year" : "2001" *
# | | * 309| }, *
# | | * 310| { *
# | | * 311| "_links" : { *
# | | * 312| "artist" : { *
# | | * 313| "href" : "/artist/1" *
# | | * 314| }, *
# | | * 315| "cd_to_producer" : { *
# | | * 316| "href" : "/cd_to_producer?me.cd=3" *
# | | * 317| }, *
# | | * 318| "genre" : { *
# | | * 319| "href" : "/genre/2" *
# | | * 320| }, *
# | | * 321| "self" : { *
# | | * 322| "href" : "/cd/3" *
# | | * 323| }, *
# | | * 324| "tracks" : { *
# | | * 325| "href" : "/track?me.cd=3" *
# | | * 326| } *
# | | * 327| }, *
# | | * 328| "artist" : 1, *
# | | * 329| "cdid" : "3", *
# | | * 330| "genreid" : 2, *
# | | * 331| "single_track" : null, *
# | | * 332| "title" : "Caterwaulin\' Blues", *
# | | * 333| "year" : "1997" *
# | | * 334| } *
# | | * 335| ] *
# | | * 336| }, *
# | | * 337| "_links" : { *
# | | * 338| "cds" : { *
# | | * 339| "href" : "/cd?me.artist=1" *
# | | * 340| }, *
# | | * 341| "cds_cref_cond" : { *
# | | * 342| "href" : "/cd/1" *
# | | * 343| }, *
# | | * 344| "self" : { *
# | | * 345| "href" : "/artist/1" *
# | | * 346| } *
# | | * 347| }, *
# | | * 348| "artistid" : "1", *
# | | * 349| "charfield" : null, *
# | | * 350| "name" : "Caterwauler McCrae", *
# | | * 351| "rank" : 13 *
# | | * 352|} *
# | | * 353|\n *
# | 37|=== multi type relation (has_many) in prefetch on set | 354|=== multi type relation (has_many) in prefetch on set |
# | 38|Request: | 355|Request: |
# | 39|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | 356|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 |
# | 40|Accept: application/hal+json,application/json | 357|Accept: application/hal+json,application/json |
# | 41|Response: | 358|Response: |
# * 42|500 Internal Server Error * 359|200 OK *
# | 43|Content-type: application/hal+json | 360|Content-type: application/hal+json |
# | | * 361|{ *
# | | * 362| "_embedded" : { *
# | | * 363| "artist" : [ *
# | | * 364| { *
# | | * 365| "_embedded" : { *
# | | * 366| "cds" : [ *
# | | * 367| { *
# | | * 368| "_links" : { *
# | | * 369| "artist" : { *
# | | * 370| "href" : "/artist/1" *
# | | * 371| }, *
# | | * 372| "cd_to_producer" : { *
# | | * 373| "href" : "/cd_to_producer?me.cd=1" *
# | | * 374| }, *
# | | * 375| "genre" : { *
# | | * 376| "href" : "/genre/1" *
# | | * 377| }, *
# | | * 378| "self" : { *
# | | * 379| "href" : "/cd/1" *
# | | * 380| }, *
# | | * 381| "tracks" : { *
# | | * 382| "href" : "/track?me.cd=1" *
# | | * 383| } *
# | | * 384| }, *
# | | * 385| "artist" : 1, *
# | | * 386| "cdid" : "1", *
# | | * 387| "genreid" : 1, *
# | | * 388| "single_track" : null, *
# | | * 389| "title" : "Spoonful of bees", *
# | | * 390| "year" : "1999" *
# | | * 391| }, *
# | | * 392| { *
# | | * 393| "_links" : { *
# | | * 394| "artist" : { *
# | | * 395| "href" : "/artist/1" *
# | | * 396| }, *
# | | * 397| "cd_to_producer" : { *
# | | * 398| "href" : "/cd_to_producer?me.cd=2" *
# | | * 399| }, *
# | | * 400| "genre" : { *
# | | * 401| "href" : "/genre/2" *
# | | * 402| }, *
# | | * 403| "self" : { *
# | | * 404| "href" : "/cd/2" *
# | | * 405| }, *
# | | * 406| "tracks" : { *
# | | * 407| "href" : "/track?me.cd=2" *
# | | * 408| } *
# | | * 409| }, *
# | | * 410| "artist" : 1, *
# | | * 411| "cdid" : "2", *
# | | * 412| "genreid" : 2, *
# | | * 413| "single_track" : null, *
# | | * 414| "title" : "Forkful of bees", *
# | | * 415| "year" : "2001" *
# | | * 416| }, *
# | | * 417| { *
# | | * 418| "_links" : { *
# | | * 419| "artist" : { *
# | | * 420| "href" : "/artist/1" *
# | | * 421| }, *
# | | * 422| "cd_to_producer" : { *
# | | * 423| "href" : "/cd_to_producer?me.cd=3" *
# | | * 424| }, *
# | | * 425| "genre" : { *
# | | * 426| "href" : "/genre/2" *
# | | * 427| }, *
# | | * 428| "self" : { *
# | | * 429| "href" : "/cd/3" *
# | | * 430| }, *
# | | * 431| "tracks" : { *
# | | * 432| "href" : "/track?me.cd=3" *
# | | * 433| } *
# | | * 434| }, *
# | | * 435| "artist" : 1, *
# | | * 436| "cdid" : "3", *
# | | * 437| "genreid" : 2, *
# | | * 438| "single_track" : null, *
# | | * 439| "title" : "Caterwaulin\' Blues", *
# | | * 440| "year" : "1997" *
# | | * 441| } *
# | | * 442| ] *
# | | * 443| }, *
# | | * 444| "_links" : { *
# | | * 445| "cds" : { *
# | | * 446| "href" : "/cd?me.artist=1" *
# | | * 447| }, *
# | | * 448| "cds_cref_cond" : { *
# | | * 449| "href" : "/cd/1" *
# | | * 450| }, *
# | | * 451| "self" : { *
# | | * 452| "href" : "/artist/1" *
# | | * 453| } *
# | | * 454| }, *
# | | * 455| "artistid" : "1", *
# | | * 456| "charfield" : null, *
# | | * 457| "name" : "Caterwauler McCrae", *
# | | * 458| "rank" : 13 *
# | | * 459| }, *
# | | * 460| { *
# | | * 461| "_embedded" : { *
# | | * 462| "cds" : [ *
# | | * 463| { *
# | | * 464| "_links" : { *
# | | * 465| "artist" : { *
# | | * 466| "href" : "/artist/2" *
# | | * 467| }, *
# | | * 468| "cd_to_producer" : { *
# | | * 469| "href" : "/cd_to_producer?me.cd=4" *
# | | * 470| }, *
# | | * 471| "genre" : { *
# | | * 472| "href" : "/genre/3" *
# | | * 473| }, *
# | | * 474| "self" : { *
# | | * 475| "href" : "/cd/4" *
# | | * 476| }, *
# | | * 477| "tracks" : { *
# | | * 478| "href" : "/track?me.cd=4" *
# | | * 479| } *
# | | * 480| }, *
# | | * 481| "artist" : 2, *
# | | * 482| "cdid" : "4", *
# | | * 483| "genreid" : 3, *
# | | * 484| "single_track" : null, *
# | | * 485| "title" : "Generic Manufactured Singles", *
# | | * 486| "year" : "2001" *
# | | * 487| } *
# | | * 488| ] *
# | | * 489| }, *
# | | * 490| "_links" : { *
# | | * 491| "cds" : { *
# | | * 492| "href" : "/cd?me.artist=2" *
# | | * 493| }, *
# | | * 494| "cds_cref_cond" : { *
# | | * 495| "href" : "/cd/2" *
# | | * 496| }, *
# | | * 497| "self" : { *
# | | * 498| "href" : "/artist/2" *
# | | * 499| } *
# | | * 500| }, *
# | | * 501| "artistid" : "2", *
# | | * 502| "charfield" : null, *
# | | * 503| "name" : "Random Boy Band", *
# | | * 504| "rank" : 13 *
# | | * 505| } *
# | | * 506| ] *
# | | * 507| }, *
# | | * 508| "_links" : { *
# | | * 509| "next" : { *
# | | * 510| "href" : "/artist?rows=2&page=2" *
# | | * 511| }, *
# | | * 512| "self" : { *
# | | * 513| "href" : "/artist?rows=2&page=1", *
# | | * 514| "title" : "TestSchema::Result::Artist" *
# | | * 515| } *
# | | * 516| } *
# | | * 517|} *
# | | * 518|\n *
# | 44|=== multi type relation in prefetch on item (many_to_many via JSON) | 519|=== multi type relation in prefetch on item (many_to_many via JSON) |
# | 45|Request: | 520|Request: |
# | 46|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | 521|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} |
# | 47|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | 522|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D |
# | 48|Accept: application/hal+json,application/json | 523|Accept: application/hal+json,application/json |
# | 49|Response: | 524|Response: |
# * 50|500 Internal Server Error * 525|200 OK *
# | 51|Content-type: application/hal+json | 526|Content-type: application/hal+json |
# | | * 527|{ *
# | | * 528| "_embedded" : { *
# | | * 529| "cd_to_producer" : [ *
# | | * 530| { *
# | | * 531| "_embedded" : { *
# | | * 532| "producer" : { *
# | | * 533| "name" : "Matt S Trout", *
# | | * 534| "producerid" : 1 *
# | | * 535| } *
# | | * 536| }, *
# | | * 537| "_links" : { *
# | | * 538| "cd" : { *
# | | * 539| "href" : "/cd/1" *
# | | * 540| }, *
# | | * 541| "producer" : { *
# | | * 542| "href" : "/producer/1" *
# | | * 543| }, *
# | | * 544| "self" : { *
# | | * 545| "href" : "/cd_to_producer/1/1" *
# | | * 546| } *
# | | * 547| }, *
# | | * 548| "attribute" : null, *
# | | * 549| "cd" : "1", *
# | | * 550| "producer" : "1" *
# | | * 551| }, *
# | | * 552| { *
# | | * 553| "_embedded" : { *
# | | * 554| "producer" : { *
# | | * 555| "name" : "Bob The Builder", *
# | | * 556| "producerid" : 2 *
# | | * 557| } *
# | | * 558| }, *
# | | * 559| "_links" : { *
# | | * 560| "cd" : { *
# | | * 561| "href" : "/cd/1" *
# | | * 562| }, *
# | | * 563| "producer" : { *
# | | * 564| "href" : "/producer/2" *
# | | * 565| }, *
# | | * 566| "self" : { *
# | | * 567| "href" : "/cd_to_producer/1/2" *
# | | * 568| } *
# | | * 569| }, *
# | | * 570| "attribute" : null, *
# | | * 571| "cd" : "1", *
# | | * 572| "producer" : "2" *
# | | * 573| }, *
# | | * 574| { *
# | | * 575| "_embedded" : { *
# | | * 576| "producer" : { *
# | | * 577| "name" : "Fred The Phenotype", *
# | | * 578| "producerid" : 3 *
# | | * 579| } *
# | | * 580| }, *
# | | * 581| "_links" : { *
# | | * 582| "cd" : { *
# | | * 583| "href" : "/cd/1" *
# | | * 584| }, *
# | | * 585| "producer" : { *
# | | * 586| "href" : "/producer/3" *
# | | * 587| }, *
# | | * 588| "self" : { *
# | | * 589| "href" : "/cd_to_producer/1/3" *
# | | * 590| } *
# | | * 591| }, *
# | | * 592| "attribute" : null, *
# | | * 593| "cd" : "1", *
# | | * 594| "producer" : "3" *
# | | * 595| } *
# | | * 596| ] *
# | | * 597| }, *
# | | * 598| "_links" : { *
# | | * 599| "artist" : { *
# | | * 600| "href" : "/artist/1" *
# | | * 601| }, *
# | | * 602| "cd_to_producer" : { *
# | | * 603| "href" : "/cd_to_producer?me.cd=1" *
# | | * 604| }, *
# | | * 605| "genre" : { *
# | | * 606| "href" : "/genre/1" *
# | | * 607| }, *
# | | * 608| "self" : { *
# | | * 609| "href" : "/cd/1" *
# | | * 610| }, *
# | | * 611| "tracks" : { *
# | | * 612| "href" : "/track?me.cd=1" *
# | | * 613| } *
# | | * 614| }, *
# | | * 615| "artist" : 1, *
# | | * 616| "cdid" : "1", *
# | | * 617| "genreid" : 1, *
# | | * 618| "single_track" : null, *
# | | * 619| "title" : "Spoonful of bees", *
# | | * 620| "year" : "1999" *
# | | * 621|} *
# | | * 622|\n *
# | 52|=== filter on nested prefetch | 623|=== filter on nested prefetch |
# | 53|Request: | 624|Request: |
# | 54|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | 625|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} |
# | 55|GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D | 626|GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D |
# | 56|Accept: application/hal+json,application/json | 627|Accept: application/hal+json,application/json |
# | 57|Response: | 628|Response: |
# * 58|500 Internal Server Error * 629|200 OK *
# | 59|Content-type: application/hal+json | 630|Content-type: application/hal+json |
# | | * 631|{ *
# | | * 632| "_embedded" : { *
# | | * 633| "artist" : [ *
# | | * 634| { *
# | | * 635| "_embedded" : { *
# | | * 636| "cds" : [ *
# | | * 637| { *
# | | * 638| "_embedded" : { *
# | | * 639| "cd_to_producer" : [ *
# | | * 640| { *
# | | * 641| "_embedded" : { *
# | | * 642| "producer" : { *
# | | * 643| "name" : "Matt S Trout", *
# | | * 644| "producerid" : 1 *
# | | * 645| } *
# | | * 646| }, *
# | | * 647| "_links" : { *
# | | * 648| "cd" : { *
# | | * 649| "href" : "/cd/1" *
# | | * 650| }, *
# | | * 651| "producer" : { *
# | | * 652| "href" : "/producer/1" *
# | | * 653| }, *
# | | * 654| "self" : { *
# | | * 655| "href" : "/cd_to_producer/1/1" *
# | | * 656| } *
# | | * 657| }, *
# | | * 658| "attribute" : null, *
# | | * 659| "cd" : "1", *
# | | * 660| "producer" : "1" *
# | | * 661| } *
# | | * 662| ] *
# | | * 663| }, *
# | | * 664| "_links" : { *
# | | * 665| "artist" : { *
# | | * 666| "href" : "/artist/1" *
# | | * 667| }, *
# | | * 668| "cd_to_producer" : { *
# | | * 669| "href" : "/cd_to_producer?me.cd=1" *
# | | * 670| }, *
# | | * 671| "genre" : { *
# | | * 672| "href" : "/genre/1" *
# | | * 673| }, *
# | | * 674| "self" : { *
# | | * 675| "href" : "/cd/1" *
# | | * 676| }, *
# | | * 677| "tracks" : { *
# | | * 678| "href" : "/track?me.cd=1" *
# | | * 679| } *
# | | * 680| }, *
# | | * 681| "artist" : 1, *
# | | * 682| "cdid" : "1", *
# | | * 683| "genreid" : 1, *
# | | * 684| "single_track" : null, *
# | | * 685| "title" : "Spoonful of bees", *
# | | * 686| "year" : "1999" *
# | | * 687| } *
# | | * 688| ] *
# | | * 689| }, *
# | | * 690| "_links" : { *
# | | * 691| "cds" : { *
# | | * 692| "href" : "/cd?me.artist=1" *
# | | * 693| }, *
# | | * 694| "cds_cref_cond" : { *
# | | * 695| "href" : "/cd/1" *
# | | * 696| }, *
# | | * 697| "self" : { *
# | | * 698| "href" : "/artist/1" *
# | | * 699| } *
# | | * 700| }, *
# | | * 701| "artistid" : "1", *
# | | * 702| "charfield" : null, *
# | | * 703| "name" : "Caterwauler McCrae", *
# | | * 704| "rank" : 13 *
# | | * 705| } *
# | | * 706| ] *
# | | * 707| }, *
# | | * 708| "_links" : { *
# | | * 709| "self" : { *
# | | * 710| "href" : "/artist?rows=2&page=1", *
# | | * 711| "title" : "TestSchema::Result::Artist" *
# | | * 712| } *
# | | * 713| } *
# | | * 714|} *
# | | * 715|\n *
# | 60|=== prefetch with query on ambiguous field | 716|=== prefetch with query on ambiguous field |
# | 61|Request: | 717|Request: |
# | 62|GET /cd/?me.artist=1&prefetch=artist | 718|GET /cd/?me.artist=1&prefetch=artist |
# | 63|Accept: application/hal+json,application/json | 719|Accept: application/hal+json,application/json |
# | 64|Response: | 720|Response: |
# * 65|500 Internal Server Error * 721|200 OK *
# | 66|Content-type: application/hal+json | 722|Content-type: application/hal+json |
# | | * 723|{ *
# | | * 724| "_embedded" : { *
# | | * 725| "cd" : [ *
# | | * 726| { *
# | | * 727| "_embedded" : { *
# | | * 728| "artist" : { *
# | | * 729| "artistid" : 1, *
# | | * 730| "charfield" : null, *
# | | * 731| "name" : "Caterwauler McCrae", *
# | | * 732| "rank" : 13 *
# | | * 733| } *
# | | * 734| }, *
# | | * 735| "_links" : { *
# | | * 736| "artist" : { *
# | | * 737| "href" : "/artist/1" *
# | | * 738| }, *
# | | * 739| "cd_to_producer" : { *
# | | * 740| "href" : "/cd_to_producer?me.cd=1" *
# | | * 741| }, *
# | | * 742| "genre" : { *
# | | * 743| "href" : "/genre/1" *
# | | * 744| }, *
# | | * 745| "self" : { *
# | | * 746| "href" : "/cd/1" *
# | | * 747| }, *
# | | * 748| "tracks" : { *
# | | * 749| "href" : "/track?me.cd=1" *
# | | * 750| } *
# | | * 751| }, *
# | | * 752| "artist" : 1, *
# | | * 753| "cdid" : 1, *
# | | * 754| "genreid" : 1, *
# | | * 755| "single_track" : null, *
# | | * 756| "title" : "Spoonful of bees", *
# | | * 757| "year" : "1999" *
# | | * 758| }, *
# | | * 759| { *
# | | * 760| "_embedded" : { *
# | | * 761| "artist" : { *
# | | * 762| "artistid" : 1, *
# | | * 763| "charfield" : null, *
# | | * 764| "name" : "Caterwauler McCrae", *
# | | * 765| "rank" : 13 *
# | | * 766| } *
# | | * 767| }, *
# | | * 768| "_links" : { *
# | | * 769| "artist" : { *
# | | * 770| "href" : "/artist/1" *
# | | * 771| }, *
# | | * 772| "cd_to_producer" : { *
# | | * 773| "href" : "/cd_to_producer?me.cd=2" *
# | | * 774| }, *
# | | * 775| "genre" : { *
# | | * 776| "href" : "/genre/2" *
# | | * 777| }, *
# | | * 778| "self" : { *
# | | * 779| "href" : "/cd/2" *
# | | * 780| }, *
# | | * 781| "tracks" : { *
# | | * 782| "href" : "/track?me.cd=2" *
# | | * 783| } *
# | | * 784| }, *
# | | * 785| "artist" : 1, *
# | | * 786| "cdid" : 2, *
# | | * 787| "genreid" : 2, *
# | | * 788| "single_track" : null, *
# | | * 789| "title" : "Forkful of bees", *
# | | * 790| "year" : "2001" *
# | | * 791| }, *
# | | * 792| { *
# | | * 793| "_embedded" : { *
# | | * 794| "artist" : { *
# | | * 795| "artistid" : 1, *
# | | * 796| "charfield" : null, *
# | | * 797| "name" : "Caterwauler McCrae", *
# | | * 798| "rank" : 13 *
# | | * 799| } *
# | | * 800| }, *
# | | * 801| "_links" : { *
# | | * 802| "artist" : { *
# | | * 803| "href" : "/artist/1" *
# | | * 804| }, *
# | | * 805| "cd_to_producer" : { *
# | | * 806| "href" : "/cd_to_producer?me.cd=3" *
# | | * 807| }, *
# | | * 808| "genre" : { *
# | | * 809| "href" : "/genre/2" *
# | | * 810| }, *
# | | * 811| "self" : { *
# | | * 812| "href" : "/cd/3" *
# | | * 813| }, *
# | | * 814| "tracks" : { *
# | | * 815| "href" : "/track?me.cd=3" *
# | | * 816| } *
# | | * 817| }, *
# | | * 818| "artist" : 1, *
# | | * 819| "cdid" : 3, *
# | | * 820| "genreid" : 2, *
# | | * 821| "single_track" : null, *
# | | * 822| "title" : "Caterwaulin\' Blues", *
# | | * 823| "year" : "1997" *
# | | * 824| } *
# | | * 825| ] *
# | | * 826| }, *
# | | * 827| "_links" : { *
# | | * 828| "self" : { *
# | | * 829| "href" : "/cd?rows=30&me.artist=1&page=1", *
# | | * 830| "title" : "TestSchema::Result::CD" *
# | | * 831| } *
# | | * 832| } *
# | | * 833|} *
# | | * 834|\n *
# | 67|=== prefetch on invalid name | 835|=== prefetch on invalid name |
# | 68|Request: | 836|Request: |
# | 69|GET /cd/1?prefetch=nonesuch | 837|GET /cd/1?prefetch=nonesuch |
# | 70|Accept: application/hal+json,application/json | 838|Accept: application/hal+json,application/json |
# | 71|Response: | 839|Response: |
# | 72|400 Bad Request | 840|400 Bad Request |
# | 73|Content-type: application/json | 841|Content-type: application/json |
# | 74|{ | 842|{ |
# | 75| "errors" : [ | 843| "errors" : [ |
# | 76| { | 844| { |
# | 77| "_meta" : { | 845| "_meta" : { |
# | 78| "relationship" : null, | 846| "relationship" : null, |
# | 79| "relationships" : [ | 847| "relationships" : [ |
# | 80| "artist", | 848| "artist", |
# | 81| "cd_to_producer", | 849| "cd_to_producer", |
# | 82| "existing_single_track", | 850| "existing_single_track", |
# | 83| "genre", | 851| "genre", |
# | 84| "single_track", | 852| "single_track", |
# | 85| "tracks" | 853| "tracks" |
# | 86| ] | 854| ] |
# | 87| }, | 855| }, |
# | 88| "nonesuch" : "no relationship with that name\\n" | 856| "nonesuch" : "no relationship with that name\\n" |
# | 89| } | 857| } |
# | 90| ] | 858| ] |
# | 91|} | 859|} |
# | 92| | 860| |
# | 93|=== prefetch on set with partial response of prefetched items | 861|=== prefetch on set with partial response of prefetched items |
# | 94|Request: | 862|Request: |
# | 95|GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid | 863|GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid |
# | 96|Accept: application/hal+json,application/json | 864|Accept: application/hal+json,application/json |
# | 97|Response: | 865|Response: |
# * 98|500 Internal Server Error * 866|200 OK *
# | 99|Content-type: application/hal+json | 867|Content-type: application/hal+json |
# | | * 868|{ *
# | | * 869| "_embedded" : { *
# | | * 870| "cd" : [ *
# | | * 871| { *
# | | * 872| "_embedded" : { *
# | | * 873| "artist" : { *
# | | * 874| "artistid" : 1 *
# | | * 875| }, *
# | | * 876| "genre" : { *
# | | * 877| "genreid" : 1 *
# | | * 878| } *
# | | * 879| }, *
# | | * 880| "_links" : { *
# | | * 881| "artist" : { *
# | | * 882| "href" : "/artist/1" *
# | | * 883| }, *
# | | * 884| "cd_to_producer" : { *
# | | * 885| "href" : "/cd_to_producer?me.cd=1" *
# | | * 886| }, *
# | | * 887| "genre" : { *
# | | * 888| "href" : "/genre/1" *
# | | * 889| }, *
# | | * 890| "self" : { *
# | | * 891| "href" : "/cd/1" *
# | | * 892| }, *
# | | * 893| "tracks" : { *
# | | * 894| "href" : "/track?me.cd=1" *
# | | * 895| } *
# | | * 896| }, *
# | | * 897| "artist" : 1, *
# | | * 898| "cdid" : 1, *
# | | * 899| "genreid" : 1 *
# | | * 900| }, *
# | | * 901| { *
# | | * 902| "_embedded" : { *
# | | * 903| "artist" : { *
# | | * 904| "artistid" : 1 *
# | | * 905| }, *
# | | * 906| "genre" : { *
# | | * 907| "genreid" : 2 *
# | | * 908| } *
# | | * 909| }, *
# | | * 910| "_links" : { *
# | | * 911| "artist" : { *
# | | * 912| "href" : "/artist/1" *
# | | * 913| }, *
# | | * 914| "cd_to_producer" : { *
# | | * 915| "href" : "/cd_to_producer?me.cd=2" *
# | | * 916| }, *
# | | * 917| "genre" : { *
# | | * 918| "href" : "/genre/2" *
# | | * 919| }, *
# | | * 920| "self" : { *
# | | * 921| "href" : "/cd/2" *
# | | * 922| }, *
# | | * 923| "tracks" : { *
# | | * 924| "href" : "/track?me.cd=2" *
# | | * 925| } *
# | | * 926| }, *
# | | * 927| "artist" : 1, *
# | | * 928| "cdid" : 2, *
# | | * 929| "genreid" : 2 *
# | | * 930| } *
# | | * 931| ] *
# | | * 932| }, *
# | | * 933| "_links" : { *
# | | * 934| "next" : { *
# | | * 935| "href" : "/cd?rows=2&page=2" *
# | | * 936| }, *
# | | * 937| "self" : { *
# | | * 938| "href" : "/cd?rows=2&page=1", *
# | | * 939| "title" : "TestSchema::Result::CD" *
# | | * 940| } *
# | | * 941| } *
# | | * 942|} *
# | | * 943|\n *
# | 100|=== prefetch on item with partial response of prefetched item | 944|=== prefetch on item with partial response of prefetched item |
# | 101|Request: | 945|Request: |
# | 102|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | 946|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid |
# | 103|Accept: application/hal+json,application/json | 947|Accept: application/hal+json,application/json |
# | 104|Response: | 948|Response: |
# * 105|500 Internal Server Error * 949|200 OK *
# | 106|Content-type: application/hal+json | 950|Content-type: application/hal+json |
# | | * 951|{ *
# | | * 952| "_embedded" : { *
# | | * 953| "artist" : { *
# | | * 954| "artistid" : 1 *
# | | * 955| }, *
# | | * 956| "genre" : { *
# | | * 957| "genreid" : 1 *
# | | * 958| } *
# | | * 959| }, *
# | | * 960| "_links" : { *
# | | * 961| "artist" : { *
# | | * 962| "href" : "/artist/1" *
# | | * 963| }, *
# | | * 964| "cd_to_producer" : { *
# | | * 965| "href" : "/cd_to_producer?me.cd=1" *
# | | * 966| }, *
# | | * 967| "genre" : { *
# | | * 968| "href" : "/genre/1" *
# | | * 969| }, *
# | | * 970| "self" : { *
# | | * 971| "href" : "/cd/1" *
# | | * 972| }, *
# | | * 973| "tracks" : { *
# | | * 974| "href" : "/track?me.cd=1" *
# | | * 975| } *
# | | * 976| }, *
# | | * 977| "artist" : 1, *
# | | * 978| "cdid" : 1, *
# | | * 979| "genreid" : 1 *
# | | * 980|} *
# | | * 981|\n *
# | 107|' | 982|' |
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Prefetch ====='
# at t/40-prefetch-hal.t line 20.
# Looks like you failed 3 tests of 3.
t/40-prefetch-hal.t ......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/o17ryyL2Gi
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Prefetch =====
# --- Config:
# --- Name: prefetch on an item using two belongs_to relationships
# GET /cd/1?prefetch=artist,genre
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: prefetch on a set using two belongs_to relationships
# GET /cd?rows=2&page=1&prefetch=artist,genre
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: filter on prefetched relation field
# GET /cd?prefetch=artist&artist.name=Random+Boy+Band
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: filter on prefetch with JSON
# GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: multi type relation (has_many) in prefetch on item
# GET /artist/1?prefetch=cds&order=cds.cdid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: multi type relation (has_many) in prefetch on set
# GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: multi type relation in prefetch on item (many_to_many via JSON)
# GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: filter on nested prefetch
# GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: prefetch with query on ambiguous field
# GET /cd/?me.artist=1&prefetch=artist
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: prefetch on invalid name
# GET /cd/1?prefetch=nonesuch
# Content-Length: 389
# Content-Type: application/json
# --- Name: prefetch on set with partial response of prefetched items
# GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: prefetch on item with partial response of prefetched item
# GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
not ok 1 - 40-prefetch-hal.t output in t/40-prefetch-hal.got matches t/40-prefetch-hal.exp
1..1
not ok 3 - ===== Prefetch =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a990), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6ad40), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f010), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f010), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f38), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93113e8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f38), Moose::Meta::Instance=HASH(0x937b5b8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93113e8), HASH(0x9311918)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311b88), HASH(0x9311918)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311b88), HASH(0x9311918)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311b88), HASH(0x9311918)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310560)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310560)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310560)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbbc18)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/40-prefetch-jsonapi.t line 7
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield, genre.genreid, genre.name FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield, genre.genreid, genre.name FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( artist.name = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( artist.name LIKE ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid WHERE ( me.artistid = ? ) GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY MIN( cds.cdid ) LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid WHERE ( me.artistid = ? ) ORDER BY cds.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY me.artistid ASC, MIN( cds.cdid ) LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid ORDER BY me.artistid ASC, cds.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd_to_producer [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, cd_to_producer.cd, cd_to_producer.producer, cd_to_producer.attribute, producer.producerid, producer.name FROM (SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track FROM cd me WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?) me LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = me.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield, cds.cdid, cds.artist, cds.title, cds.year, cds.genreid, cds.single_track, cd_to_producer.cd, cd_to_producer.producer, cd_to_producer.attribute, producer.producerid, producer.name FROM (SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me LEFT JOIN cd cds ON cds.artist = me.artistid LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = cds.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( ( cds.year > ? AND producer.name = ? ) ) GROUP BY me.artistid, me.name, me.rank, me.charfield ORDER BY me.artistid ASC LIMIT ?) me LEFT JOIN cd cds ON cds.artist = me.artistid LEFT JOIN cd_to_producer cd_to_producer ON cd_to_producer.cd = cds.cdid LEFT JOIN producer producer ON producer.producerid = cd_to_producer.producer WHERE ( ( cds.year > ? AND producer.name = ? ) ) ORDER BY me.artistid ASC"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.title, me.year, me.genreid, me.single_track, artist.artistid, artist.name, artist.rank, artist.charfield FROM cd me JOIN artist artist ON artist.artistid = me.artist WHERE ( me.artist = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.genreid, genre.genreid, artist.artistid FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_JSONAPI.pm line 197
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "SELECT me.cdid, me.artist, me.genreid, artist.artistid, genre.genreid FROM cd me JOIN artist artist ON artist.artistid = me.artist LEFT JOIN genre genre ON genre.genreid = me.genreid WHERE ( me.cdid = ? ) ORDER BY me.cdid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test '40-prefetch-jsonapi.t output in t/40-prefetch-jsonapi.got matches t/40-prefetch-jsonapi.exp'
# at t/lib/TestDS.pm line 67.
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# | 1|'=== prefetch on an item using two belongs_to relationships | 1|'=== prefetch on an item using two belongs_to relationships |
# | 2|Request: | 2|Request: |
# | 3|GET /cd/1?prefetch=artist,genre | 3|GET /cd/1?prefetch=artist,genre |
# | 4|Accept: application/vnd.api+json | 4|Accept: application/vnd.api+json |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|200 OK *
# | 7|Content-type: application/vnd.api+json | 7|Content-type: application/vnd.api+json |
# | | * 8|{ *
# | | * 9| "cd" : [ *
# | | * 10| { *
# | | * 11| "artist" : 1, *
# | | * 12| "cdid" : 1, *
# | | * 13| "genreid" : 1, *
# | | * 14| "href" : "/cd/1", *
# | | * 15| "id" : 1, *
# | | * 16| "links" : { *
# | | * 17| "artist" : 1, *
# | | * 18| "genre" : 1 *
# | | * 19| }, *
# | | * 20| "single_track" : null, *
# | | * 21| "title" : "Spoonful of bees", *
# | | * 22| "type" : "cd", *
# | | * 23| "year" : "1999" *
# | | * 24| } *
# | | * 25| ], *
# | | * 26| "linked" : { *
# | | * 27| "artist" : [ *
# | | * 28| { *
# | | * 29| "artistid" : 1, *
# | | * 30| "charfield" : null, *
# | | * 31| "href" : "/artist/1", *
# | | * 32| "id" : 1, *
# | | * 33| "name" : "Caterwauler McCrae", *
# | | * 34| "rank" : 13, *
# | | * 35| "type" : "artist" *
# | | * 36| } *
# | | * 37| ], *
# | | * 38| "genre" : [ *
# | | * 39| { *
# | | * 40| "genreid" : 1, *
# | | * 41| "href" : "/genre/1", *
# | | * 42| "id" : 1, *
# | | * 43| "name" : "emo", *
# | | * 44| "type" : "genre" *
# | | * 45| } *
# | | * 46| ] *
# | | * 47| }, *
# | | * 48| "links" : { *
# | | * 49| "cd.artist" : { *
# | | * 50| "href" : "/artist/{artist.artist}", *
# | | * 51| "type" : "artist" *
# | | * 52| }, *
# | | * 53| "cd.genre" : { *
# | | * 54| "href" : "/genre/{genre.genreid}", *
# | | * 55| "type" : "genre" *
# | | * 56| } *
# | | * 57| } *
# | | * 58|} *
# | | * 59|\n *
# | 8|=== prefetch on a set using two belongs_to relationships | 60|=== prefetch on a set using two belongs_to relationships |
# | 9|Request: | 61|Request: |
# | 10|GET /cd?rows=2&page=1&prefetch=artist,genre | 62|GET /cd?rows=2&page=1&prefetch=artist,genre |
# | 11|Accept: application/vnd.api+json | 63|Accept: application/vnd.api+json |
# | 12|Response: | 64|Response: |
# * 13|500 Internal Server Error * 65|200 OK *
# | 14|Content-type: application/vnd.api+json | 66|Content-type: application/vnd.api+json |
# | | * 67|{ *
# | | * 68| "cd" : [ *
# | | * 69| { *
# | | * 70| "artist" : 1, *
# | | * 71| "cdid" : 1, *
# | | * 72| "genreid" : 1, *
# | | * 73| "href" : "/cd/1", *
# | | * 74| "id" : 1, *
# | | * 75| "links" : { *
# | | * 76| "artist" : 1, *
# | | * 77| "genre" : 1 *
# | | * 78| }, *
# | | * 79| "single_track" : null, *
# | | * 80| "title" : "Spoonful of bees", *
# | | * 81| "type" : "cd", *
# | | * 82| "year" : "1999" *
# | | * 83| }, *
# | | * 84| { *
# | | * 85| "artist" : 1, *
# | | * 86| "cdid" : 2, *
# | | * 87| "genreid" : 2, *
# | | * 88| "href" : "/cd/2", *
# | | * 89| "id" : 2, *
# | | * 90| "links" : { *
# | | * 91| "artist" : 1, *
# | | * 92| "genre" : 2 *
# | | * 93| }, *
# | | * 94| "single_track" : null, *
# | | * 95| "title" : "Forkful of bees", *
# | | * 96| "type" : "cd", *
# | | * 97| "year" : "2001" *
# | | * 98| } *
# | | * 99| ], *
# | | * 100| "linked" : { *
# | | * 101| "artist" : [ *
# | | * 102| { *
# | | * 103| "artistid" : 1, *
# | | * 104| "charfield" : null, *
# | | * 105| "href" : "/artist/1", *
# | | * 106| "id" : 1, *
# | | * 107| "name" : "Caterwauler McCrae", *
# | | * 108| "rank" : 13, *
# | | * 109| "type" : "artist" *
# | | * 110| } *
# | | * 111| ], *
# | | * 112| "genre" : [ *
# | | * 113| { *
# | | * 114| "genreid" : 1, *
# | | * 115| "href" : "/genre/1", *
# | | * 116| "id" : 1, *
# | | * 117| "name" : "emo", *
# | | * 118| "type" : "genre" *
# | | * 119| }, *
# | | * 120| { *
# | | * 121| "genreid" : 2, *
# | | * 122| "href" : "/genre/2", *
# | | * 123| "id" : 2, *
# | | * 124| "name" : "country", *
# | | * 125| "type" : "genre" *
# | | * 126| } *
# | | * 127| ] *
# | | * 128| }, *
# | | * 129| "links" : { *
# | | * 130| "cd.artist" : { *
# | | * 131| "href" : "/artist/{artist.artist}", *
# | | * 132| "type" : "artist" *
# | | * 133| }, *
# | | * 134| "cd.genre" : { *
# | | * 135| "href" : "/genre/{genre.genreid}", *
# | | * 136| "type" : "genre" *
# | | * 137| } *
# | | * 138| } *
# | | * 139|} *
# | | * 140|\n *
# | 15|=== filter on prefetched relation field | 141|=== filter on prefetched relation field |
# | 16|Request: | 142|Request: |
# | 17|GET /cd?prefetch=artist&artist.name=Random+Boy+Band | 143|GET /cd?prefetch=artist&artist.name=Random+Boy+Band |
# | 18|Accept: application/vnd.api+json | 144|Accept: application/vnd.api+json |
# | 19|Response: | 145|Response: |
# * 20|500 Internal Server Error * 146|200 OK *
# | 21|Content-type: application/vnd.api+json | 147|Content-type: application/vnd.api+json |
# | | * 148|{ *
# | | * 149| "cd" : [ *
# | | * 150| { *
# | | * 151| "artist" : 2, *
# | | * 152| "cdid" : 4, *
# | | * 153| "genreid" : 3, *
# | | * 154| "href" : "/cd/4", *
# | | * 155| "id" : 4, *
# | | * 156| "links" : { *
# | | * 157| "artist" : 2 *
# | | * 158| }, *
# | | * 159| "single_track" : null, *
# | | * 160| "title" : "Generic Manufactured Singles", *
# | | * 161| "type" : "cd", *
# | | * 162| "year" : "2001" *
# | | * 163| } *
# | | * 164| ], *
# | | * 165| "linked" : { *
# | | * 166| "artist" : [ *
# | | * 167| { *
# | | * 168| "artistid" : 2, *
# | | * 169| "charfield" : null, *
# | | * 170| "href" : "/artist/2", *
# | | * 171| "id" : 2, *
# | | * 172| "name" : "Random Boy Band", *
# | | * 173| "rank" : 13, *
# | | * 174| "type" : "artist" *
# | | * 175| } *
# | | * 176| ] *
# | | * 177| }, *
# | | * 178| "links" : { *
# | | * 179| "cd.artist" : { *
# | | * 180| "href" : "/artist/{artist.artist}", *
# | | * 181| "type" : "artist" *
# | | * 182| } *
# | | * 183| } *
# | | * 184|} *
# | | * 185|\n *
# | 22|=== filter on prefetch with JSON | 186|=== filter on prefetch with JSON |
# | 23|Request: | 187|Request: |
# | 24|GET /cd?prefetch=artist PARAMS: artist.name~json=>{"like"=>"%Band"} | 188|GET /cd?prefetch=artist PARAMS: artist.name~json=>{"like"=>"%Band"} |
# | 25|GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D | 189|GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D |
# | 26|Accept: application/vnd.api+json | 190|Accept: application/vnd.api+json |
# | 27|Response: | 191|Response: |
# * 28|500 Internal Server Error * 192|200 OK *
# | 29|Content-type: application/vnd.api+json | 193|Content-type: application/vnd.api+json |
# | | * 194|{ *
# | | * 195| "cd" : [ *
# | | * 196| { *
# | | * 197| "artist" : 2, *
# | | * 198| "cdid" : 4, *
# | | * 199| "genreid" : 3, *
# | | * 200| "href" : "/cd/4", *
# | | * 201| "id" : 4, *
# | | * 202| "links" : { *
# | | * 203| "artist" : 2 *
# | | * 204| }, *
# | | * 205| "single_track" : null, *
# | | * 206| "title" : "Generic Manufactured Singles", *
# | | * 207| "type" : "cd", *
# | | * 208| "year" : "2001" *
# | | * 209| } *
# | | * 210| ], *
# | | * 211| "linked" : { *
# | | * 212| "artist" : [ *
# | | * 213| { *
# | | * 214| "artistid" : 2, *
# | | * 215| "charfield" : null, *
# | | * 216| "href" : "/artist/2", *
# | | * 217| "id" : 2, *
# | | * 218| "name" : "Random Boy Band", *
# | | * 219| "rank" : 13, *
# | | * 220| "type" : "artist" *
# | | * 221| } *
# | | * 222| ] *
# | | * 223| }, *
# | | * 224| "links" : { *
# | | * 225| "cd.artist" : { *
# | | * 226| "href" : "/artist/{artist.artist}", *
# | | * 227| "type" : "artist" *
# | | * 228| } *
# | | * 229| } *
# | | * 230|} *
# | | * 231|\n *
# | 30|=== multi type relation (has_many) in prefetch on item | 232|=== multi type relation (has_many) in prefetch on item |
# | 31|Request: | 233|Request: |
# | 32|GET /artist/1?prefetch=cds&order=cds.cdid | 234|GET /artist/1?prefetch=cds&order=cds.cdid |
# | 33|Accept: application/vnd.api+json | 235|Accept: application/vnd.api+json |
# | 34|Response: | 236|Response: |
# * 35|500 Internal Server Error * 237|200 OK *
# | 36|Content-type: application/vnd.api+json | 238|Content-type: application/vnd.api+json |
# | | * 239|{ *
# | | * 240| "artist" : [ *
# | | * 241| { *
# | | * 242| "artistid" : "1", *
# | | * 243| "charfield" : null, *
# | | * 244| "href" : "/artist/1", *
# | | * 245| "id" : "1", *
# | | * 246| "links" : { *
# | | * 247| "cds" : [ *
# | | * 248| "1", *
# | | * 249| "2", *
# | | * 250| "3" *
# | | * 251| ] *
# | | * 252| }, *
# | | * 253| "name" : "Caterwauler McCrae", *
# | | * 254| "rank" : 13, *
# | | * 255| "type" : "artist" *
# | | * 256| } *
# | | * 257| ], *
# | | * 258| "linked" : { *
# | | * 259| "cds" : [ *
# | | * 260| { *
# | | * 261| "artist" : 1, *
# | | * 262| "cdid" : "1", *
# | | * 263| "genreid" : 1, *
# | | * 264| "href" : "/cd/1", *
# | | * 265| "id" : "1", *
# | | * 266| "single_track" : null, *
# | | * 267| "title" : "Spoonful of bees", *
# | | * 268| "type" : "cd", *
# | | * 269| "year" : "1999" *
# | | * 270| }, *
# | | * 271| { *
# | | * 272| "artist" : 1, *
# | | * 273| "cdid" : "2", *
# | | * 274| "genreid" : 2, *
# | | * 275| "href" : "/cd/2", *
# | | * 276| "id" : "2", *
# | | * 277| "single_track" : null, *
# | | * 278| "title" : "Forkful of bees", *
# | | * 279| "type" : "cd", *
# | | * 280| "year" : "2001" *
# | | * 281| }, *
# | | * 282| { *
# | | * 283| "artist" : 1, *
# | | * 284| "cdid" : "3", *
# | | * 285| "genreid" : 2, *
# | | * 286| "href" : "/cd/3", *
# | | * 287| "id" : "3", *
# | | * 288| "single_track" : null, *
# | | * 289| "title" : "Caterwaulin\' Blues", *
# | | * 290| "type" : "cd", *
# | | * 291| "year" : "1997" *
# | | * 292| } *
# | | * 293| ] *
# | | * 294| }, *
# | | * 295| "links" : { *
# | | * 296| "artist.cds" : { *
# | | * 297| "href" : "/cd?me.artist={cds.artistid}", *
# | | * 298| "type" : "cd" *
# | | * 299| } *
# | | * 300| } *
# | | * 301|} *
# | | * 302|\n *
# | 37|=== multi type relation (has_many) in prefetch on set | 303|=== multi type relation (has_many) in prefetch on set |
# | 38|Request: | 304|Request: |
# | 39|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | 305|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 |
# | 40|Accept: application/vnd.api+json | 306|Accept: application/vnd.api+json |
# | 41|Response: | 307|Response: |
# * 42|500 Internal Server Error * 308|200 OK *
# | 43|Content-type: application/vnd.api+json | 309|Content-type: application/vnd.api+json |
# | | * 310|{ *
# | | * 311| "artist" : [ *
# | | * 312| { *
# | | * 313| "artistid" : "1", *
# | | * 314| "charfield" : null, *
# | | * 315| "href" : "/artist/1", *
# | | * 316| "id" : "1", *
# | | * 317| "links" : { *
# | | * 318| "cds" : [ *
# | | * 319| "1", *
# | | * 320| "2", *
# | | * 321| "3" *
# | | * 322| ] *
# | | * 323| }, *
# | | * 324| "name" : "Caterwauler McCrae", *
# | | * 325| "rank" : 13, *
# | | * 326| "type" : "artist" *
# | | * 327| }, *
# | | * 328| { *
# | | * 329| "artistid" : "2", *
# | | * 330| "charfield" : null, *
# | | * 331| "href" : "/artist/2", *
# | | * 332| "id" : "2", *
# | | * 333| "links" : { *
# | | * 334| "cds" : [ *
# | | * 335| "4" *
# | | * 336| ] *
# | | * 337| }, *
# | | * 338| "name" : "Random Boy Band", *
# | | * 339| "rank" : 13, *
# | | * 340| "type" : "artist" *
# | | * 341| } *
# | | * 342| ], *
# | | * 343| "linked" : { *
# | | * 344| "cds" : [ *
# | | * 345| { *
# | | * 346| "artist" : 1, *
# | | * 347| "cdid" : "1", *
# | | * 348| "genreid" : 1, *
# | | * 349| "href" : "/cd/1", *
# | | * 350| "id" : "1", *
# | | * 351| "single_track" : null, *
# | | * 352| "title" : "Spoonful of bees", *
# | | * 353| "type" : "cd", *
# | | * 354| "year" : "1999" *
# | | * 355| }, *
# | | * 356| { *
# | | * 357| "artist" : 1, *
# | | * 358| "cdid" : "2", *
# | | * 359| "genreid" : 2, *
# | | * 360| "href" : "/cd/2", *
# | | * 361| "id" : "2", *
# | | * 362| "single_track" : null, *
# | | * 363| "title" : "Forkful of bees", *
# | | * 364| "type" : "cd", *
# | | * 365| "year" : "2001" *
# | | * 366| }, *
# | | * 367| { *
# | | * 368| "artist" : 1, *
# | | * 369| "cdid" : "3", *
# | | * 370| "genreid" : 2, *
# | | * 371| "href" : "/cd/3", *
# | | * 372| "id" : "3", *
# | | * 373| "single_track" : null, *
# | | * 374| "title" : "Caterwaulin\' Blues", *
# | | * 375| "type" : "cd", *
# | | * 376| "year" : "1997" *
# | | * 377| }, *
# | | * 378| { *
# | | * 379| "artist" : 2, *
# | | * 380| "cdid" : "4", *
# | | * 381| "genreid" : 3, *
# | | * 382| "href" : "/cd/4", *
# | | * 383| "id" : "4", *
# | | * 384| "single_track" : null, *
# | | * 385| "title" : "Generic Manufactured Singles", *
# | | * 386| "type" : "cd", *
# | | * 387| "year" : "2001" *
# | | * 388| } *
# | | * 389| ] *
# | | * 390| }, *
# | | * 391| "links" : { *
# | | * 392| "artist.cds" : { *
# | | * 393| "href" : "/cd?me.artist={cds.artistid}", *
# | | * 394| "type" : "cd" *
# | | * 395| } *
# | | * 396| } *
# | | * 397|} *
# | | * 398|\n *
# | 44|=== multi type relation in prefetch on item (many_to_many via JSON) | 399|=== multi type relation in prefetch on item (many_to_many via JSON) |
# | 45|Request: | 400|Request: |
# | 46|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | 401|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} |
# | 47|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | 402|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D |
# | 48|Accept: application/vnd.api+json | 403|Accept: application/vnd.api+json |
# | 49|Response: | 404|Response: |
# * 50|500 Internal Server Error * 405|200 OK *
# | 51|Content-type: application/vnd.api+json | 406|Content-type: application/vnd.api+json |
# | | * 407|{ *
# | | * 408| "cd" : [ *
# | | * 409| { *
# | | * 410| "artist" : 1, *
# | | * 411| "cdid" : "1", *
# | | * 412| "genreid" : 1, *
# | | * 413| "href" : "/cd/1", *
# | | * 414| "id" : "1", *
# | | * 415| "single_track" : null, *
# | | * 416| "title" : "Spoonful of bees", *
# | | * 417| "type" : "cd", *
# | | * 418| "year" : "1999" *
# | | * 419| } *
# | | * 420| ] *
# | | * 421|} *
# | | * 422|\n *
# | 52|=== filter on nested prefetch | 423|=== filter on nested prefetch |
# | 53|Request: | 424|Request: |
# | 54|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | 425|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} |
# | 55|GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D | 426|GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D |
# | 56|Accept: application/vnd.api+json | 427|Accept: application/vnd.api+json |
# | 57|Response: | 428|Response: |
# * 58|500 Internal Server Error * 429|200 OK *
# | 59|Content-type: application/vnd.api+json | 430|Content-type: application/vnd.api+json |
# | | * 431|{ *
# | | * 432| "artist" : [ *
# | | * 433| { *
# | | * 434| "artistid" : "1", *
# | | * 435| "charfield" : null, *
# | | * 436| "href" : "/artist/1", *
# | | * 437| "id" : "1", *
# | | * 438| "links" : { *
# | | * 439| "cds" : [ *
# | | * 440| "1" *
# | | * 441| ] *
# | | * 442| }, *
# | | * 443| "name" : "Caterwauler McCrae", *
# | | * 444| "rank" : 13, *
# | | * 445| "type" : "artist" *
# | | * 446| } *
# | | * 447| ], *
# | | * 448| "linked" : { *
# | | * 449| "cds" : [ *
# | | * 450| { *
# | | * 451| "artist" : 1, *
# | | * 452| "cdid" : "1", *
# | | * 453| "genreid" : 1, *
# | | * 454| "href" : "/cd/1", *
# | | * 455| "id" : "1", *
# | | * 456| "single_track" : null, *
# | | * 457| "title" : "Spoonful of bees", *
# | | * 458| "type" : "cd", *
# | | * 459| "year" : "1999" *
# | | * 460| } *
# | | * 461| ] *
# | | * 462| }, *
# | | * 463| "links" : { *
# | | * 464| "artist.cds" : { *
# | | * 465| "href" : "/cd?me.artist={cds.artistid}", *
# | | * 466| "type" : "cd" *
# | | * 467| } *
# | | * 468| } *
# | | * 469|} *
# | | * 470|\n *
# | 60|=== prefetch with query on ambiguous field | 471|=== prefetch with query on ambiguous field |
# | 61|Request: | 472|Request: |
# | 62|GET /cd/?me.artist=1&prefetch=artist | 473|GET /cd/?me.artist=1&prefetch=artist |
# | 63|Accept: application/vnd.api+json | 474|Accept: application/vnd.api+json |
# | 64|Response: | 475|Response: |
# * 65|500 Internal Server Error * 476|200 OK *
# | 66|Content-type: application/vnd.api+json | 477|Content-type: application/vnd.api+json |
# | | * 478|{ *
# | | * 479| "cd" : [ *
# | | * 480| { *
# | | * 481| "artist" : 1, *
# | | * 482| "cdid" : 1, *
# | | * 483| "genreid" : 1, *
# | | * 484| "href" : "/cd/1", *
# | | * 485| "id" : 1, *
# | | * 486| "links" : { *
# | | * 487| "artist" : 1 *
# | | * 488| }, *
# | | * 489| "single_track" : null, *
# | | * 490| "title" : "Spoonful of bees", *
# | | * 491| "type" : "cd", *
# | | * 492| "year" : "1999" *
# | | * 493| }, *
# | | * 494| { *
# | | * 495| "artist" : 1, *
# | | * 496| "cdid" : 2, *
# | | * 497| "genreid" : 2, *
# | | * 498| "href" : "/cd/2", *
# | | * 499| "id" : 2, *
# | | * 500| "links" : { *
# | | * 501| "artist" : 1 *
# | | * 502| }, *
# | | * 503| "single_track" : null, *
# | | * 504| "title" : "Forkful of bees", *
# | | * 505| "type" : "cd", *
# | | * 506| "year" : "2001" *
# | | * 507| }, *
# | | * 508| { *
# | | * 509| "artist" : 1, *
# | | * 510| "cdid" : 3, *
# | | * 511| "genreid" : 2, *
# | | * 512| "href" : "/cd/3", *
# | | * 513| "id" : 3, *
# | | * 514| "links" : { *
# | | * 515| "artist" : 1 *
# | | * 516| }, *
# | | * 517| "single_track" : null, *
# | | * 518| "title" : "Caterwaulin\' Blues", *
# | | * 519| "type" : "cd", *
# | | * 520| "year" : "1997" *
# | | * 521| } *
# | | * 522| ], *
# | | * 523| "linked" : { *
# | | * 524| "artist" : [ *
# | | * 525| { *
# | | * 526| "artistid" : 1, *
# | | * 527| "charfield" : null, *
# | | * 528| "href" : "/artist/1", *
# | | * 529| "id" : 1, *
# | | * 530| "name" : "Caterwauler McCrae", *
# | | * 531| "rank" : 13, *
# | | * 532| "type" : "artist" *
# | | * 533| } *
# | | * 534| ] *
# | | * 535| }, *
# | | * 536| "links" : { *
# | | * 537| "cd.artist" : { *
# | | * 538| "href" : "/artist/{artist.artist}", *
# | | * 539| "type" : "artist" *
# | | * 540| } *
# | | * 541| } *
# | | * 542|} *
# | | * 543|\n *
# | 67|=== prefetch on invalid name | 544|=== prefetch on invalid name |
# | 68|Request: | 545|Request: |
# | 69|GET /cd/1?prefetch=nonesuch | 546|GET /cd/1?prefetch=nonesuch |
# | 70|Accept: application/vnd.api+json | 547|Accept: application/vnd.api+json |
# | 71|Response: | 548|Response: |
# | 72|400 Bad Request | 549|400 Bad Request |
# | 73|Content-type: application/json | 550|Content-type: application/json |
# | 74|{ | 551|{ |
# | 75| "errors" : [ | 552| "errors" : [ |
# | 76| { | 553| { |
# | 77| "_meta" : { | 554| "_meta" : { |
# | 78| "relationship" : null, | 555| "relationship" : null, |
# | 79| "relationships" : [ | 556| "relationships" : [ |
# | 80| "artist", | 557| "artist", |
# | 81| "cd_to_producer", | 558| "cd_to_producer", |
# | 82| "existing_single_track", | 559| "existing_single_track", |
# | 83| "genre", | 560| "genre", |
# | 84| "single_track", | 561| "single_track", |
# | 85| "tracks" | 562| "tracks" |
# | 86| ] | 563| ] |
# | 87| }, | 564| }, |
# | 88| "nonesuch" : "no relationship with that name\\n" | 565| "nonesuch" : "no relationship with that name\\n" |
# | 89| } | 566| } |
# | 90| ] | 567| ] |
# | 91|} | 568|} |
# | 92| | 569| |
# | 93|=== prefetch on set with partial response of prefetched items | 570|=== prefetch on set with partial response of prefetched items |
# | 94|Request: | 571|Request: |
# | 95|GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid | 572|GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid |
# | 96|Accept: application/vnd.api+json | 573|Accept: application/vnd.api+json |
# | 97|Response: | 574|Response: |
# * 98|500 Internal Server Error * 575|200 OK *
# | 99|Content-type: application/vnd.api+json | 576|Content-type: application/vnd.api+json |
# | | * 577|{ *
# | | * 578| "cd" : [ *
# | | * 579| { *
# | | * 580| "artist" : 1, *
# | | * 581| "cdid" : 1, *
# | | * 582| "genreid" : 1, *
# | | * 583| "href" : "/cd/1", *
# | | * 584| "id" : 1, *
# | | * 585| "links" : { *
# | | * 586| "artist" : 1, *
# | | * 587| "genre" : 1 *
# | | * 588| }, *
# | | * 589| "type" : "cd" *
# | | * 590| }, *
# | | * 591| { *
# | | * 592| "artist" : 1, *
# | | * 593| "cdid" : 2, *
# | | * 594| "genreid" : 2, *
# | | * 595| "href" : "/cd/2", *
# | | * 596| "id" : 2, *
# | | * 597| "links" : { *
# | | * 598| "artist" : 1, *
# | | * 599| "genre" : 2 *
# | | * 600| }, *
# | | * 601| "type" : "cd" *
# | | * 602| } *
# | | * 603| ], *
# | | * 604| "linked" : { *
# | | * 605| "artist" : [ *
# | | * 606| { *
# | | * 607| "artistid" : 1, *
# | | * 608| "href" : "/artist/1", *
# | | * 609| "id" : 1, *
# | | * 610| "type" : "artist" *
# | | * 611| } *
# | | * 612| ], *
# | | * 613| "genre" : [ *
# | | * 614| { *
# | | * 615| "genreid" : 1, *
# | | * 616| "href" : "/genre/1", *
# | | * 617| "id" : 1, *
# | | * 618| "type" : "genre" *
# | | * 619| }, *
# | | * 620| { *
# | | * 621| "genreid" : 2, *
# | | * 622| "href" : "/genre/2", *
# | | * 623| "id" : 2, *
# | | * 624| "type" : "genre" *
# | | * 625| } *
# | | * 626| ] *
# | | * 627| }, *
# | | * 628| "links" : { *
# | | * 629| "cd.artist" : { *
# | | * 630| "href" : "/artist/{artist.artist}", *
# | | * 631| "type" : "artist" *
# | | * 632| }, *
# | | * 633| "cd.genre" : { *
# | | * 634| "href" : "/genre/{genre.genreid}", *
# | | * 635| "type" : "genre" *
# | | * 636| } *
# | | * 637| } *
# | | * 638|} *
# | | * 639|\n *
# | 100|=== prefetch on item with partial response of prefetched item | 640|=== prefetch on item with partial response of prefetched item |
# | 101|Request: | 641|Request: |
# | 102|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | 642|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid |
# | 103|Accept: application/vnd.api+json | 643|Accept: application/vnd.api+json |
# | 104|Response: | 644|Response: |
# * 105|500 Internal Server Error * 645|200 OK *
# | 106|Content-type: application/vnd.api+json | 646|Content-type: application/vnd.api+json |
# | | * 647|{ *
# | | * 648| "cd" : [ *
# | | * 649| { *
# | | * 650| "artist" : 1, *
# | | * 651| "cdid" : 1, *
# | | * 652| "genreid" : 1, *
# | | * 653| "href" : "/cd/1", *
# | | * 654| "id" : 1, *
# | | * 655| "links" : { *
# | | * 656| "artist" : 1, *
# | | * 657| "genre" : 1 *
# | | * 658| }, *
# | | * 659| "type" : "cd" *
# | | * 660| } *
# | | * 661| ], *
# | | * 662| "linked" : { *
# | | * 663| "artist" : [ *
# | | * 664| { *
# | | * 665| "artistid" : 1, *
# | | * 666| "href" : "/artist/1", *
# | | * 667| "id" : 1, *
# | | * 668| "type" : "artist" *
# | | * 669| } *
# | | * 670| ], *
# | | * 671| "genre" : [ *
# | | * 672| { *
# | | * 673| "genreid" : 1, *
# | | * 674| "href" : "/genre/1", *
# | | * 675| "id" : 1, *
# | | * 676| "type" : "genre" *
# | | * 677| } *
# | | * 678| ] *
# | | * 679| }, *
# | | * 680| "links" : { *
# | | * 681| "cd.artist" : { *
# | | * 682| "href" : "/artist/{artist.artist}", *
# | | * 683| "type" : "artist" *
# | | * 684| }, *
# | | * 685| "cd.genre" : { *
# | | * 686| "href" : "/genre/{genre.genreid}", *
# | | * 687| "type" : "genre" *
# | | * 688| } *
# | | * 689| } *
# | | * 690|} *
# | | * 691|\n *
# | 107|' | 692|' |
# +----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------+
# Looks like you failed 1 test of 1.
# Failed test '===== Prefetch ====='
# at t/40-prefetch-jsonapi.t line 20.
# Looks like you failed 3 tests of 3.
t/40-prefetch-jsonapi.t ..
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/jSM7fWD14d
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Prefetch =====
# --- Config:
# --- Name: prefetch on an item using two belongs_to relationships
# GET /cd/1?prefetch=artist,genre
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: prefetch on a set using two belongs_to relationships
# GET /cd?rows=2&page=1&prefetch=artist,genre
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: filter on prefetched relation field
# GET /cd?prefetch=artist&artist.name=Random+Boy+Band
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: filter on prefetch with JSON
# GET /cd?prefetch=artist&artist.name~json=%7B%22like%22%3A%22%25Band%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: multi type relation (has_many) in prefetch on item
# GET /artist/1?prefetch=cds&order=cds.cdid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: multi type relation (has_many) in prefetch on set
# GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: multi type relation in prefetch on item (many_to_many via JSON)
# GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: filter on nested prefetch
# GET /artist?rows=2&producer.name=Matt+S+Trout&prefetch~json=%7B%22cds%22%3A%7B%22cd_to_producer%22%3A%22producer%22%7D%7D&cds.year~json=%7B%22%3E%22%3A%220996%22%7D
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: prefetch with query on ambiguous field
# GET /cd/?me.artist=1&prefetch=artist
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: prefetch on invalid name
# GET /cd/1?prefetch=nonesuch
# Content-Length: 389
# Content-Type: application/json
# --- Name: prefetch on set with partial response of prefetched items
# GET /cd?rows=2&page=1&prefetch=artist,genre&fields=cdid,artist,genreid,genre.genreid,artist.artistid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
# --- Name: prefetch on item with partial response of prefetched item
# GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid
# Vary: Accept
# Content-Length: 0
# Content-Type: application/vnd.api+json
not ok 1 - 40-prefetch-jsonapi.t output in t/40-prefetch-jsonapi.got matches t/40-prefetch-jsonapi.exp
1..1
not ok 3 - ===== Prefetch =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6af08), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6b2b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f6b8), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f6b8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa24b0), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311a10)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa24b0), Moose::Meta::Instance=HASH(0x937ba30), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311a10), HASH(0x9311f40)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93121b0), HASH(0x9311f40)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93121b0), HASH(0x9311f40)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93121b0), HASH(0x9311f40)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93717b0)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93717b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93717b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbc148)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/50-modify-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test at t/50-modify-core.t line 24.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test '/artist includes 1'
# at t/50-modify-core.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 2'
# at t/50-modify-core.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 3'
# at t/50-modify-core.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist data looks sane'
# at t/50-modify-core.t line 29.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "INSERT INTO artist ( name, rank) VALUES ( ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62
# Failed test at t/50-modify-core.t line 38.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'has Location header'
# at t/50-modify-core.t line 38.
Use of uninitialized value $uri in concatenation (.) or string at t/lib/TestDS.pm line 201.
Can't call method "scheme" on an undefined value at /home/fly1400/var/megalib/Plack/Test/MockHTTP.pm line 19.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 2.
t/50-modify-core.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/2vLhqdVhwE
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Create - POST =====
# GET /artist
not ok 1
not ok 2 - /artist includes 1
not ok 3 - /artist includes 2
not ok 4 - /artist includes 3
not ok 5 - /artist data looks sane
# plain post
# POST /artist
not ok 6
not ok 7 - has Location header
ok 8 - no data returned without prefetch
# GET
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6ae98), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6b248), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f618), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f618), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa23d8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311a20)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa23d8), Moose::Meta::Instance=HASH(0x937bc28), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311a20), HASH(0x9311f50)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93121c0), HASH(0x9311f50)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93121c0), HASH(0x9311f50)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93121c0), HASH(0x9311f50)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310b98)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310b98)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310b98)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbc1e0)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/50-modify-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/DBIC_HAL.pm line 85
# Failed test at t/50-modify-hal.t line 24.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'data isn't a hash'
# at t/50-modify-hal.t line 25.
# got: ''
# expected: 'HASH'
# Failed test '_embedded isn't hash'
# at t/50-modify-hal.t line 25.
# got: ''
# expected: 'HASH'
# HASH(0xa992178)
# Failed test '_embedded has artist array'
# at t/50-modify-hal.t line 25.
# got: ''
# expected: 'ARRAY'
# Failed test '/artist includes 1'
# at t/50-modify-hal.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 2'
# at t/50-modify-hal.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist includes 3'
# at t/50-modify-hal.t line 28.
# got: ''
# expected: 'HASH'
# Failed test '/artist data looks sane'
# at t/50-modify-hal.t line 29.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "INSERT INTO artist ( name, rank) VALUES ( ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm line 104
# Failed test at t/50-modify-hal.t line 38.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'has Location header'
# at t/50-modify-hal.t line 38.
Use of uninitialized value $uri in concatenation (.) or string at t/lib/TestDS.pm line 201.
Can't call method "scheme" on an undefined value at /home/fly1400/var/megalib/Plack/Test/MockHTTP.pm line 19.
# Tests were run but no plan was declared and done_testing() was not seen.
# Looks like your test exited with 2 just after 2.
t/50-modify-hal.t ........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/09WncIpyPJ
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Create - POST =====
# GET /artist
not ok 1
not ok 2 - data isn't a hash
not ok 3 - _embedded isn't hash
not ok 4 - _embedded has artist array
not ok 5 - /artist includes 1
not ok 6 - /artist includes 2
not ok 7 - /artist includes 3
not ok 8 - /artist data looks sane
# plain post
# POST /artist
not ok 9
not ok 10 - has Location header
ok 11 - no data returned without prefetch
# GET
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/2 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6aa10), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6adc0), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f0d0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f0d0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa2010), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311420)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa2010), Moose::Meta::Instance=HASH(0x937b590), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311420), HASH(0x9311950)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311bc0), HASH(0x9311950)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311bc0), HASH(0x9311950)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311bc0), HASH(0x9311950)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310598)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310598)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310598)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbbb90)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/52-post_rel-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "INSERT INTO cd ( artist, genreid, title, year) VALUES ( ?, ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm line 104
# Failed test at t/52-post_rel-hal.t line 33.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'has Location header'
# at t/52-post_rel-hal.t line 33.
# Failed test 'returns reasonable Location'
# at t/52-post_rel-hal.t line 34.
# undef
# doesn't match '(?^:^/track/\d+$)'
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "INSERT INTO cd ( artist, genreid, title, year) VALUES ( ?, ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm line 104
# Failed test at t/52-post_rel-hal.t line 43.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'has Location header'
# at t/52-post_rel-hal.t line 43.
# Failed test 'returns reasonable Location'
# at t/52-post_rel-hal.t line 44.
# undef
# doesn't match '(?^:^/track/\d+$)'
# Failed test 'return data'
# at t/52-post_rel-hal.t line 46.
# got: ''
# expected: 'HASH'
# Failed test 'has trackid assigned'
# at t/52-post_rel-hal.t line 47.
# Failed test at t/52-post_rel-hal.t line 48.
# got: undef
# expected: 'Just One More'
# Failed test at t/52-post_rel-hal.t line 49.
# got: undef
# expected: '42'
# Failed test 'has cd assigned'
# at t/52-post_rel-hal.t line 50.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: cd [for Statement "INSERT INTO cd ( artist, genreid, title, year) VALUES ( ?, ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritableHAL.pm line 104
# Failed test at t/52-post_rel-hal.t line 58.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
#
# Failed test 'has Location header'
# at t/52-post_rel-hal.t line 58.
# Failed test 'returns reasonable Location'
# at t/52-post_rel-hal.t line 59.
# undef
# doesn't match '(?^:^/track/\d+$)'
# Failed test 'return data'
# at t/52-post_rel-hal.t line 61.
# got: ''
# expected: 'HASH'
# Failed test 'has trackid assigned'
# at t/52-post_rel-hal.t line 62.
# Failed test at t/52-post_rel-hal.t line 63.
# got: undef
# expected: 'Just One More'
# Failed test at t/52-post_rel-hal.t line 64.
# got: undef
# expected: '42'
# Failed test 'has cd assigned'
# at t/52-post_rel-hal.t line 65.
# Failed test 'has _embedded'
# at t/52-post_rel-hal.t line 67.
# Failed test at t/52-post_rel-hal.t line 68.
# Failed test 'has _embedded disc'
# at t/52-post_rel-hal.t line 69.
# got: ''
# expected: 'HASH'
# Looks like you failed 22 tests of 26.
# Failed test '===== Create item, with embedded items, by POST to set ====='
# at t/52-post_rel-hal.t line 73.
# Looks like you failed 3 tests of 3.
t/52-post_rel-hal.t ......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/RVui3lzGJF
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Create item, with embedded items, by POST to set =====
# POST /track?rollback=1
not ok 1
not ok 2 - has Location header
not ok 3 - returns reasonable Location
ok 4 - returns no data
# POST /track?rollback=1&prefetch=self
not ok 5
not ok 6 - has Location header
not ok 7 - returns reasonable Location
not ok 8 - return data
not ok 9 - has trackid assigned
not ok 10
not ok 11
not ok 12 - has cd assigned
ok 13 - has no _embedded
# POST /track?rollback=1&prefetch=self,disc
not ok 14
not ok 15 - has Location header
not ok 16 - returns reasonable Location
not ok 17 - return data
not ok 18 - has trackid assigned
not ok 19
not ok 20
not ok 21 - has cd assigned
not ok 22 - has _embedded
not ok 23
not ok 24 - has _embedded disc
ok 25 - disc matches
ok 26 - disc name matches
1..26
not ok 3 - ===== Create item, with embedded items, by POST to set =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a990), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6ad40), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f010), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f010), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f38), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311450)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f38), Moose::Meta::Instance=HASH(0x937b550), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311450), HASH(0x9311980)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311bf0), HASH(0x9311980)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311bf0), HASH(0x9311980)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311bf0), HASH(0x9311980)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93105c8)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93105c8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93105c8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbbc18)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/53-put_rel-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at, disc.cdid, disc.artist, disc.title, disc.year, disc.genreid, disc.single_track FROM track me JOIN cd disc ON disc.cdid = me.cd WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at FROM track me WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at FROM track me WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test '53-put_rel-core.t output in t/53-put_rel-core.got matches t/53-put_rel-core.exp'
# at t/lib/TestDS.pm line 67.
# +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+
# | 1|'=== POST to the set to create a Track to edit (on an existing CD) | 1|'=== POST to the set to create a Track to edit (on an existing CD) |
# | 2|Request: | 2|Request: |
# | 3|POST /track?prefetch=self | 3|POST /track?prefetch=self |
# | 4|{ "title":"Just One More", "position":4200, "cd":2 } | 4|{ "title":"Just One More", "position":4200, "cd":2 } |
# | 5|Response: | 5|Response: |
# * 6|500 Internal Server Error * 6|201 Created *
# | 7|Content-type: application/json | 7|Content-type: application/json |
# | | * 8|Location: /track/19 *
# | | * 9|{ *
# | | * 10| "cd" : 2, *
# | | * 11| "last_updated_at" : null, *
# | | * 12| "last_updated_on" : null, *
# | | * 13| "position" : 4200, *
# | | * 14| "title" : "Just One More", *
# | | * 15| "trackid" : 19 *
# | | * 16|} *
# | | * 17|\n *
# | 8|=== update the title (19 hardwired for now) and prefetch self and disc (ignored) | 18|=== update the title (19 hardwired for now) and prefetch self and disc (ignored) |
# | 9|Request: | 19|Request: |
# | 10|PUT /track/19?prefetch=self,disc | 20|PUT /track/19?prefetch=self,disc |
# | 11|{ "title":"Just One More (remix)" } | 21|{ "title":"Just One More (remix)" } |
# | 12|Response: | 22|Response: |
# * 13|500 Internal Server Error * 23|200 OK *
# | 14|Content-type: application/json | 24|Content-type: application/json |
# | | * 25|{ *
# | | * 26| "cd" : 2, *
# | | * 27| "last_updated_at" : null, *
# | | * 28| "last_updated_on" : null, *
# | | * 29| "position" : 4200, *
# | | * 30| "title" : "Just One More (remix)", *
# | | * 31| "trackid" : 19 *
# | | * 32|} *
# | | * 33|\n *
# | 15|=== update the track id (primary key) | 34|=== update the track id (primary key) |
# | 16|Request: | 35|Request: |
# | 17|PUT /track/19?prefetch=self | 36|PUT /track/19?prefetch=self |
# | 18|{ "trackid":1900 } | 37|{ "trackid":1900 } |
# | 19|Response: | 38|Response: |
# * 20|500 Internal Server Error * 39|200 OK *
# | 21|Content-type: application/json | 40|Content-type: application/json |
# | | * 41|{ *
# | | * 42| "cd" : 2, *
# | | * 43| "last_updated_at" : null, *
# | | * 44| "last_updated_on" : null, *
# | | * 45| "position" : 4200, *
# | | * 46| "title" : "Just One More (remix)", *
# | | * 47| "trackid" : 1900 *
# | | * 48|} *
# | | * 49|\n *
# | 22|=== delete the track we just added | 50|=== delete the track we just added |
# | 23|Request: | 51|Request: |
# | 24|DELETE /track/1900 | 52|DELETE /track/1900 |
# | 25|Response: | 53|Response: |
# * 26|500 Internal Server Error * 54|204 No Content *
# | 27|Content-type: application/json | 55|Content-type: application/json |
# | 28|' | 56|' |
# +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62
# Failed test at t/53-put_rel-core.t line 28.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'has Location header'
# at t/53-put_rel-core.t line 28.
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-core.t line 33.
# Failed test at t/53-put_rel-core.t line 36.
# status doesn't match, expected HTTP status code '200', got 405
# 405 Method Not Allowed
# Allow: GET, HEAD, POST
# Content-Length: 18
# Content-Type: text/plain
#
# Method Not Allowed
# Failed test 'return data'
# at t/53-put_rel-core.t line 38.
# got: ''
# expected: 'HASH'
# Failed test 'has trackid assigned'
# at t/53-put_rel-core.t line 39.
# Failed test at t/53-put_rel-core.t line 40.
# got: undef
# expected: 'Just One More (remix)'
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-core.t line 46.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at, disc.cdid, disc.artist, disc.title, disc.year, disc.genreid, disc.single_track FROM track me JOIN cd disc ON disc.cdid = me.cd ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test at t/53-put_rel-core.t line 46.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'has trackid assigned'
# at t/53-put_rel-core.t line 47.
# Failed test at t/53-put_rel-core.t line 48.
# got: undef
# expected: 'Just One More (remix)'
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-core.t line 53.
# Failed test at t/53-put_rel-core.t line 53.
# status doesn't match, expected HTTP status code '204', got 405
# 405 Method Not Allowed
# Allow: GET, HEAD, POST
# Content-Length: 18
# Content-Type: text/plain
#
# Method Not Allowed
# Looks like you failed 11 tests of 13.
# Failed test '===== Update a resource and related resources via PUT ====='
# at t/53-put_rel-core.t line 56.
# Looks like you failed 3 tests of 3.
t/53-put_rel-core.t ......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/o6UC5cs3Zb
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Update a resource and related resources via PUT =====
# --- Config:
# --- Name: POST to the set to create a Track to edit (on an existing CD)
# POST /track?prefetch=self
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: update the title (19 hardwired for now) and prefetch self and disc (ignored)
# PUT /track/19?prefetch=self,disc
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: update the track id (primary key)
# PUT /track/19?prefetch=self
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
# --- Name: delete the track we just added
# DELETE /track/1900
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
not ok 1 - 53-put_rel-core.t output in t/53-put_rel-core.got matches t/53-put_rel-core.exp
# POST /track?prefetch=self
not ok 2
not ok 3 - has Location header
# PUT /track/?prefetch=self,disc
not ok 4
not ok 5 - return data
not ok 6 - has trackid assigned
not ok 7
ok 8 - has same position assigned
# recheck data as a separate request
# GET /track/?prefetch=self,disc
not ok 9
not ok 10 - has trackid assigned
not ok 11
ok 12 - has same position assigned
# DELETE /track/
not ok 13
1..13
not ok 3 - ===== Update a resource and related resources via PUT =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a9c8), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6ad78), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8f018), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8f018), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f88), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93113c0)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1f88), Moose::Meta::Instance=HASH(0x937b520), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x93113c0), HASH(0x93118f0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311b60), HASH(0x93118f0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311b60), HASH(0x93118f0)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311b60), HASH(0x93118f0)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310538)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x9310538)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x9310538)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbbc10)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/53-put_rel-hal.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at, disc.cdid, disc.artist, disc.title, disc.year, disc.genreid, disc.single_track FROM track me JOIN cd disc ON disc.cdid = me.cd WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at FROM track me WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at FROM track me WHERE ( me.trackid = ? ) ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test '53-put_rel-hal.t output in t/53-put_rel-hal.got matches t/53-put_rel-hal.exp'
# at t/lib/TestDS.pm line 67.
# +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+
# | Ln|Got | Ln|Expected |
# +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+
# | 1|'=== POST to the set to create a Track to edit (on an existing CD) | 1|'=== POST to the set to create a Track to edit (on an existing CD) |
# | 2|Request: | 2|Request: |
# | 3|POST /track?prefetch=self | 3|POST /track?prefetch=self |
# | 4|Accept: application/hal+json,application/json | 4|Accept: application/hal+json,application/json |
# | 5|{ "title":"Just One More", "position":4200, "cd":2 } | 5|{ "title":"Just One More", "position":4200, "cd":2 } |
# | 6|Response: | 6|Response: |
# * 7|500 Internal Server Error * 7|201 Created *
# | 8|Content-type: application/hal+json | 8|Content-type: application/hal+json |
# | | * 9|Location: /track/19 *
# | | * 10|{ *
# | | * 11| "_links" : { *
# | | * 12| "cd" : { *
# | | * 13| "href" : "/cd/2" *
# | | * 14| }, *
# | | * 15| "cd_cref_cond" : { *
# | | * 16| "href" : "/cd/2" *
# | | * 17| }, *
# | | * 18| "cd_single" : { *
# | | * 19| "href" : "/cd/19" *
# | | * 20| }, *
# | | * 21| "disc" : { *
# | | * 22| "href" : "/cd/2" *
# | | * 23| }, *
# | | * 24| "self" : { *
# | | * 25| "href" : "/track/19" *
# | | * 26| } *
# | | * 27| }, *
# | | * 28| "cd" : 2, *
# | | * 29| "last_updated_at" : null, *
# | | * 30| "last_updated_on" : null, *
# | | * 31| "position" : 4200, *
# | | * 32| "title" : "Just One More", *
# | | * 33| "trackid" : 19 *
# | | * 34|} *
# | | * 35|\n *
# | 9|=== update the title (19 hardwired for now) and prefetch self and disc | 36|=== update the title (19 hardwired for now) and prefetch self and disc |
# | 10|Request: | 37|Request: |
# | 11|PUT /track/19?prefetch=self,disc | 38|PUT /track/19?prefetch=self,disc |
# | 12|Accept: application/hal+json,application/json | 39|Accept: application/hal+json,application/json |
# | 13|{ "title":"Just One More (remix)" } | 40|{ "title":"Just One More (remix)" } |
# | 14|Response: | 41|Response: |
# * 15|500 Internal Server Error * 42|200 OK *
# | 16|Content-type: application/hal+json | 43|Content-type: application/hal+json |
# | | * 44|{ *
# | | * 45| "_embedded" : { *
# | | * 46| "disc" : { *
# | | * 47| "artist" : 1, *
# | | * 48| "cdid" : 2, *
# | | * 49| "genreid" : 2, *
# | | * 50| "single_track" : null, *
# | | * 51| "title" : "Forkful of bees", *
# | | * 52| "year" : "2001" *
# | | * 53| } *
# | | * 54| }, *
# | | * 55| "_links" : { *
# | | * 56| "cd" : { *
# | | * 57| "href" : "/cd/2" *
# | | * 58| }, *
# | | * 59| "cd_cref_cond" : { *
# | | * 60| "href" : "/cd/2" *
# | | * 61| }, *
# | | * 62| "cd_single" : { *
# | | * 63| "href" : "/cd/19" *
# | | * 64| }, *
# | | * 65| "disc" : { *
# | | * 66| "href" : "/cd/2" *
# | | * 67| }, *
# | | * 68| "self" : { *
# | | * 69| "href" : "/track/19" *
# | | * 70| } *
# | | * 71| }, *
# | | * 72| "cd" : 2, *
# | | * 73| "last_updated_at" : null, *
# | | * 74| "last_updated_on" : null, *
# | | * 75| "position" : 4200, *
# | | * 76| "title" : "Just One More (remix)", *
# | | * 77| "trackid" : 19 *
# | | * 78|} *
# | | * 79|\n *
# | 17|=== update the track id (primary key) | 80|=== update the track id (primary key) |
# | 18|Request: | 81|Request: |
# | 19|PUT /track/19?prefetch=self | 82|PUT /track/19?prefetch=self |
# | 20|Accept: application/hal+json,application/json | 83|Accept: application/hal+json,application/json |
# | 21|{ "trackid":1900 } | 84|{ "trackid":1900 } |
# | 22|Response: | 85|Response: |
# * 23|500 Internal Server Error * 86|200 OK *
# | 24|Content-type: application/hal+json | 87|Content-type: application/hal+json |
# | | * 88|{ *
# | | * 89| "_links" : { *
# | | * 90| "cd" : { *
# | | * 91| "href" : "/cd/2" *
# | | * 92| }, *
# | | * 93| "cd_cref_cond" : { *
# | | * 94| "href" : "/cd/2" *
# | | * 95| }, *
# | | * 96| "cd_single" : { *
# | | * 97| "href" : "/cd/1900" *
# | | * 98| }, *
# | | * 99| "disc" : { *
# | | * 100| "href" : "/cd/2" *
# | | * 101| }, *
# | | * 102| "self" : { *
# | | * 103| "href" : "/track/1900" *
# | | * 104| } *
# | | * 105| }, *
# | | * 106| "cd" : 2, *
# | | * 107| "last_updated_at" : null, *
# | | * 108| "last_updated_on" : null, *
# | | * 109| "position" : 4200, *
# | | * 110| "title" : "Just One More (remix)", *
# | | * 111| "trackid" : 1900 *
# | | * 112|} *
# | | * 113|\n *
# | 25|=== delete the track we just added | 114|=== delete the track we just added |
# | 26|Request: | 115|Request: |
# | 27|DELETE /track/1900 | 116|DELETE /track/1900 |
# | 28|Accept: application/hal+json,application/json | 117|Accept: application/hal+json,application/json |
# | 29|Response: | 118|Response: |
# * 30|500 Internal Server Error * 119|204 No Content *
# | 31|Content-type: application/hal+json | 120|Content-type: application/hal+json |
# | 32|' | 121|' |
# +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62
# Failed test at t/53-put_rel-hal.t line 28.
# status doesn't match, expected HTTP status code '201', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'has Location header'
# at t/53-put_rel-hal.t line 28.
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-hal.t line 33.
# Failed test at t/53-put_rel-hal.t line 36.
# status doesn't match, expected HTTP status code '200', got 405
# 405 Method Not Allowed
# Allow: GET, HEAD, POST
# Content-Length: 18
# Content-Type: text/plain
#
# Method Not Allowed
# Failed test 'return data'
# at t/53-put_rel-hal.t line 38.
# got: ''
# expected: 'HASH'
# Failed test 'has trackid assigned'
# at t/53-put_rel-hal.t line 39.
# Failed test at t/53-put_rel-hal.t line 40.
# got: undef
# expected: 'Just One More (remix)'
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-hal.t line 46.
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: track [for Statement "SELECT me.trackid, me.cd, me.position, me.title, me.last_updated_on, me.last_updated_at, disc.cdid, disc.artist, disc.title, disc.year, disc.genreid, disc.single_track FROM track me JOIN cd disc ON disc.cdid = me.cd ORDER BY me.trackid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Set.pm line 28
# Failed test at t/53-put_rel-hal.t line 46.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Vary: Accept
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'has trackid assigned'
# at t/53-put_rel-hal.t line 47.
# Failed test at t/53-put_rel-hal.t line 48.
# got: undef
# expected: 'Just One More (remix)'
Use of uninitialized value in concatenation (.) or string at t/53-put_rel-hal.t line 53.
# Failed test at t/53-put_rel-hal.t line 53.
# status doesn't match, expected HTTP status code '204', got 405
# 405 Method Not Allowed
# Allow: GET, HEAD, POST
# Content-Length: 18
# Content-Type: text/plain
#
# Method Not Allowed
# Looks like you failed 11 tests of 13.
# Failed test '===== Update a resource and related resources via PUT ====='
# at t/53-put_rel-hal.t line 56.
# Looks like you failed 3 tests of 3.
t/53-put_rel-hal.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/Bh5EVtJ5OZ
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Update a resource and related resources via PUT =====
# --- Config:
# --- Name: POST to the set to create a Track to edit (on an existing CD)
# POST /track?prefetch=self
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: update the title (19 hardwired for now) and prefetch self and disc
# PUT /track/19?prefetch=self,disc
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: update the track id (primary key)
# PUT /track/19?prefetch=self
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
# --- Name: delete the track we just added
# DELETE /track/1900
# Vary: Accept
# Content-Length: 0
# Content-Type: application/hal+json
not ok 1 - 53-put_rel-hal.t output in t/53-put_rel-hal.got matches t/53-put_rel-hal.exp
# POST /track?prefetch=self
not ok 2
not ok 3 - has Location header
# PUT /track/?prefetch=self,disc
not ok 4
not ok 5 - return data
not ok 6 - has trackid assigned
not ok 7
ok 8 - has same position assigned
# recheck data as a separate request
# GET /track/?prefetch=self,disc
not ok 9
not ok 10 - has trackid assigned
not ok 11
ok 12 - has same position assigned
# DELETE /track/
not ok 13
1..13
not ok 3 - ===== Update a resource and related resources via PUT =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a508), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a8b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8ec68), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8ec68), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1a78), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311170)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1a78), Moose::Meta::Instance=HASH(0x937b3b8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9311170), HASH(0x93116a0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311910), HASH(0x93116a0)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311910), HASH(0x93116a0)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311910), HASH(0x93116a0)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93102d8)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x93102d8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x93102d8)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb648)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/60-invoke-core.t line 5
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Failed test 'Fixtures Installed'
# at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 156.
# {UNKNOWN}: DateTime version 1 required--this is only version 0.73 at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/Builder.pm line 11.
# Compilation failed in require at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# BEGIN failed--compilation aborted at /home/fly1400/var/megalib/DateTime/Format/SQLite.pm line 72.
# Compilation failed in require at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 150. at /home/fly1400/var/megalib/Class/C3/Componentised.pm line 155
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/60-invoke-core.t line 22.
# status doesn't match, expected HTTP status code '200', got 500
# 500 Internal Server Error
# Content-Length: 0
# Content-Type: application/json
#
# Failed test 'returns expected data'
# at t/60-invoke-core.t line 23.
# Structures begin differing at:
# $got = undef
# $expected = HASH(0xa9cbed8)
# undef
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/60-invoke-core.t line 31.
# status doesn't match, expected HTTP status code '400', got 500
# 500 Internal Server Error
# Content-Length: 0
# Content-Type: application/json
#
# Failed test at t/60-invoke-core.t line 32.
# ''
# doesn't match '(?^i:args must be an array)'
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/60-invoke-core.t line 39.
# status doesn't match, expected HTTP status code '400', got 500
# 500 Internal Server Error
# Content-Length: 0
# Content-Type: application/json
#
# Failed test at t/60-invoke-core.t line 40.
# ''
# doesn't match '(?^i:Unknown attributes: nonesuch)'
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Failed test at t/60-invoke-core.t line 45.
# status doesn't match, expected HTTP status code '400', got 500
# 500 Internal Server Error
# Content-Length: 0
# Content-Type: application/json
#
# Failed test at t/60-invoke-core.t line 46.
# ''
# doesn't match '(?^i:not a JSON hash)'
Exception: DBIx::Class::Storage::DBI::_prepare_sth(): DBI Exception: DBD::SQLite::db prepare_cached failed: no such table: artist [for Statement "SELECT me.artistid, me.name, me.rank, me.charfield FROM artist me WHERE ( me.artistid = ? ) ORDER BY me.artistid ASC LIMIT ?"] at /home/fly1400/var/cpan/build/WebAPI-DBIC-0.002003-rYkyRx/blib/lib/WebAPI/DBIC/Resource/Role/Item.pm line 27
# Looks like you failed 8 tests of 9.
# Failed test '===== Invoke ====='
# at t/60-invoke-core.t line 56.
# Looks like you failed 3 tests of 3.
t/60-invoke-core.t .......
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
importing fixtures
- deleting existing temp directory /tmp/MtGpiyhQmg
- creating temp dir
not ok 2 - Fixtures Installed
# Subtest: ===== Invoke =====
# POST /artist/1/invoke/get_column
not ok 1
not ok 2 - returns expected data
# POST /artist/1/invoke/get_column
not ok 3
not ok 4
# POST /artist/1/invoke/get_column
not ok 5
not ok 6
# POST /artist/1/invoke/get_column
not ok 7
not ok 8
# POST /artist/1/invoke/get_column
ok 9
1..9
not ok 3 - ===== Invoke =====
1..3
Dubious, test returned 3 (wstat 768, 0x300)
Failed 3/3 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a1c0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a570), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8e910), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8e910), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1700), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310db8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1700), Moose::Meta::Instance=HASH(0x937af50), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310db8), HASH(0x93112e8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x9311558), HASH(0x93112e8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x9311558), HASH(0x93112e8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x9311558), HASH(0x93112e8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930ff20)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930ff20)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x930ff20)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb428)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/90-root-core.t line 4
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Looks like you failed 1 test of 2.
t/90-root-core.t .........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
# Subtest: ===== basics - specs =====
# --- Config:
# --- Name: get root url as html
# GET /
# Location: browser/browser.html#/
# Vary: Accept
# Content-Length: 0
# Content-Type: text/html
# --- Config:
# --- Name: get root url as plain json
# GET /
# Vary: Accept
# Content-Length: 963
# Content-Type: application/json
ok 1 - 90-root-core.t output in t/90-root-core.got matches t/90-root-core.exp
1..1
ok 2 - ===== basics - specs =====
1..2
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 68.
Class::MOP::load_class("TestSchema") called at /home/fly1400/var/megalib/Test/DBIx/Class/Types.pm line 24
Test::DBIx::Class::Types::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 64
Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 99
Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x8f6a1c0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 144
Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x8f6a570), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219
MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x8f8e910), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184
MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x8f8e910), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1249
Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1700), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310e28)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 511
Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x8fa1700), Moose::Meta::Instance=HASH(0x937afa0), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x9310e28), HASH(0x9311358)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 525
Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x93115c8), HASH(0x9311358)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 495
Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x93115c8), HASH(0x9311358)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 273
Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x93115c8), HASH(0x9311358)) called at /home/fly1400/var/megalib/Moose/Object.pm line 23
Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930ff90)) called at constructor Test::DBIx::Class::SchemaManager::new (defined at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 241) line 4
Test::DBIx::Class::SchemaManager::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x930ff90)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153
Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x930ff90)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 646
eval {...} called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 645
Test::DBIx::Class::_initialize_schema("Test::DBIx::Class", HASH(0x8dbb428)) called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 353
Test::DBIx::Class::_initialize("Test::DBIx::Class") called at /home/fly1400/var/megalib/Test/DBIx/Class.pm line 36
Test::DBIx::Class::import("Test::DBIx::Class") called at (eval 34) line 2
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
eval 'package main; use Test::DBIx::Class
;' called at /home/fly1400/var/megalib/ToolSet.pm line 71
ToolSet::import("TestKit") called at t/90-root-hal.t line 4
main::BEGIN() called at (eval 34) line 2
eval {...} called at (eval 34) line 2
# Failed test 'Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
# '
# at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 180.
# Looks like you failed 1 test of 2.
t/90-root-hal.t ..........
not ok 1 - Error Deploying Schema: DBIx::Class::Storage::DBI::deployment_statements(): Can't deploy without a ddl_dir or SQL::Translator >= 0.11018 (see DBIx::Class::Optional::Dependencies for details) at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 179
#
# Subtest: ===== basics - specs =====
# --- Config:
# --- Name: get root url as html
# GET /
# Location: browser/browser.html#/
# Vary: Accept
# Content-Length: 0
# Content-Type: text/html
# --- Config:
# --- Name: get root url as hal+json
# GET /
# Vary: Accept
# Content-Length: 2126
# Content-Type: application/hal+json
ok 1 - 90-root-hal.t output in t/90-root-hal.got matches t/90-root-hal.exp
1..1
ok 2 - ===== basics - specs =====
1..2
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
t/release-pod-syntax.t ... skipped: these tests are for release candidate testing
Test Summary Report
-------------------
t/10-basics-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/10-basics-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/10-basics-jsonapi.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/11-paging-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/11-paging-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/12-searching-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/12-searching-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/13-fields-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/13-fields-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/14-distinct-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/14-distinct-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/30-ordering-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/30-ordering-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/40-prefetch-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/40-prefetch-jsonapi.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/50-modify-core.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/50-modify-hal.t (Wstat: 512 Tests: 2 Failed: 2)
Failed tests: 1-2
Non-zero exit status: 2
Parse errors: No plan found in TAP output
t/52-post_rel-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/53-put_rel-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/53-put_rel-hal.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/60-invoke-core.t (Wstat: 768 Tests: 3 Failed: 3)
Failed tests: 1-3
Non-zero exit status: 3
t/90-root-core.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/90-root-hal.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=25, Tests=142, 82 wallclock secs ( 0.25 usr 0.04 sys + 55.28 cusr 2.09 csys = 57.66 CPU)
Result: FAIL
Failed 23/25 test programs. 63/142 subtests failed.
make: *** [test_dynamic] Error 255
TIMB/WebAPI-DBIC-0.002003.tar.gz
make test TEST_VERBOSE=1 -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports TIMB/WebAPI-DBIC-0.002003.tar.gz
VmSize: 130896 kB
Finished 2014-12-06T16:07:17