PATH=/usr/bin:/bin:/home/fly1400/var/megalib/bin Start 2015-03-23T00:03:14 ActivePerl-1400 CPAN-2.00 Reading '/home/fly1400/var/cpan/Metadata' Database was generated on Mon, 23 Mar 2015 05:41:02 GMT Running make for T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/T/TI/TIMB/WebAPI-DBIC-0.004002.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.004002.tar.gz ok WebAPI-DBIC-0.004002 WebAPI-DBIC-0.004002/README WebAPI-DBIC-0.004002/Changes WebAPI-DBIC-0.004002/LICENSE WebAPI-DBIC-0.004002/cpanfile WebAPI-DBIC-0.004002/dist.ini WebAPI-DBIC-0.004002/META.yml WebAPI-DBIC-0.004002/MANIFEST WebAPI-DBIC-0.004002/NOTES.pod WebAPI-DBIC-0.004002/plackonce WebAPI-DBIC-0.004002/README.md WebAPI-DBIC-0.004002/META.json WebAPI-DBIC-0.004002/testonereq WebAPI-DBIC-0.004002/Makefile.PL WebAPI-DBIC-0.004002/CONTRIBUTING WebAPI-DBIC-0.004002/MANIFEST.SKIP WebAPI-DBIC-0.004002/t WebAPI-DBIC-0.004002/t/00-compile.t WebAPI-DBIC-0.004002/t/90-root-req.t WebAPI-DBIC-0.004002/t/etc WebAPI-DBIC-0.004002/t/etc/schema.pl WebAPI-DBIC-0.004002/t/lib WebAPI-DBIC-0.004002/t/lib/TestDS.pm WebAPI-DBIC-0.004002/t/lib/TestKit.pm WebAPI-DBIC-0.004002/t/10-basics-req.t WebAPI-DBIC-0.004002/t/11-paging-req.t WebAPI-DBIC-0.004002/t/13-fields-req.t WebAPI-DBIC-0.004002/t/50-modify-req.t WebAPI-DBIC-0.004002/t/60-invoke-req.t WebAPI-DBIC-0.004002/t/90-root-req.exp WebAPI-DBIC-0.004002/lib/WebAPI WebAPI-DBIC-0.004002/lib/WebAPI/DBIC.pm WebAPI-DBIC-0.004002/t/53-put_rel-req.t WebAPI-DBIC-0.004002/run-chinook-demo.sh WebAPI-DBIC-0.004002/t/10-basics-req.exp WebAPI-DBIC-0.004002/t/11-paging-req.exp WebAPI-DBIC-0.004002/t/14-distinct-req.t WebAPI-DBIC-0.004002/t/30-ordering-req.t WebAPI-DBIC-0.004002/t/60-invoke-req.exp WebAPI-DBIC-0.004002/t/lib/TestDS_HAL.pm WebAPI-DBIC-0.004002/t/lib/TestSchema.pm WebAPI-DBIC-0.004002/t/lib/TestWebApp.pm WebAPI-DBIC-0.004002/data_service_api.pod WebAPI-DBIC-0.004002/webapi-dbic-any.psgi WebAPI-DBIC-0.004002/t/12-searching-req.t WebAPI-DBIC-0.004002/t/53-put_rel-req.exp WebAPI-DBIC-0.004002/webapi-dbic-demo.psgi WebAPI-DBIC-0.004002/t/30-ordering-req.exp WebAPI-DBIC-0.004002/run-testschema-demo.sh WebAPI-DBIC-0.004002/t/12-searching-req.exp WebAPI-DBIC-0.004002/t/release-pod-syntax.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Util.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Route.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Router.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/WebApp.pm WebAPI-DBIC-0.004002/t/media-hal WebAPI-DBIC-0.004002/t/media-hal/90-root-req.t WebAPI-DBIC-0.004002/t/lib/DummyLoadedSchema.pm WebAPI-DBIC-0.004002/t/media-hal/10-basics-req.t WebAPI-DBIC-0.004002/t/media-hal/11-paging-req.t WebAPI-DBIC-0.004002/t/media-hal/13-fields-req.t WebAPI-DBIC-0.004002/t/media-hal/50-modify-req.t WebAPI-DBIC-0.004002/t/media-hal/90-root-req.exp WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/TypeNamer.pm WebAPI-DBIC-0.004002/t/media-hal/53-put_rel-req.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/RouteMaker.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD/2.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD/3.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD/4.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/CD/5.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/CD.pm WebAPI-DBIC-0.004002/t/media-hal/10-basics-req.exp WebAPI-DBIC-0.004002/t/media-hal/11-paging-req.exp WebAPI-DBIC-0.004002/t/media-hal/14-distinct-req.t WebAPI-DBIC-0.004002/t/media-hal/30-ordering-req.t WebAPI-DBIC-0.004002/t/media-hal/40-prefetch-req.t WebAPI-DBIC-0.004002/t/media-hal/52-post_rel-req.t WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Gig.pm WebAPI-DBIC-0.004002/t/media-hal/12-searching-req.t WebAPI-DBIC-0.004002/t/media-hal/53-put_rel-req.exp WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/city WebAPI-DBIC-0.004002/t/etc/fixtures/basic/city/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/city/2.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/City.pm WebAPI-DBIC-0.004002/t/media-hal/30-ordering-req.exp WebAPI-DBIC-0.004002/t/media-hal/40-prefetch-req.exp WebAPI-DBIC-0.004002/t/media-jsonapi WebAPI-DBIC-0.004002/t/media-jsonapi/10-basics-req.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Base.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic WebAPI-DBIC-0.004002/t/etc/fixtures/basic/_config_set WebAPI-DBIC-0.004002/t/etc/fixtures/basic/genre WebAPI-DBIC-0.004002/t/etc/fixtures/basic/genre/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/genre/2.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/genre/3.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/genre/4.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/4.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/5.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/6.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/7.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/8.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/9.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Genre.pm WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Track.pm WebAPI-DBIC-0.004002/t/media-hal/12-searching-req.exp WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/2.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/3.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/4.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/5.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/artist/6.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/10.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/11.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/12.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/13.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/14.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/15.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/16.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/17.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/track/18.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Artist.pm WebAPI-DBIC-0.004002/t/media-jsonapi/10-basics-req.exp WebAPI-DBIC-0.004002/t/media-jsonapi/40-prefetch-req.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Role WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Role/JsonParams.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/country WebAPI-DBIC-0.004002/t/etc/fixtures/basic/country/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/country/2.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Country.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Role/JsonEncoder.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/producer WebAPI-DBIC-0.004002/t/etc/fixtures/basic/producer/1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/producer/2.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/producer/3.fix WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/Producer.pm WebAPI-DBIC-0.004002/t/media-jsonapi/40-prefetch-req.exp WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Set.pm WebAPI-DBIC-0.004002/lib/WebAPI/HTTP/Throwable WebAPI-DBIC-0.004002/lib/WebAPI/HTTP/Throwable/Factory.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/_dumper_version WebAPI-DBIC-0.004002/t/media-active-model WebAPI-DBIC-0.004002/t/media-active-model/10-basics-req.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/DBIC.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Item.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Root.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericSet.pm WebAPI-DBIC-0.004002/t/media-active-model/10-basics-req.exp WebAPI-DBIC-0.004002/t/media-active-model/40-prefetch-req.t WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericCore.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericItem.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericRoot.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Router.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/Set.pm WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/ClassicAlbums.pm WebAPI-DBIC-0.004002/t/media-active-model/40-prefetch-req.exp WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/Item.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/Root.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Identity.pm WebAPI-DBIC-0.004002/t/lib/TestSchema/Result/CD_to_Producer.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/SetInvoke.pm WebAPI-DBIC-0.004002/lib/WebAPI/HTTP/Throwable/Role WebAPI-DBIC-0.004002/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/cd_to_producer WebAPI-DBIC-0.004002/t/etc/fixtures/basic/cd_to_producer/1-1.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/cd_to_producer/1-2.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/cd_to_producer/1-3.fix WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericSetInvoke.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Set.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Item.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/Relationship.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/Role/DBICException.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/SetWritable.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role/DBIC.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Item.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm WebAPI-DBIC-0.004002/t/etc/fixtures/basic/gig WebAPI-DBIC-0.004002/t/etc/fixtures/basic/gig/1-2014-01-01T01_01_01Z.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/gig/2-2014-06-30T19_00_00Z.fix WebAPI-DBIC-0.004002/t/etc/fixtures/basic/gig/3-2014-06-30T13_00_00Z.fix WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role/SetWritable.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/JSONAPI/Role/ItemWritable.pm WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role/SetWritable.pm /bin/tar: Read 7168 bytes from - WebAPI-DBIC-0.004002/lib/WebAPI/DBIC/Resource/ActiveModel/Role/ItemWritable.pm WebAPI-DBIC-0.004002/t/lib/Test/DBIx/Class/FixtureCommand WebAPI-DBIC-0.004002/t/lib/Test/DBIx/Class/FixtureCommand/TestFixtureCommand.pm CPAN.pm: Building T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL Unparsable version '>= 3.0110, != 3.0112' for prerequisite Cpanel::JSON::XS at Makefile.PL line 134. 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.004002.tar.gz ---- Test::DBIx::Class [build_requires] Running make test Delayed until after prerequisites Running test for module 'Test::DBIx::Class' Running make for J/JJ/JJNAPIORK/Test-DBIx-Class-0.43.tar.gz Checksum for /home/fly1400/var/cpan/sources/authors/id/J/JJ/JJNAPIORK/Test-DBIx-Class-0.43.tar.gz ok Test-DBIx-Class-0.43/ Test-DBIx-Class-0.43/Changes Test-DBIx-Class-0.43/inc/ Test-DBIx-Class-0.43/lib/ Test-DBIx-Class-0.43/maint/ Test-DBIx-Class-0.43/Makefile.PL Test-DBIx-Class-0.43/MANIFEST Test-DBIx-Class-0.43/META.yml Test-DBIx-Class-0.43/README.mkdn Test-DBIx-Class-0.43/t/ Test-DBIx-Class-0.43/t/00-basic.t Test-DBIx-Class-0.43/t/01-normalize-options.t Test-DBIx-Class-0.43/t/02-initialize-schema.t Test-DBIx-Class-0.43/t/03-merge-configs.t Test-DBIx-Class-0.43/t/04-load-fixtures.t Test-DBIx-Class-0.43/t/05-example-schema.t Test-DBIx-Class-0.43/t/06-basic-test-schema.t Test-DBIx-Class-0.43/t/07-alternative-config.t Test-DBIx-Class-0.43/t/08-test-mysqld.t Test-DBIx-Class-0.43/t/09-test-postgresql.t Test-DBIx-Class-0.43/t/10-replication-mysql.t Test-DBIx-Class-0.43/t/11-fixtures_ok_populate.t Test-DBIx-Class-0.43/t/11-set-from-env.t Test-DBIx-Class-0.43/t/12-fixtures_ok_populatemore.t Test-DBIx-Class-0.43/t/13-test-sqlite.t Test-DBIx-Class-0.43/t/14-hide-diag.t Test-DBIx-Class-0.43/t/14-test-connection-opts.t Test-DBIx-Class-0.43/t/15-hide-diag-mysqld.t Test-DBIx-Class-0.43/t/16-hide-diag-postgres.t Test-DBIx-Class-0.43/t/17-importing-sources-gives-new-resultset.t Test-DBIx-Class-0.43/t/etc/ Test-DBIx-Class-0.43/t/lib/ Test-DBIx-Class-0.43/t/stress_replication/ Test-DBIx-Class-0.43/t/stress_replication/10-replication-mysql.t Test-DBIx-Class-0.43/t/stress_replication/11-replication-mysql.t Test-DBIx-Class-0.43/t/stress_replication/12-replication-mysql.t Test-DBIx-Class-0.43/t/stress_replication/13-replication-mysql.t Test-DBIx-Class-0.43/t/stress_replication/14-replication-mysql.t Test-DBIx-Class-0.43/t/stress_replication/15-replication-mysql.t Test-DBIx-Class-0.43/t/lib/TDBICOptions.pm Test-DBIx-Class-0.43/t/etc/example/ Test-DBIx-Class-0.43/t/etc/example2/ Test-DBIx-Class-0.43/t/etc/fixtures/ Test-DBIx-Class-0.43/t/etc/schema.pl Test-DBIx-Class-0.43/t/etc/fixtures/core.pl Test-DBIx-Class-0.43/t/etc/example2/fixtures/ Test-DBIx-Class-0.43/t/etc/example2/fixtures/more.pl Test-DBIx-Class-0.43/t/etc/example/fixtures/ Test-DBIx-Class-0.43/t/etc/example/schema.pl Test-DBIx-Class-0.43/t/etc/example/schema1-prod.pl Test-DBIx-Class-0.43/t/etc/example/schema1.pl Test-DBIx-Class-0.43/t/etc/example/schema2.pl Test-DBIx-Class-0.43/t/etc/example/schema3.pl Test-DBIx-Class-0.43/t/etc/example/fixtures/core.pl Test-DBIx-Class-0.43/t/etc/example/fixtures/more.pl Test-DBIx-Class-0.43/maint/Maker.pm Test-DBIx-Class-0.43/lib/Test/ Test-DBIx-Class-0.43/lib/Test/DBIx/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/FixtureCommand/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Role/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Types.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager/Trait/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager/Trait/SQLite.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Role/FixtureCommand.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/FixtureCommand/Populate.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/FixtureCommand/PopulateMore.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/DefaultRS.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/ResultSet.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/CD/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/CD.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Company/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Company.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Job.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Person/ Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Person.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Phone.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Person/Artist.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Person/Employee.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/Company/Employee.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/CD/Artist.pm Test-DBIx-Class-0.43/lib/Test/DBIx/Class/Example/Schema/Result/CD/Track.pm Test-DBIx-Class-0.43/inc/Module/ Test-DBIx-Class-0.43/inc/Pod/ Test-DBIx-Class-0.43/inc/Pod/Markdown.pm Test-DBIx-Class-0.43/inc/Module/AutoInstall.pm Test-DBIx-Class-0.43/inc/Module/Install/ Test-DBIx-Class-0.43/inc/Module/Install.pm Test-DBIx-Class-0.43/inc/Module/Install/AutoInstall.pm Test-DBIx-Class-0.43/inc/Module/Install/AutoManifest.pm Test-DBIx-Class-0.43/inc/Module/Install/Base.pm Test-DBIx-Class-0.43/inc/Module/Install/Can.pm Test-DBIx-Class-0.43/inc/Module/Install/Fetch.pm Test-DBIx-Class-0.43/inc/Module/Install/Homepage.pm Test-DBIx-Class-0.43/inc/Module/Install/Include.pm Test-DBIx-Class-0.43/inc/Module/Install/Makefile.pm Test-DBIx-Class-0.43/inc/Module/Install/ManifestSkip.pm Test-DBIx-Class-0.43/inc/Module/Install/Metadata.pm Test-DBIx-Class-0.43/inc/Module/Install/ReadmeMarkdownFromPod.pm Test-DBIx-Class-0.43/inc/Module/Install/Repository.pm Test-DBIx-Class-0.43/inc/Module/Install/Win32.pm Test-DBIx-Class-0.43/inc/Module/Install/WriteAll.pm /bin/tar: Read 1024 bytes from - CPAN.pm: Building J/JJ/JJNAPIORK/Test-DBIx-Class-0.43.tar.gz >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL *** Module::AutoInstall version 1.12 *** 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.94) - Config::Any ...loaded. (0.24 >= 0.19) - DBIx::Class ...loaded. (0.082820 >= 0.08123) - DBIx::Class::Schema::PopulateMore ...loaded. (0.17 >= 0.16) - DBIx::Class::TimeStamp ...loaded. (0.14 >= 0.13) - DBIx::Class::UUIDColumns ...loaded. (0.02006 >= 0.02005) - Data::UUID ...loaded. (1.220 >= 1.215) - Data::Visitor ...loaded. (0.30 >= 0.27) - Digest::MD5 ...loaded. (2.54 >= 2.39) - Hash::Merge ...loaded. (0.200 >= 0.11) - List::MoreUtils ...loaded. (0.408 >= 0.22) - Module::Runtime ...loaded. (0.014 >= 0.013) - Moose ...loaded. (2.1403 >= 1.10) - MooseX::Attribute::ENV ...loaded. (0.02 >= 0.01) - MooseX::Types ...loaded. (0.45 >= 0.23) - Path::Class ...loaded. (0.35 >= 0.21) - SQL::Translator ...loaded. (0.11021 >= 0.11006) - Scalar::Util ...loaded. (1.41 >= 1.23) - Sub::Exporter ...loaded. (0.987 >= 0.982) - Test::Builder ...loaded. (1.001009 >= 0.96) - Test::Deep ...loaded. (0.115 >= 0.106) - File::Temp ...loaded. (0.2304) - File::Path ...loaded. (2.09) [MySql Support] - Test::mysqld ...loaded. (0.17 >= 0.14) [Postgresql Support] - Test::PostgreSQL ...loaded. (1.05 >= 0.09) - DateTime::Format::Pg ...loaded. (0.16008) *** Module::AutoInstall configuration finished. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Test::DBIx::Class Writing MYMETA.yml and MYMETA.json >>> make cp lib/Test/DBIx/Class.pm blib/lib/Test/DBIx/Class.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Person/Employee.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Person/Employee.pm cp lib/Test/DBIx/Class/Example/Schema/Result.pm blib/lib/Test/DBIx/Class/Example/Schema/Result.pm cp lib/Test/DBIx/Class/Role/FixtureCommand.pm blib/lib/Test/DBIx/Class/Role/FixtureCommand.pm cp lib/Test/DBIx/Class/Example/Schema/ResultSet.pm blib/lib/Test/DBIx/Class/Example/Schema/ResultSet.pm cp lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm cp lib/Test/DBIx/Class/SchemaManager.pm blib/lib/Test/DBIx/Class/SchemaManager.pm cp lib/Test/DBIx/Class/Example/Schema.pm blib/lib/Test/DBIx/Class/Example/Schema.pm cp lib/Test/DBIx/Class/FixtureCommand/PopulateMore.pm blib/lib/Test/DBIx/Class/FixtureCommand/PopulateMore.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Person/Artist.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Person/Artist.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Person.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Person.pm cp lib/Test/DBIx/Class/Example/Schema/Result/CD/Track.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/CD/Track.pm cp lib/Test/DBIx/Class/Example/Schema/DefaultRS.pm blib/lib/Test/DBIx/Class/Example/Schema/DefaultRS.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Company.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Company.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Job.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Job.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Phone.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Phone.pm cp lib/Test/DBIx/Class/SchemaManager/Trait/SQLite.pm blib/lib/Test/DBIx/Class/SchemaManager/Trait/SQLite.pm cp lib/Test/DBIx/Class/Types.pm blib/lib/Test/DBIx/Class/Types.pm cp lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm cp lib/Test/DBIx/Class/FixtureCommand/Populate.pm blib/lib/Test/DBIx/Class/FixtureCommand/Populate.pm cp lib/Test/DBIx/Class/Example/Schema/Result/CD/Artist.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/CD/Artist.pm cp lib/Test/DBIx/Class/Example/Schema/Result/CD.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/CD.pm cp lib/Test/DBIx/Class/Example/Schema/Result/Company/Employee.pm blib/lib/Test/DBIx/Class/Example/Schema/Result/Company/Employee.pm Manifying 23 pod documents JJNAPIORK/Test-DBIx-Class-0.43.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/stress_replication/*.t t/00-basic.t .................................. ok 1 - require Test::DBIx::Class; ok 2 - use Test::DBIx::Class::Types; ok 3 - use Test::DBIx::Class::SchemaManager; ok 4 - use Test::DBIx::Class::Example::Schema; ok 5 - use Test::DBIx::Class::Example::Schema::Result; ok 6 - use Test::DBIx::Class::Example::Schema::ResultSet; ok 7 - use Test::DBIx::Class::Example::Schema::DefaultRS; ok 8 - use Test::DBIx::Class::FixtureCommand::Populate; ok 9 - use Test::DBIx::Class::FixtureCommand::PopulateMore; ok 10 - use Test::DBIx::Class::SchemaManager::Trait::SQLite; 1..10 ok t/01-normalize-options.t ...................... ok 1 - require Test::DBIx::Class; ok 2 - Hashref plus array of sources good ok 3 - Hashref with extra resultsource plus array of sources good ok 4 - Dash style options plus array of sources good 1..4 ok {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 # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 4. t/02-initialize-schema.t ...................... ok 1 - require Test::DBIx::Class; ok 2 - Created Sample inline configuration ok 3 - Connected and deployed a testable schema ok 4 - Got expected sources Dubious, test returned 255 (wstat 65280, 0xff00) All 4 subtests passed t/03-merge-configs.t .......................... ok 1 - require Test::DBIx::Class; ok 2 - Properly normalized a path ok 3 - Got correct valid configuration files ok 4 - Got correct load from configuration ok 5 - Got correct _prepare_config ok 6 - Got correct valid configuration files ok 7 - Got correct _prepare_config 1..7 ok t/04-load-fixtures.t .......................... ok 1 - prepare the options ok 2 - require Test::DBIx::Class; ok 3 - got prepared fixtures ok 4 - as expected 1..4 ok {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 # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 255 just after 8. t/05-example-schema.t ......................... ok 1 - require Test::DBIx::Class::Example::Schema; ok 2 - Created connect info ok 3 - Connected to sqlite in memory database ok 4 - Got no deploy error ok 5 - Found Job ok 6 - Successful populate on Job ok 7 - Got Expected Data ok 8 - Found Company Dubious, test returned 255 (wstat 65280, 0xff00) All 8 subtests passed # Failed test 'Installed fixtures' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 145. # {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 # Failed test 'ResultSet($source, \%search) works' # at t/06-basic-test-schema.t line 42. # got: '0' # expected: '2' # Failed test 'ResultSet($source, [\%search]) works' # at t/06-basic-test-schema.t line 44. # got: '0' # expected: '2' # Failed test 'ResultSet($source, \%search, \%cond) works' # at t/06-basic-test-schema.t line 53. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = HASH(0x394f228) # Failed test 'ResultSet($source, [\%search, \%cond]) works' # at t/06-basic-test-schema.t line 63. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = HASH(0x394c9d0) # Failed test 'Got Expected results' # at t/06-basic-test-schema.t line 67. # Structures begin differing at: # $got->{Vincent} = Does not exist # $expected->{Vincent} = '15' # Failed test 'Installed fixtures' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 156. # {UNKNOWN}: Attempt to reload DateTime/Format/SQLite.pm aborted. # 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 # Failed test 'Got Expected results' # at t/06-basic-test-schema.t line 86. # Structures begin differing at: # $got->{Vincent} = Does not exist # $expected->{Vincent} = '15' # Failed test 'Fixtures Installed' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 170. # {UNKNOWN}: Attempt to reload DateTime/Format/SQLite.pm aborted. # 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 # Failed test 'Got Expected results' # at t/06-basic-test-schema.t line 101. # Structures begin differing at: # $got->{Vincent} = Does not exist # $expected->{Vincent} = '15' # Failed test 'Found John' # at t/06-basic-test-schema.t line 105. # Failed test 'Found Vanessa' # at t/06-basic-test-schema.t line 108. Can't call method "get_columns" on an undefined value at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 98. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 13 just after 24. t/06-basic-test-schema.t ...................... ok 1 - 'Got Correct Schema' isa 'Test::DBIx::Class::Example::Schema' ok 2 - 'Got the right Job set' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 3 - 'Got the right Person set' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 4 - 'Got the right NotTeenager set' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 5 - 'Got the right Employee set' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 6 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' ok 7 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 8 - 'custom message' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' not ok 9 - Installed fixtures not ok 10 - ResultSet($source, \%search) works not ok 11 - ResultSet($source, [\%search]) works not ok 12 - ResultSet($source, \%search, \%cond) works not ok 13 - ResultSet($source, [\%search, \%cond]) works not ok 14 - Got Expected results ok 15 - Schema reset complete ok 16 - Got Expected results not ok 17 - Installed fixtures not ok 18 - Got Expected results ok 19 - Schema reset complete ok 20 - Got Expected results not ok 21 - Fixtures Installed not ok 22 - Got Expected results not ok 23 - Found John not ok 24 - Found Vanessa Dubious, test returned 13 (wstat 3328, 0xd00) Failed 12/24 subtests # Failed test 'Fixtures Installed' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 170. # {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 # Failed test 'Got Expected Email Addresses: Comparing hash keys of $data # Extra: '16cfdc34f7e752bfa40365d38220b785', 'fa53b7e040badeb4a1c2b2938dddcb8e' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Found People: Comparing hash keys of $data # Extra: 'afc404996cfd6499645fc78c7d5968f7', 'b0624e7f5701df1ae629ea921bbbdb94', 'b8f14a440f4c0b41117f8479edc6729e' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'No longer a teenager: Comparing hash keys of $data # Extra: 'afc404996cfd6499645fc78c7d5968f7', 'b8f14a440f4c0b41117f8479edc6729e' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Looks like you failed 4 tests of 7. t/07-alternative-config.t ..................... ok 1 - Got Lastname of Li ok 2 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' ok 3 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' not ok 4 - Fixtures Installed not ok 5 - Got Expected Email Addresses: Comparing hash keys of $data # Extra: '16cfdc34f7e752bfa40365d38220b785', 'fa53b7e040badeb4a1c2b2938dddcb8e' # not ok 6 - Found People: Comparing hash keys of $data # Extra: 'afc404996cfd6499645fc78c7d5968f7', 'b0624e7f5701df1ae629ea921bbbdb94', 'b8f14a440f4c0b41117f8479edc6729e' # not ok 7 - No longer a teenager: Comparing hash keys of $data # Extra: 'afc404996cfd6499645fc78c7d5968f7', 'b8f14a440f4c0b41117f8479edc6729e' # 1..7 Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/7 subtests (in cleanup) could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. # Can't initialize a schema with the given configuration # Returned Error: could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. # configuration: { # 'fixture_sets' => { # 'basic' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessaLi@school.com' # ] # ] # } # ], # 'core' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessa@school.com' # ] # ] # }, # { # 'Company' => [ # [ # 'name' # ], # [ # 'Acme' # ] # ] # } # ] # }, # 'schema_class' => 'Test::DBIx::Class::Example::Schema', # 'traits' => [ # 'Testmysqld' # ] # } t/08-test-mysqld.t ............................ skipped: Skipping remaining tests since we don't have a schema (in cleanup) could not find initdb, please set appropriate PATH or POSTGRES_HOME at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm line 45. # Can't initialize a schema with the given configuration # Returned Error: could not find initdb, please set appropriate PATH or POSTGRES_HOME at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm line 45. # configuration: { # 'fixture_sets' => { # 'basic' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessaLi@school.com' # ] # ] # } # ], # 'core' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessa@school.com' # ] # ] # }, # { # 'Company' => [ # [ # 'name' # ], # [ # 'Acme' # ] # ] # } # ] # }, # 'schema_class' => 'Test::DBIx::Class::Example::Schema', # 'traits' => 'Testpostgresql' # } t/09-test-postgresql.t ........................ skipped: Skipping remaining tests since we don't have a schema (in cleanup) could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. # Can't initialize a schema with the given configuration # Returned Error: could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. # configuration: { # 'fixture_sets' => { # 'basic' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessaLi@school.com' # ] # ] # } # ], # 'core' => [ # { # 'Person' => [ # [ # 'name', # 'age', # 'email' # ], # [ # 'John', # '40', # 'john@nowehere.com' # ], # [ # 'Vincent', # '15', # 'vincent@home.com' # ], # [ # 'Vanessa', # '35', # 'vanessa@school.com' # ] # ] # }, # { # 'Company' => [ # [ # 'name' # ], # [ # 'Acme' # ] # ] # } # ] # }, # 'replicants' => 2, # 'schema_class' => 'Test::DBIx::Class::Example::Schema', # 'traits' => 'Testmysqld' # } t/10-replication-mysql.t ...................... skipped: Skipping remaining tests since we don't have a schema # Failed test 'Install some fixtures as an array ref' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/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 # Failed test 'Companies loaded ok: Comparing hash keys of $data # Extra: 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Persons ALSO loaded ok. The key here being that both Companies and Persons were loaded: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'f32d9bd42410c8dbb2fc4f3796b06ada' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Install more fixtures to the same table. This time as a hashref to test a different code path' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 156. # {UNKNOWN}: Attempt to reload DateTime/Format/SQLite.pm aborted. # 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 # Failed test 'Second Company fixture loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '6cd60d1b5b267e3dd05203f000628f87', 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Second Person fixture ALSO loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'd4d91d74fe97e3785abeea7255375a23', 'f32d9bd42410c8dbb2fc4f3796b06ada' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Looks like you failed 6 tests of 8. t/11-fixtures_ok_populate.t ................... 1..8 not ok 1 - Install some fixtures as an array ref ok 2 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' ok 3 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' not ok 4 - Companies loaded ok: Comparing hash keys of $data # Extra: 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # not ok 5 - Persons ALSO loaded ok. The key here being that both Companies and Persons were loaded: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'f32d9bd42410c8dbb2fc4f3796b06ada' # not ok 6 - Install more fixtures to the same table. This time as a hashref to test a different code path not ok 7 - Second Company fixture loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '6cd60d1b5b267e3dd05203f000628f87', 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # not ok 8 - Second Person fixture ALSO loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'd4d91d74fe97e3785abeea7255375a23', 'f32d9bd42410c8dbb2fc4f3796b06ada' # Dubious, test returned 6 (wstat 1536, 0x600) Failed 6/8 subtests t/11-set-from-env.t ........................... ok 1 - Path /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/t/test.db is accessible, forcing 'force_drop_table' ok 2 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 3 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'Test::DBIx::Class::Example::Schema::DefaultRS' ok 4 - Schema cleanup complete ok 5 - Can find file 'test.db' file ok 6 - Test file 'test.db' is now gone! 1..6 ok # Failed test 'Can't install fixtures: {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 # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/FixtureCommand/PopulateMore.pm line 54. # Failed test 'Companies loaded ok: Comparing hash keys of $data # Extra: 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Persons ALSO loaded ok. The key here being that both Companies and Persons were loaded: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'f32d9bd42410c8dbb2fc4f3796b06ada' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Can't install fixtures: {UNKNOWN}: Attempt to reload DateTime/Format/SQLite.pm aborted. # 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 # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/FixtureCommand/PopulateMore.pm line 54. # Failed test 'Second Company fixture loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '6cd60d1b5b267e3dd05203f000628f87', 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Failed test 'Second Person fixture ALSO loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'd4d91d74fe97e3785abeea7255375a23', 'f32d9bd42410c8dbb2fc4f3796b06ada' # ' # at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class.pm line 30. # Looks like you planned 8 tests but ran 10. # Looks like you failed 6 tests of 10 run. t/12-fixtures_ok_populatemore.t ............... 1..8 not ok 1 - Can't install fixtures: {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 # ok 2 - Install some fixtures ok 3 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' ok 4 - An object of class 'Test::DBIx::Class::Example::Schema::DefaultRS' isa 'DBIx::Class::ResultSet' not ok 5 - Companies loaded ok: Comparing hash keys of $data # Extra: 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # not ok 6 - Persons ALSO loaded ok. The key here being that both Companies and Persons were loaded: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'f32d9bd42410c8dbb2fc4f3796b06ada' # not ok 7 - Can't install fixtures: {UNKNOWN}: Attempt to reload DateTime/Format/SQLite.pm aborted. # 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 # ok 8 - Install more fixtures to the same table. This time as a hashref to test a different code path not ok 9 - Second Company fixture loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '6cd60d1b5b267e3dd05203f000628f87', 'a70952c70238e86906f6f27b4ebd77da', 'e14263ad26bb64e417768395e1ae184a' # not ok 10 - Second Person fixture ALSO loaded appended data, not replacing it: Comparing hash keys of $data # Extra: '623a2edb0b37d3bfd7a745e0a28a0119', 'd4d91d74fe97e3785abeea7255375a23', 'f32d9bd42410c8dbb2fc4f3796b06ada' # Dubious, test returned 6 (wstat 1536, 0x600) Failed 4/8 subtests t/13-test-sqlite.t ............................ ok 1 - Initialized schema without specifying dsn. ok 2 - Defaulted to SQLite, memory. ok 3 - SQLite DB does not yest exist ok 4 - Initialize schema with keep_db => 1 ok 5 - SQLite DB was created ok 6 - Initialize schema with deploy_db => 0 ok 7 - SQLite DB was kept, respecting to keep_db ok 8 - SQLite DB does not yest exist ok 9 - Initialize schema with keep_db => 0 ok 10 - SQLite DB was created ok 11 - SQLite DB was deleted when schema manager was destroyed 1..11 ok Can't call method "name" on an undefined value at t/14-hide-diag.t line 43. t/14-hide-diag.t .............................. ok 1 - require Test::DBIx::Class; ok 2 - Created Sample inline configuration ok 3 - Connected and deployed a testable schema not ok 4 - Can't install fixtures: {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 # not ok 5 - Installed Fixtures with PopulateMore Dubious, test returned 255 (wstat 65280, 0xff00) Failed 2/5 subtests t/14-test-connection-opts.t ................... ok 1 - require Test::DBIx::Class; # default connect_info + connect_opts ok 2 - Created Sample inline configuration ok 3 - Connected and deployed a testable schema ok 4 - connect info name_sep ok ok 5 - connect info quote_char ok # set connect_info + connect_opts ok 6 - Created Sample inline configuration ok 7 - Connected and deployed a testable schema ok 8 - connect info name_sep ok ok 9 - connect info quote_char ok 1..9 ok could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. (in cleanup) could not find mysql_install_db, please set appropriate PATH at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testmysqld.pm line 39. t/15-hide-diag-mysqld.t ....................... ok 1 - require Test::DBIx::Class; ok 2 - Created Sample inline configuration # tdbic_debug=1 Dubious, test returned 2 (wstat 512, 0x200) All 2 subtests passed could not find initdb, please set appropriate PATH or POSTGRES_HOME at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm line 45. (in cleanup) could not find initdb, please set appropriate PATH or POSTGRES_HOME at /data/fly1400/cpan/build/Test-DBIx-Class-0.43-nvUosw/blib/lib/Test/DBIx/Class/SchemaManager/Trait/Testpostgresql.pm line 45. t/16-hide-diag-postgres.t ..................... ok 1 - require Test::DBIx::Class; ok 2 - Created Sample inline configuration # tdbic_debug=1 Dubious, test returned 2 (wstat 512, 0x200) All 2 subtests passed t/17-importing-sources-gives-new-resultset.t .. ok 1 - Got two different resultsets 1..1 ok t/stress_replication/10-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set t/stress_replication/11-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set t/stress_replication/12-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set t/stress_replication/13-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set t/stress_replication/14-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set t/stress_replication/15-replication-mysql.t ... skipped: STRESS_MYSQL_REPLICATION not set Test Summary Report ------------------- t/02-initialize-schema.t (Wstat: 65280 Tests: 4 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/05-example-schema.t (Wstat: 65280 Tests: 8 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output t/06-basic-test-schema.t (Wstat: 3328 Tests: 24 Failed: 12) Failed tests: 9-14, 17-18, 21-24 Non-zero exit status: 13 Parse errors: No plan found in TAP output t/07-alternative-config.t (Wstat: 1024 Tests: 7 Failed: 4) Failed tests: 4-7 Non-zero exit status: 4 t/11-fixtures_ok_populate.t (Wstat: 1536 Tests: 8 Failed: 6) Failed tests: 1, 4-8 Non-zero exit status: 6 t/12-fixtures_ok_populatemore.t (Wstat: 1536 Tests: 10 Failed: 6) Failed tests: 1, 5-7, 9-10 Non-zero exit status: 6 Parse errors: Bad plan. You planned 8 tests but ran 10. t/14-hide-diag.t (Wstat: 65280 Tests: 5 Failed: 2) Failed tests: 4-5 Non-zero exit status: 255 Parse errors: No plan found in TAP output t/15-hide-diag-mysqld.t (Wstat: 512 Tests: 2 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output t/16-hide-diag-postgres.t (Wstat: 512 Tests: 2 Failed: 0) Non-zero exit status: 2 Parse errors: No plan found in TAP output Files=26, Tests=122, 30 wallclock secs ( 0.13 usr 0.08 sys + 24.84 cusr 1.88 csys = 26.93 CPU) Result: FAIL Failed 9/26 test programs. 30/122 subtests failed. make: *** [test_dynamic] Error 255 JJNAPIORK/Test-DBIx-Class-0.43.tar.gz make test TEST_VERBOSE=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports JJNAPIORK/Test-DBIx-Class-0.43.tar.gz Running make for T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz Has already been unwrapped into directory /home/fly1400/var/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa CPAN.pm: Building T/TI/TIMB/WebAPI-DBIC-0.004002.tar.gz Warning: Prerequisite 'Test::DBIx::Class => 0.43' for 'TIMB/WebAPI-DBIC-0.004002.tar.gz' failed when processing 'JJNAPIORK/Test-DBIx-Class-0.43.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/JSONAPI.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI.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/RouteMaker.pm blib/lib/WebAPI/DBIC/RouteMaker.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 lib/WebAPI/DBIC/Resource/HAL/Role/SetWritable.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/SetWritable.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/HAL/Role/Item.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/Item.pm cp lib/WebAPI/DBIC/Resource/GenericItem.pm blib/lib/WebAPI/DBIC/Resource/GenericItem.pm cp lib/WebAPI/DBIC/Resource/Role/SetWritable.pm blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm cp lib/WebAPI/DBIC/Resource/ActiveModel/Role/ItemWritable.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/ItemWritable.pm cp lib/WebAPI/DBIC/Resource/Role/Identity.pm blib/lib/WebAPI/DBIC/Resource/Role/Identity.pm cp lib/WebAPI/DBIC/Resource/Role/DBICException.pm blib/lib/WebAPI/DBIC/Resource/Role/DBICException.pm cp lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm cp lib/WebAPI/DBIC/WebApp.pm blib/lib/WebAPI/DBIC/WebApp.pm cp lib/WebAPI/DBIC/Resource/JSONAPI/Role/Item.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Item.pm cp lib/WebAPI/DBIC/Resource/ActiveModel/Role/DBIC.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/DBIC.pm cp lib/WebAPI/DBIC/Resource/ActiveModel/Role/SetWritable.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/SetWritable.pm cp lib/WebAPI/DBIC/Resource/GenericRoot.pm blib/lib/WebAPI/DBIC/Resource/GenericRoot.pm cp lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm blib/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm cp lib/WebAPI/DBIC/Resource/Role/SetInvoke.pm blib/lib/WebAPI/DBIC/Resource/Role/SetInvoke.pm cp lib/WebAPI/DBIC/Resource/HAL.pm blib/lib/WebAPI/DBIC/Resource/HAL.pm cp lib/WebAPI/DBIC/Route.pm blib/lib/WebAPI/DBIC/Route.pm cp lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm cp lib/WebAPI/DBIC/Resource/Role/Set.pm blib/lib/WebAPI/DBIC/Resource/Role/Set.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/ItemInvoke.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.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/ItemWritable.pm blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm cp lib/WebAPI/DBIC/Resource/Base.pm blib/lib/WebAPI/DBIC/Resource/Base.pm cp lib/WebAPI/DBIC/TypeNamer.pm blib/lib/WebAPI/DBIC/TypeNamer.pm cp lib/WebAPI/DBIC/Resource/JSONAPI/Role/ItemWritable.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/ItemWritable.pm cp lib/WebAPI/DBIC/Util.pm blib/lib/WebAPI/DBIC/Util.pm cp lib/WebAPI/DBIC/Resource/HAL/Role/Set.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/Set.pm cp lib/WebAPI/DBIC/Resource/JSONAPI/Role/Set.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Set.pm cp lib/WebAPI/DBIC/Resource/JSONAPI/Role/SetWritable.pm blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/SetWritable.pm cp lib/WebAPI/DBIC/Resource/GenericSetInvoke.pm blib/lib/WebAPI/DBIC/Resource/GenericSetInvoke.pm cp lib/WebAPI/DBIC/Resource/ActiveModel/Role/Item.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Item.pm cp lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm cp lib/WebAPI/DBIC/Resource/ActiveModel.pm blib/lib/WebAPI/DBIC/Resource/ActiveModel.pm cp lib/WebAPI/DBIC/Resource/HAL/Role/Root.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/Root.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 cp lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm blib/lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm Manifying 53 pod documents TIMB/WebAPI-DBIC-0.004002.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 t/media-active-model/*.t t/media-hal/*.t t/media-jsonapi/*.t webapi-dbic-any.psgi syntax OK Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x19d00f0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x19d0258), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1a0ffe0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1a0ffe0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1a29f08), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x206c628)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1a29f08), Moose::Meta::Instance=HASH(0x2133318), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x206c628), HASH(0x211d238)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x211d5e0), HASH(0x211d238)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x211d5e0), HASH(0x211d238)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x211d5e0), HASH(0x211d238)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x20698a0)) 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(0x20698a0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x20698a0)) 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(0x163f1f8)) 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/Route.pm compiles ok 4 - lib/WebAPI/DBIC/Router.pm compiles ok 5 - lib/WebAPI/DBIC/WebApp.pm compiles ok 6 - lib/WebAPI/DBIC/TypeNamer.pm compiles ok 7 - lib/WebAPI/DBIC/RouteMaker.pm compiles ok 8 - blib/lib/WebAPI/DBIC.pm compiles ok 9 - lib/WebAPI/DBIC/Resource/HAL.pm compiles ok 10 - lib/WebAPI/DBIC/Resource/Base.pm compiles ok 11 - lib/WebAPI/DBIC/Resource/JSONAPI.pm compiles ok 12 - lib/WebAPI/DBIC/Resource/GenericSet.pm compiles ok 13 - lib/WebAPI/DBIC/Resource/ActiveModel.pm compiles ok 14 - lib/WebAPI/DBIC/Resource/GenericCore.pm compiles ok 15 - lib/WebAPI/DBIC/Resource/GenericItem.pm compiles ok 16 - lib/WebAPI/DBIC/Resource/GenericRoot.pm compiles ok 17 - lib/WebAPI/DBIC/Resource/GenericSetInvoke.pm compiles ok 18 - lib/WebAPI/DBIC/Resource/GenericItemInvoke.pm compiles ok 19 - lib/WebAPI/DBIC/Role/JsonParams.pm compiles ok 20 - lib/WebAPI/DBIC/Role/JsonEncoder.pm compiles ok 21 - lib/WebAPI/HTTP/Throwable/Factory.pm compiles ok 22 - blib/lib/WebAPI/DBIC/RouteMaker.pm compiles ok 23 - blib/lib/WebAPI/DBIC/WebApp.pm compiles ok 24 - blib/lib/WebAPI/DBIC/Route.pm compiles ok 25 - blib/lib/WebAPI/DBIC/TypeNamer.pm compiles ok 26 - blib/lib/WebAPI/DBIC/Util.pm compiles ok 27 - blib/lib/WebAPI/DBIC/Router.pm compiles ok 28 - lib/WebAPI/DBIC/Resource/Role/Set.pm compiles ok 29 - lib/WebAPI/DBIC/Resource/Role/DBIC.pm compiles ok 30 - lib/WebAPI/DBIC/Resource/Role/Item.pm compiles ok 31 - lib/WebAPI/DBIC/Resource/Role/Root.pm compiles ok 32 - lib/WebAPI/DBIC/Resource/Role/Router.pm compiles ok 33 - lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm compiles ok 34 - lib/WebAPI/DBIC/Resource/Role/Identity.pm compiles ok 35 - lib/WebAPI/DBIC/Resource/Role/SetInvoke.pm compiles ok 36 - lib/WebAPI/DBIC/Resource/Role/DBICParams.pm compiles ok 37 - lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm compiles ok 38 - lib/WebAPI/DBIC/Resource/Role/SetWritable.pm compiles ok 39 - lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm compiles ok 40 - lib/WebAPI/DBIC/Resource/Role/Relationship.pm compiles ok 41 - lib/WebAPI/DBIC/Resource/Role/DBICException.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/JSONAPI.pm compiles ok 45 - blib/lib/WebAPI/DBIC/Resource/GenericSet.pm compiles ok 46 - blib/lib/WebAPI/DBIC/Resource/GenericItem.pm compiles ok 47 - blib/lib/WebAPI/DBIC/Resource/GenericRoot.pm compiles ok 48 - blib/lib/WebAPI/DBIC/Resource/HAL.pm compiles ok 49 - blib/lib/WebAPI/DBIC/Resource/Base.pm compiles ok 50 - blib/lib/WebAPI/DBIC/Resource/GenericSetInvoke.pm compiles ok 51 - blib/lib/WebAPI/DBIC/Resource/ActiveModel.pm compiles ok 52 - blib/lib/WebAPI/DBIC/Resource/GenericCore.pm compiles ok 53 - blib/lib/WebAPI/DBIC/Role/JsonEncoder.pm compiles ok 54 - blib/lib/WebAPI/DBIC/Role/JsonParams.pm compiles ok 55 - blib/lib/WebAPI/HTTP/Throwable/Factory.pm compiles ok 56 - lib/WebAPI/DBIC/Resource/HAL/Role/Set.pm compiles ok 57 - lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm compiles ok 58 - lib/WebAPI/DBIC/Resource/HAL/Role/Item.pm compiles ok 59 - lib/WebAPI/DBIC/Resource/HAL/Role/Root.pm compiles ok 60 - lib/WebAPI/DBIC/Resource/HAL/Role/SetWritable.pm compiles ok 61 - lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm compiles ok 62 - lib/WebAPI/DBIC/Resource/JSONAPI/Role/Set.pm compiles ok 63 - lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm compiles ok 64 - lib/WebAPI/DBIC/Resource/JSONAPI/Role/Item.pm compiles ok 65 - lib/WebAPI/DBIC/Resource/JSONAPI/Role/SetWritable.pm compiles ok 66 - lib/WebAPI/DBIC/Resource/JSONAPI/Role/ItemWritable.pm compiles ok 67 - lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm compiles ok 68 - lib/WebAPI/DBIC/Resource/ActiveModel/Role/DBIC.pm compiles ok 69 - lib/WebAPI/DBIC/Resource/ActiveModel/Role/Item.pm compiles ok 70 - lib/WebAPI/DBIC/Resource/ActiveModel/Role/SetWritable.pm compiles ok 71 - lib/WebAPI/DBIC/Resource/ActiveModel/Role/ItemWritable.pm compiles ok 72 - blib/lib/WebAPI/DBIC/Resource/Role/Relationship.pm compiles ok 73 - blib/lib/WebAPI/DBIC/Resource/Role/Item.pm compiles ok 74 - blib/lib/WebAPI/DBIC/Resource/Role/Root.pm compiles ok 75 - blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm compiles ok 76 - blib/lib/WebAPI/DBIC/Resource/Role/Identity.pm compiles ok 77 - blib/lib/WebAPI/DBIC/Resource/Role/DBICException.pm compiles ok 78 - blib/lib/WebAPI/DBIC/Resource/Role/SetInvoke.pm compiles ok 79 - blib/lib/WebAPI/DBIC/Resource/Role/Set.pm compiles ok 80 - blib/lib/WebAPI/DBIC/Resource/Role/DBIC.pm compiles ok 81 - blib/lib/WebAPI/DBIC/Resource/Role/DBICAuth.pm compiles ok 82 - blib/lib/WebAPI/DBIC/Resource/Role/ItemInvoke.pm compiles ok 83 - blib/lib/WebAPI/DBIC/Resource/Role/DBICParams.pm compiles ok 84 - blib/lib/WebAPI/DBIC/Resource/Role/Router.pm compiles ok 85 - blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm compiles ok 86 - blib/lib/WebAPI/HTTP/Throwable/Role/JSONBody.pm compiles ok 87 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/SetWritable.pm compiles ok 88 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/Item.pm compiles ok 89 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/Set.pm compiles ok 90 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/DBIC.pm compiles ok 91 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/Root.pm compiles ok 92 - blib/lib/WebAPI/DBIC/Resource/HAL/Role/ItemWritable.pm compiles ok 93 - blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/ItemWritable.pm compiles ok 94 - blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Set.pm compiles ok 95 - blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/DBIC.pm compiles ok 96 - blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/SetWritable.pm compiles ok 97 - blib/lib/WebAPI/DBIC/Resource/ActiveModel/Role/Item.pm compiles ok 98 - blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Item.pm compiles ok 99 - blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/DBIC.pm compiles ok 100 - blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/ItemWritable.pm compiles ok 101 - blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/Set.pm compiles ok 102 - blib/lib/WebAPI/DBIC/Resource/JSONAPI/Role/SetWritable.pm compiles ok 103 - has psgi files 1..103 ok Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23030), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f235b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66bf0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66bf0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d808), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b68)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d808), Moose::Meta::Instance=HASH(0x25ffdf8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b68), HASH(0x11ee878)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eec20), HASH(0x11ee878)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eec20), HASH(0x11ee878)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eec20), HASH(0x11ee878)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0xc76630)) 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(0xc76630)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0xc76630)) 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(0x1c29068)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '10-basics-req.t output in t/10-basics-req.got matches t/10-basics-req.exp' # at t/lib/TestDS.pm line 67. # +---+---------------------------------------------+----+---------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+---------------------------------------------+----+---------------------------------------------+ # | 3|GET /artist/1 | 3|GET /artist/1 | # | 4|Accept: application/vnd.wapid+json | 4|Accept: application/vnd.wapid+json | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/vnd.wapid+json * # * 8|Not Found * 8|{ * # | | * 9| "artistid" : 1, * # | | * 10| "charfield" : null, * # | | * 11| "name" : "Caterwauler McCrae", * # | | * 12| "rank" : 13 * # | | * 13|} * # | | * 14|\n * # | 9|=== get different single item | 15|=== get different single item | # | 10|Request: | 16|Request: | # | 11|GET /artist/2 | 17|GET /artist/2 | # | 12|Accept: application/vnd.wapid+json | 18|Accept: application/vnd.wapid+json | # | 13|Response: | 19|Response: | # * 14|404 Not Found * 20|200 OK * # * 15|Content-type: text/plain * 21|Content-type: application/vnd.wapid+json * # * 16|Not Found * 22|{ * # | | * 23| "artistid" : 2, * # | | * 24| "charfield" : null, * # | | * 25| "name" : "Random Boy Band", * # | | * 26| "rank" : 13 * # | | * 27|} * # | | * 28|\n * # | 17|=== get set of items | 29|=== get set of items | # | 18|Request: | 30|Request: | # | 19|GET /artist | 31|GET /artist | # +---+---------------------------------------------+----+---------------------------------------------+ # | 21|Response: | 33|Response: | # | 22|200 OK | 34|200 OK | # | 23|Content-type: application/vnd.wapid+json | 35|Content-type: application/vnd.wapid+json | # * 24|[] * 36|[ * # | | * 37| { * # | | * 38| "artistid" : 1, * # | | * 39| "charfield" : null, * # | | * 40| "name" : "Caterwauler McCrae", * # | | * 41| "rank" : 13 * # | | * 42| }, * # | | * 43| { * # | | * 44| "artistid" : 2, * # | | * 45| "charfield" : null, * # | | * 46| "name" : "Random Boy Band", * # | | * 47| "rank" : 13 * # | | * 48| }, * # | | * 49| { * # | | * 50| "artistid" : 3, * # | | * 51| "charfield" : null, * # | | * 52| "name" : "We Are Goth", * # | | * 53| "rank" : 13 * # | | * 54| }, * # | | * 55| { * # | | * 56| "artistid" : 4, * # | | * 57| "charfield" : null, * # | | * 58| "name" : "KielbaSka", * # | | * 59| "rank" : 13 * # | | * 60| }, * # | | * 61| { * # | | * 62| "artistid" : 5, * # | | * 63| "charfield" : null, * # | | * 64| "name" : "Gruntfiddle", * # | | * 65| "rank" : 13 * # | | * 66| }, * # | | * 67| { * # | | * 68| "artistid" : 6, * # | | * 69| "charfield" : null, * # | | * 70| "name" : "A-ha Na Na", * # | | * 71| "rank" : 13 * # | | * 72| } * # | | * 73|] * # | 25| | 74| | # | 26|=== get item with multi-field key | 75|=== get item with multi-field key | # | 27|Request: | 76|Request: | # | 28|GET /gig/1/2014-01-01T01:01:01Z | 77|GET /gig/1/2014-01-01T01:01:01Z | # | 29|Accept: application/vnd.wapid+json | 78|Accept: application/vnd.wapid+json | # | 30|Response: | 79|Response: | # * 31|404 Not Found * 80|200 OK * # * 32|Content-type: text/plain * 81|Content-type: application/vnd.wapid+json * # * 33|Not Found * 82|{ * # | | * 83| "artistid" : 1, * # | | * 84| "gig_datetime" : "2014-01-01T01:01:01Z" * # | | * 85|} * # | | * 86|\n * # | 34|=== get different item with multi-field key | 87|=== get different item with multi-field key | # | 35|Request: | 88|Request: | # | 36|GET /gig/2/2014-06-30T19:00:00Z | 89|GET /gig/2/2014-06-30T19:00:00Z | # | 37|Accept: application/vnd.wapid+json | 90|Accept: application/vnd.wapid+json | # | 38|Response: | 91|Response: | # * 39|404 Not Found * 92|200 OK * # * 40|Content-type: text/plain * 93|Content-type: application/vnd.wapid+json * # * 41|Not Found * 94|{ * # | | * 95| "artistid" : 2, * # | | * 96| "gig_datetime" : "2014-06-30T19:00:00Z" * # | | * 97|} * # | | * 98|\n * # | 42|=== get view data | 99|=== get view data | # | 43|Request: | 100|Request: | # | 44|GET /classic_albums | 101|GET /classic_albums | # +---+---------------------------------------------+----+---------------------------------------------+ # | 46|Response: | 103|Response: | # | 47|200 OK | 104|200 OK | # | 48|Content-type: application/vnd.wapid+json | 105|Content-type: application/vnd.wapid+json | # * 49|[] * 106|[ * # | | * 107| { * # | | * 108| "artist" : "Caterwauler McCrae", * # | | * 109| "cdid" : 1, * # | | * 110| "genre" : "emo", * # | | * 111| "release_year" : "1999", * # | | * 112| "title" : "Spoonful of bees" * # | | * 113| }, * # | | * 114| { * # | | * 115| "artist" : "Caterwauler McCrae", * # | | * 116| "cdid" : 3, * # | | * 117| "genre" : "country", * # | | * 118| "release_year" : "1997", * # | | * 119| "title" : "Caterwaulin\' Blues" * # | | * 120| }, * # | | * 121| { * # | | * 122| "artist" : "We Are Goth", * # | | * 123| "cdid" : 5, * # | | * 124| "genre" : "goth", * # | | * 125| "release_year" : "1998", * # | | * 126| "title" : "Come Be Depressed With Us" * # | | * 127| } * # | | * 128|] * # | 50| | 129| | # | 51|' | 130|' | # +---+---------------------------------------------+----+---------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== basics - specs =====' # at t/10-basics-req.t line 19. # Looks like you failed 2 tests of 2. t/10-basics-req.t ....................... importing fixtures - deleting existing temp directory /tmp/3GOdGJqOOb - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== basics - specs ===== # --- Config: # --- Name: get single item # GET /artist/1 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different single item # GET /artist/2 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get set of items # GET /artist # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json # --- Name: get item with multi-field key # GET /gig/1/2014-01-01T01:01:01Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different item with multi-field key # GET /gig/2/2014-06-30T19:00:00Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get view data # GET /classic_albums # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json not ok 1 - 10-basics-req.t output in t/10-basics-req.got matches t/10-basics-req.exp 1..1 not ok 2 - ===== basics - specs ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23040), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f235c8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66bc0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66bc0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d7d8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25419f8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d7d8), Moose::Meta::Instance=HASH(0x25ffc88), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25419f8), HASH(0x11ee898)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eec40), HASH(0x11ee898)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eec40), HASH(0x11ee898)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eec40), HASH(0x11ee898)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541590)) 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(0x2541590)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541590)) 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(0x1c28fc8)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '11-paging-req.t output in t/11-paging-req.got matches t/11-paging-req.exp' # at t/lib/TestDS.pm line 67. # +---+------------------------------------------+---+------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+------------------------------------------+---+------------------------------------------+ # | 5|Response: | 5|Response: | # | 6|200 OK | 6|200 OK | # | 7|Content-type: application/vnd.wapid+json | 7|Content-type: application/vnd.wapid+json | # * 8|[] * 8|[ * # | | * 9| { * # | | * 10| "artistid" : 1, * # | | * 11| "charfield" : null, * # | | * 12| "name" : "Caterwauler McCrae", * # | | * 13| "rank" : 13 * # | | * 14| } * # | | * 15|] * # | 9| | 16| | # | 10|=== get 2 rows | 17|=== get 2 rows | # | 11|Request: | 18|Request: | # +---+------------------------------------------+---+------------------------------------------+ # | 14|Response: | 21|Response: | # | 15|200 OK | 22|200 OK | # | 16|Content-type: application/vnd.wapid+json | 23|Content-type: application/vnd.wapid+json | # * 17|[] * 24|[ * # | | * 25| { * # | | * 26| "artistid" : 1, * # | | * 27| "charfield" : null, * # | | * 28| "name" : "Caterwauler McCrae", * # | | * 29| "rank" : 13 * # | | * 30| }, * # | | * 31| { * # | | * 32| "artistid" : 2, * # | | * 33| "charfield" : null, * # | | * 34| "name" : "Random Boy Band", * # | | * 35| "rank" : 13 * # | | * 36| } * # | | * 37|] * # | 18| | 38| | # | 19|=== get 2 rows from second \'page\' | 39|=== get 2 rows from second \'page\' | # | 20|Request: | 40|Request: | # +---+------------------------------------------+---+------------------------------------------+ # | 23|Response: | 43|Response: | # | 24|200 OK | 44|200 OK | # | 25|Content-type: application/vnd.wapid+json | 45|Content-type: application/vnd.wapid+json | # * 26|[] * 46|[ * # | | * 47| { * # | | * 48| "artistid" : 3, * # | | * 49| "charfield" : null, * # | | * 50| "name" : "We Are Goth", * # | | * 51| "rank" : 13 * # | | * 52| }, * # | | * 53| { * # | | * 54| "artistid" : 4, * # | | * 55| "charfield" : null, * # | | * 56| "name" : "KielbaSka", * # | | * 57| "rank" : 13 * # | | * 58| } * # | | * 59|] * # | 27| | 60| | # | 28|' | 61|' | # +---+------------------------------------------+---+------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Paging =====' # at t/11-paging-req.t line 18. # Looks like you failed 2 tests of 2. t/11-paging-req.t ....................... importing fixtures - deleting existing temp directory /tmp/_o0K1KuQkv - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Paging ===== # --- Config: # --- Name: get 1 row # GET /artist?rows=1 # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json # --- Name: get 2 rows # GET /artist?rows=2 # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json # --- Name: get 2 rows from second 'page' # GET /artist?rows=2&page=2 # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json not ok 1 - 11-paging-req.t output in t/11-paging-req.got matches t/11-paging-req.exp 1..1 not ok 2 - ===== Paging ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22f90), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23518), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66b40), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66b40), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d758), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541aa8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d758), Moose::Meta::Instance=HASH(0x25ffd78), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541aa8), HASH(0x11ee918)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eecc0), HASH(0x11ee918)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eecc0), HASH(0x11ee918)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eecc0), HASH(0x11ee918)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0xc766d0)) 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(0xc766d0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0xc766d0)) 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(0x1c28ea8)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '12-searching-req.t output in t/12-searching-req.got matches t/12-searching-req.exp' # at t/lib/TestDS.pm line 67. # +---+----------------------------------------------------------------+---+----------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+----------------------------------------------------------------+---+----------------------------------------------------------------+ # | 5|Response: | 5|Response: | # | 6|200 OK | 6|200 OK | # | 7|Content-type: application/vnd.wapid+json | 7|Content-type: application/vnd.wapid+json | # * 8|[] * 8|[ * # | | * 9| { * # | | * 10| "artistid" : 2, * # | | * 11| "charfield" : null, * # | | * 12| "name" : "Random Boy Band", * # | | * 13| "rank" : 13 * # | | * 14| } * # | | * 15|] * # | 9| | 16| | # | 10|=== get specific rows via json array | 17|=== get specific rows via json array | # | 11|Request: | 18|Request: | # +---+----------------------------------------------------------------+---+----------------------------------------------------------------+ # | 15|Response: | 22|Response: | # | 16|200 OK | 23|200 OK | # | 17|Content-type: application/vnd.wapid+json | 24|Content-type: application/vnd.wapid+json | # * 18|[] * 25|[ * # | | * 26| { * # | | * 27| "artistid" : 1, * # | | * 28| "charfield" : null, * # | | * 29| "name" : "Caterwauler McCrae", * # | | * 30| "rank" : 13 * # | | * 31| }, * # | | * 32| { * # | | * 33| "artistid" : 3, * # | | * 34| "charfield" : null, * # | | * 35| "name" : "We Are Goth", * # | | * 36| "rank" : 13 * # | | * 37| } * # | | * 38|] * # | 19| | 39| | # | 20|=== get specific rows via json qualifier expression | 40|=== get specific rows via json qualifier expression | # | 21|Request: | 41|Request: | # +---+----------------------------------------------------------------+---+----------------------------------------------------------------+ # | 25|Response: | 45|Response: | # | 26|200 OK | 46|200 OK | # | 27|Content-type: application/vnd.wapid+json | 47|Content-type: application/vnd.wapid+json | # * 28|[] * 48|[ * # | | * 49| { * # | | * 50| "artistid" : 1, * # | | * 51| "charfield" : null, * # | | * 52| "name" : "Caterwauler McCrae", * # | | * 53| "rank" : 13 * # | | * 54| }, * # | | * 55| { * # | | * 56| "artistid" : 2, * # | | * 57| "charfield" : null, * # | | * 58| "name" : "Random Boy Band", * # | | * 59| "rank" : 13 * # | | * 60| } * # | | * 61|] * # | 29| | 62| | # | 30|=== get no rows, empty set, due to qualifier that matches none | 63|=== get no rows, empty set, due to qualifier that matches none | # | 31|Request: | 64|Request: | # +---+----------------------------------------------------------------+---+----------------------------------------------------------------+ # Looks like you failed 1 test of 2. # Failed test '===== Paging =====' # at t/12-searching-req.t line 18. # Looks like you failed 2 tests of 2. t/12-searching-req.t .................... importing fixtures - deleting existing temp directory /tmp/T6fHRGL1VL - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Paging ===== # --- Config: # --- Name: get 1 row from set by qualifying the key # GET /artist?me.artistid=2 # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json # --- Name: get specific rows via json array # GET /artist?me.artistid~json=%5B1%2C3%5D # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+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: 2 # Content-Type: application/vnd.wapid+json # --- Name: get no rows, empty set, due to qualifier that matches none # GET /artist?me.artistid=999999 # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+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-req.t output in t/12-searching-req.got matches t/12-searching-req.exp 1..2 not ok 2 - ===== Paging ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f231c0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23748), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66d80), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66d80), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d9b8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2548ca8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d9b8), Moose::Meta::Instance=HASH(0x25ffe78), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2548ca8), HASH(0x11eeb28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eeed0), HASH(0x11eeb28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eeed0), HASH(0x11eeb28)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eeed0), HASH(0x11eeb28)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2548a08)) 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(0x2548a08)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2548a08)) 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(0x1c291e8)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '/artist data looks sane' # at t/13-fields-req.t line 22. # Failed test at t/13-fields-req.t line 27. # status doesn't match, expected HTTP status code '200', got 404 # 404 Not Found # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # # Not Found # Failed test 'data isn't a hash' # at t/13-fields-req.t line 28. # got: '' # expected: 'HASH' # Failed test 'set has less than 2 attributes' # at t/13-fields-req.t line 28. # '0' # >= # '2' # Failed test 'artistid' # at t/13-fields-req.t line 29. # got: undef # expected: '1' Use of uninitialized value in hash element at t/13-fields-req.t line 30. # Failed test 'data matches' # at t/13-fields-req.t line 30. # +----+-----+----------+ # | Elt|Got |Expected | # +----+-----+----------+ # * 0|{} |undef * # +----+-----+----------+ # Failed test at t/13-fields-req.t line 34. # status doesn't match, expected HTTP status code '200', got 404 # 404 Not Found # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # # Not Found # Failed test 'data isn't a hash' # at t/13-fields-req.t line 35. # got: '' # expected: 'HASH' # Failed test 'set has less than 2 attributes' # at t/13-fields-req.t line 35. # '0' # >= # '2' # Failed test 'artistid' # at t/13-fields-req.t line 36. # got: undef # expected: '2' # Failed test 'has rank field' # at t/13-fields-req.t line 37. # Looks like you failed 11 tests of 14. # Failed test '===== Get with fields param =====' # at t/13-fields-req.t line 39. # Looks like you failed 2 tests of 2. t/13-fields-req.t ....................... importing fixtures - deleting existing temp directory /tmp/wFBPTkx_r6 - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Get with fields param ===== # GET /artist?fields=artistid,name ok 1 ok 2 - response is a ref not ok 3 - /artist data looks sane ok 4 - rank fields not preset # GET /artist/1?fields=artistid,name not ok 5 not ok 6 - data isn't a hash not ok 7 - set has less than 2 attributes not ok 8 - artistid not ok 9 - data matches # GET /artist/2?fields=artistid,rank 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 - has rank field 1..14 not ok 2 - ===== Get with fields param ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ea0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23428), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66a70), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66a70), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d658), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541868)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d658), Moose::Meta::Instance=HASH(0x25ffaa8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541868), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0xc765b0)) 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(0xc765b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0xc765b0)) 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(0x1c28db8)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test at t/14-distinct-req.t line 20. # Compared array length of $data # got : array with 0 element(s) # expect : array with 4 element(s) # Looks like you failed 1 test of 3. # Failed test '===== GET distinct =====' # at t/14-distinct-req.t line 23. # Looks like you failed 2 tests of 2. t/14-distinct-req.t ..................... importing fixtures - deleting existing temp directory /tmp/DqkH6mnvPa - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== GET distinct ===== # GET /cd?fields=year&order=year&distinct=1 ok 1 ok 2 - response is a ref not ok 3 1..3 not ok 2 - ===== GET distinct ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ef0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23478), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66ad0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66ad0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d688), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541978)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d688), Moose::Meta::Instance=HASH(0x25ffc68), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541978), HASH(0x11ee7c8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eeb70), HASH(0x11ee7c8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eeb70), HASH(0x11ee7c8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eeb70), HASH(0x11ee7c8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0xc76500)) 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(0xc76500)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0xc76500)) 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(0x1c28e18)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '30-ordering-req.t output in t/30-ordering-req.got matches t/30-ordering-req.exp' # at t/lib/TestDS.pm line 67. # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # | 5|Response: | 5|Response: | # | 6|200 OK | 6|200 OK | # | 7|Content-type: application/vnd.wapid+json | 7|Content-type: application/vnd.wapid+json | # * 8|[] * 8|[ * # | | * 9| { * # | | * 10| "artist" : 1, * # | | * 11| "cdid" : 1, * # | | * 12| "genreid" : 1, * # | | * 13| "single_track" : null, * # | | * 14| "title" : "Spoonful of bees", * # | | * 15| "year" : "1999" * # | | * 16| }, * # | | * 17| { * # | | * 18| "artist" : 1, * # | | * 19| "cdid" : 2, * # | | * 20| "genreid" : 2, * # | | * 21| "single_track" : null, * # | | * 22| "title" : "Forkful of bees", * # | | * 23| "year" : "2001" * # | | * 24| }, * # | | * 25| { * # | | * 26| "artist" : 1, * # | | * 27| "cdid" : 3, * # | | * 28| "genreid" : 2, * # | | * 29| "single_track" : null, * # | | * 30| "title" : "Caterwaulin\' Blues", * # | | * 31| "year" : "1997" * # | | * 32| }, * # | | * 33| { * # | | * 34| "artist" : 2, * # | | * 35| "cdid" : 4, * # | | * 36| "genreid" : 3, * # | | * 37| "single_track" : null, * # | | * 38| "title" : "Generic Manufactured Singles", * # | | * 39| "year" : "2001" * # | | * 40| }, * # | | * 41| { * # | | * 42| "artist" : 3, * # | | * 43| "cdid" : 5, * # | | * 44| "genreid" : 4, * # | | * 45| "single_track" : null, * # | | * 46| "title" : "Come Be Depressed With Us", * # | | * 47| "year" : "1998" * # | | * 48| } * # | | * 49|] * # | 9| | 50| | # | 10|=== order by PK desc | 51|=== order by PK desc | # | 11|Request: | 52|Request: | # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # | 14|Response: | 55|Response: | # | 15|200 OK | 56|200 OK | # | 16|Content-type: application/vnd.wapid+json | 57|Content-type: application/vnd.wapid+json | # * 17|[] * 58|[ * # | | * 59| { * # | | * 60| "cdid" : 5, * # | | * 61| "year" : "1998" * # | | * 62| }, * # | | * 63| { * # | | * 64| "cdid" : 4, * # | | * 65| "year" : "2001" * # | | * 66| }, * # | | * 67| { * # | | * 68| "cdid" : 3, * # | | * 69| "year" : "1997" * # | | * 70| }, * # | | * 71| { * # | | * 72| "cdid" : 2, * # | | * 73| "year" : "2001" * # | | * 74| }, * # | | * 75| { * # | | * 76| "cdid" : 1, * # | | * 77| "year" : "1999" * # | | * 78| } * # | | * 79|] * # | 18| | 80| | # | 19|=== order by year desc and title desc | 81|=== order by year desc and title desc | # | 20|Request: | 82|Request: | # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # | 23|Response: | 85|Response: | # | 24|200 OK | 86|200 OK | # | 25|Content-type: application/vnd.wapid+json | 87|Content-type: application/vnd.wapid+json | # * 26|[] * 88|[ * # | | * 89| { * # | | * 90| "cdid" : 4, * # | | * 91| "title" : "Generic Manufactured Singles", * # | | * 92| "year" : "2001" * # | | * 93| }, * # | | * 94| { * # | | * 95| "cdid" : 2, * # | | * 96| "title" : "Forkful of bees", * # | | * 97| "year" : "2001" * # | | * 98| }, * # | | * 99| { * # | | * 100| "cdid" : 1, * # | | * 101| "title" : "Spoonful of bees", * # | | * 102| "year" : "1999" * # | | * 103| }, * # | | * 104| { * # | | * 105| "cdid" : 5, * # | | * 106| "title" : "Come Be Depressed With Us", * # | | * 107| "year" : "1998" * # | | * 108| }, * # | | * 109| { * # | | * 110| "cdid" : 3, * # | | * 111| "title" : "Caterwaulin\' Blues", * # | | * 112| "year" : "1997" * # | | * 113| } * # | | * 114|] * # | 27| | 115| | # | 28|=== order by year desc and title desc using JSON API style | 116|=== order by year desc and title desc using JSON API style | # | 29|Request: | 117|Request: | # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # | 32|Response: | 120|Response: | # | 33|200 OK | 121|200 OK | # | 34|Content-type: application/vnd.wapid+json | 122|Content-type: application/vnd.wapid+json | # * 35|[] * 123|[ * # | | * 124| { * # | | * 125| "cdid" : 4, * # | | * 126| "title" : "Generic Manufactured Singles", * # | | * 127| "year" : "2001" * # | | * 128| }, * # | | * 129| { * # | | * 130| "cdid" : 2, * # | | * 131| "title" : "Forkful of bees", * # | | * 132| "year" : "2001" * # | | * 133| }, * # | | * 134| { * # | | * 135| "cdid" : 1, * # | | * 136| "title" : "Spoonful of bees", * # | | * 137| "year" : "1999" * # | | * 138| }, * # | | * 139| { * # | | * 140| "cdid" : 5, * # | | * 141| "title" : "Come Be Depressed With Us", * # | | * 142| "year" : "1998" * # | | * 143| }, * # | | * 144| { * # | | * 145| "cdid" : 3, * # | | * 146| "title" : "Caterwaulin\' Blues", * # | | * 147| "year" : "1997" * # | | * 148| } * # | | * 149|] * # | 36| | 150| | # | 37|' | 151|' | # +---+------------------------------------------------------------+----+------------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Ordering =====' # at t/30-ordering-req.t line 20. # Looks like you failed 2 tests of 2. t/30-ordering-req.t ..................... importing fixtures - deleting existing temp directory /tmp/NVQbEZjXQt - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Ordering ===== # --- Config: # --- Name: order by PK asc # GET /cd?order=me.cdid # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+json # --- Name: order by PK desc # GET /cd?order=me.cdid%20desc&fields=cdid,year # Vary: Accept # Content-Length: 2 # Content-Type: application/vnd.wapid+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: 2 # Content-Type: application/vnd.wapid+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: 2 # Content-Type: application/vnd.wapid+json not ok 1 - 30-ordering-req.t output in t/30-ordering-req.got matches t/30-ordering-req.exp 1..1 not ok 2 - ===== Ordering ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23710), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23c98), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f672e0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f672e0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7df68), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25422f8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7df68), Moose::Meta::Instance=HASH(0x26005a8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25422f8), HASH(0x11ef348)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef6f0), HASH(0x11ef348)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef6f0), HASH(0x11ef348)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef6f0), HASH(0x11ef348)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2542058)) 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(0x2542058)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2542058)) 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(0x1c29778)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '/artist includes 1' # at t/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist includes 2' # at t/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist includes 3' # at t/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist data looks sane' # at t/50-modify-req.t line 29. # Failed test 'new item has new id' # at t/50-modify-req.t line 44. # Looks like you failed 5 tests of 43. # Failed test '===== Create - POST =====' # at t/50-modify-req.t line 108. # Looks like you failed 2 tests of 2. t/50-modify-req.t ....................... importing fixtures - deleting existing temp directory /tmp/xURs_YSx4I - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Create - POST ===== # GET /artist ok 1 ok 2 - response is a ref not ok 3 - /artist includes 1 not ok 4 - /artist includes 2 not ok 5 - /artist includes 3 not ok 6 - /artist data looks sane # plain post # POST /artist ok 7 ok 8 - has Location header ok 9 - no data returned without prefetch # GET /artist/1 ok 10 ok 11 - response is a ref ok 12 - new item has id not ok 13 - new item has new id ok 14 ok 15 # post with prefetch=self # POST /artist?prefetch=self ok 16 ok 17 - has Location header ok 18 - response is a ref # GET /artist/2 ok 19 ok 20 - response is a ref ok 21 - new item has id ok 22 - new item has new id ok 23 ok 24 ok 25 - returned prefetch matches item at location # ===== Update - PUT ===== # put without prefetch=self # PUT /artist/2 ok 26 ok 27 - no response body # GET /artist/2 ok 28 ok 29 - response is a ref ok 30 # put with prefetch=self # PUT /artist/2?prefetch=self ok 31 ok 32 - response is a ref ok 33 - has response body ok 34 - prefetch response has updated rank # GET /artist/2 ok 35 ok 36 - response is a ref ok 37 - returned prefetch matches item at location # ===== Delete - DELETE ===== # DELETE /artist/1 ok 38 ok 39 - no response body # GET /person_types/1 ok 40 # DELETE /artist/2 ok 41 ok 42 - no response body # GET /person_types/2 ok 43 1..43 not ok 2 - ===== Create - POST ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f234e0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23a68), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f670d0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f670d0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dd48), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542078)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dd48), Moose::Meta::Instance=HASH(0x2600298), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542078), HASH(0x11eeeb8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef260), HASH(0x11eeeb8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef260), HASH(0x11eeeb8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef260), HASH(0x11eeeb8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0xc76b50)) 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(0xc76b50)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0xc76b50)) 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(0x1c29558)) 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-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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: Can't call method "result_source" on an undefined value at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm line 97. Exception: Can't call method "result_source" on an undefined value at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm line 97. # Failed test '53-put_rel-req.t output in t/53-put_rel-req.got matches t/53-put_rel-req.exp' # at t/lib/TestDS.pm line 67. # +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+ # | 6|Response: | 6|Response: | # | 7|201 Created | 7|201 Created | # | 8|Content-type: application/vnd.wapid+json | 8|Content-type: application/vnd.wapid+json | # * 9|Location: /track/1 * 9|Location: /track/19 * # | 10|{ | 10|{ | # | 11| "cd" : 2, | 11| "cd" : 2, | # | 12| "last_updated_at" : null, | 12| "last_updated_at" : null, | # | 13| "last_updated_on" : null, | 13| "last_updated_on" : null, | # | 14| "position" : 4200, | 14| "position" : 4200, | # | 15| "title" : "Just One More", | 15| "title" : "Just One More", | # * 16| "trackid" : 1 * 16| "trackid" : 19 * # | 17|} | 17|} | # | 18| | 18| | # | 19|=== update the title (19 hardwired for now) and prefetch self and disc (ignored) | 19|=== update the title (19 hardwired for now) and prefetch self and disc (ignored) | # +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+ # | 22|Accept: application/vnd.wapid+json | 22|Accept: application/vnd.wapid+json | # | 23|{ "title":"Just One More (remix)" } | 23|{ "title":"Just One More (remix)" } | # | 24|Response: | 24|Response: | # * 25|500 Internal Server Error * 25|200 OK * # | 26|Content-type: application/vnd.wapid+json | 26|Content-type: application/vnd.wapid+json | # | | * 27|{ * # | | * 28| "cd" : 2, * # | | * 29| "last_updated_at" : null, * # | | * 30| "last_updated_on" : null, * # | | * 31| "position" : 4200, * # | | * 32| "title" : "Just One More (remix)", * # | | * 33| "trackid" : 19 * # | | * 34|} * # | | * 35|\n * # | 27|=== update the track id (primary key) | 36|=== update the track id (primary key) | # | 28|Request: | 37|Request: | # | 29|PUT /track/19?prefetch=self | 38|PUT /track/19?prefetch=self | # | 30|Accept: application/vnd.wapid+json | 39|Accept: application/vnd.wapid+json | # | 31|{ "trackid":1900 } | 40|{ "trackid":1900 } | # | 32|Response: | 41|Response: | # * 33|500 Internal Server Error * 42|200 OK * # | 34|Content-type: application/vnd.wapid+json | 43|Content-type: application/vnd.wapid+json | # | | * 44|{ * # | | * 45| "cd" : 2, * # | | * 46| "last_updated_at" : null, * # | | * 47| "last_updated_on" : null, * # | | * 48| "position" : 4200, * # | | * 49| "title" : "Just One More (remix)", * # | | * 50| "trackid" : 1900 * # | | * 51|} * # | | * 52|\n * # | 35|=== delete the track we just added | 53|=== delete the track we just added | # | 36|Request: | 54|Request: | # | 37|DELETE /track/1900 | 55|DELETE /track/1900 | # | 38|Accept: application/vnd.wapid+json | 56|Accept: application/vnd.wapid+json | # | 39|Response: | 57|Response: | # * 40|404 Not Found * 58|204 No Content * # * 41|Content-type: text/plain * 59|Content-type: application/vnd.wapid+json * # * 42|Not Found * | | # | 43|' | 60|' | # +---+----------------------------------------------------------------------------------+---+----------------------------------------------------------------------------------+ Exception: DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd, track.title [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62 # Failed test at t/53-put_rel-req.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/vnd.wapid+json # # Failed test 'has Location header' # at t/53-put_rel-req.t line 28. Use of uninitialized value in concatenation (.) or string at t/53-put_rel-req.t line 33. # Failed test at t/53-put_rel-req.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-req.t line 38. # got: '' # expected: 'HASH' # Failed test 'has trackid assigned' # at t/53-put_rel-req.t line 39. # Failed test at t/53-put_rel-req.t line 40. # got: undef # expected: 'Just One More (remix)' Use of uninitialized value in concatenation (.) or string at t/53-put_rel-req.t line 46. Not a HASH reference at t/53-put_rel-req.t line 47. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 1. t/53-put_rel-req.t ...................... importing fixtures - deleting existing temp directory /tmp/_ovTz2Z5jQ - creating temp dir not ok 1 - 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 # Location: /track/1 # Vary: Accept # Content-Length: 106 # Content-Type: application/vnd.wapid+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/vnd.wapid+json # --- Name: update the track id (primary key) # PUT /track/19?prefetch=self # Vary: Accept # Content-Length: 0 # Content-Type: application/vnd.wapid+json # --- Name: delete the track we just added # DELETE /track/1900 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain not ok 1 - 53-put_rel-req.t output in t/53-put_rel-req.got matches t/53-put_rel-req.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 ok 9 ok 10 - response is a ref Dubious, test returned 2 (wstat 512, 0x200) Failed 1/1 subtests Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23390), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23918), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66f70), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66f70), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dc18), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541f68)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dc18), Moose::Meta::Instance=HASH(0x2600238), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541f68), HASH(0x11eedd8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef180), HASH(0x11eedd8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef180), HASH(0x11eedd8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef180), HASH(0x11eedd8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541cc8)) 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(0x2541cc8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541cc8)) 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(0x1c292c8)) 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-req.t line 4 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '60-invoke-req.t output in t/60-invoke-req.got matches t/60-invoke-req.exp' # at t/lib/TestDS.pm line 67. # +----+-------------------------------------------------------------+----+-------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +----+-------------------------------------------------------------+----+-------------------------------------------------------------+ # | 3|POST /artist/1/invoke/get_column | 3|POST /artist/1/invoke/get_column | # | 4|{ "args" : ["name"] } | 4|{ "args" : ["name"] } | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/vnd.wapid+json * # * 8|Not Found * 8|{ * # | | * 9| "result" : "Caterwauler McCrae" * # | | * 10|} * # | | * 11|\n * # | 9|=== Invoke get_column({}) on Item - Invalid arg type | 12|=== Invoke get_column({}) on Item - Invalid arg type | # | 10|Request: | 13|Request: | # | 11|POST /artist/1/invoke/get_column | 14|POST /artist/1/invoke/get_column | # | 12|{ "args" : {} } | 15|{ "args" : {} } | # | 13|Response: | 16|Response: | # * 14|404 Not Found * 17|400 Bad Request * # * 15|Content-type: text/plain * 18|Content-type: application/json * # * 16|Not Found * 19|{ * # | | * 20| "errors" : "The args must be an array" * # | | * 21|} * # | | * 22|\n * # | 17|=== Invoke get_column() on Item - Unknown attribute | 23|=== Invoke get_column() on Item - Unknown attribute | # | 18|Request: | 24|Request: | # | 19|POST /artist/1/invoke/get_column | 25|POST /artist/1/invoke/get_column | # | 20|{ "nonesuch" : 1 } | 26|{ "nonesuch" : 1 } | # | 21|Response: | 27|Response: | # * 22|404 Not Found * 28|400 Bad Request * # * 23|Content-type: text/plain * 29|Content-type: application/json * # * 24|Not Found * 30|{ * # | | * 31| "errors" : "Unknown attributes: nonesuch" * # | | * 32|} * # | | * 33|\n * # | 25|=== Invoke get_column() on Item - Invalid Body | 34|=== Invoke get_column() on Item - Invalid Body | # | 26|Request: | 35|Request: | # | 27|POST /artist/1/invoke/get_column | 36|POST /artist/1/invoke/get_column | # | 28|[] | 37|[] | # | 29|Response: | 38|Response: | # * 30|404 Not Found * 39|400 Bad Request * # * 31|Content-type: text/plain * 40|Content-type: application/json * # * 32|Not Found * 41|{ * # | | * 42| "errors" : "Request content not a JSON hash" * # | | * 43|} * # | | * 44|\n * # | 33|=== Invoke get_colum(\'nonesuch\') on Item - Invalid column | 45|=== Invoke get_colum(\'nonesuch\') on Item - Invalid column | # | 34|Request: | 46|Request: | # | 35|POST /artist/1/invoke/get_column | 47|POST /artist/1/invoke/get_column | # | 36|{ "args" : ["nonesuch"] } | 48|{ "args" : ["nonesuch"] } | # | 37|Response: | 49|Response: | # * 38|404 Not Found * 50|500 Internal Server Error * # * 39|Content-type: text/plain * 51|Content-type: application/vnd.wapid+json * # * 40|Not Found * | | # | 41|=== Invoke get_column(\'name\') on Set | 52|=== Invoke get_column(\'name\') on Set | # | 42|Request: | 53|Request: | # | 43|POST /artist/invoke/get_column | 54|POST /artist/invoke/get_column | # +----+-------------------------------------------------------------+----+-------------------------------------------------------------+ # | 54|200 OK | 65|200 OK | # | 55|Content-type: application/vnd.wapid+json | 66|Content-type: application/vnd.wapid+json | # | 56|{ | 67|{ | # * 57| "result" : 0 * 68| "result" : 6 * # | 58|} | 69|} | # | 59| | 70| | # | 60|=== Invoke count on Set - Invalid arg type | 71|=== Invoke count on Set - Invalid arg type | # +----+-------------------------------------------------------------+----+-------------------------------------------------------------+ # | 98|200 OK | 109|200 OK | # | 99|Content-type: application/vnd.wapid+json | 110|Content-type: application/vnd.wapid+json | # | 100|{ | 111|{ | # * 101| "result" : 0 * 112| "result" : 1 * # | 102|} | 113|} | # | 103| | 114| | # | 104|=== Invoke count on Item | 115|=== Invoke count on Item | # +----+-------------------------------------------------------------+----+-------------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Invoke methods =====' # at t/60-invoke-req.t line 22. # Looks like you failed 2 tests of 2. t/60-invoke-req.t ....................... importing fixtures - deleting existing temp directory /tmp/qRxobR0NMK - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Invoke methods ===== # --- Config: # --- Name: Invoke get_column('name') on Item # POST /artist/1/invoke/get_column # Content-Length: 9 # Content-Type: text/plain # --- Name: Invoke get_column({}) on Item - Invalid arg type # POST /artist/1/invoke/get_column # Content-Length: 9 # Content-Type: text/plain # --- Name: Invoke get_column() on Item - Unknown attribute # POST /artist/1/invoke/get_column # Content-Length: 9 # Content-Type: text/plain # --- Name: Invoke get_column() on Item - Invalid Body # POST /artist/1/invoke/get_column # Content-Length: 9 # Content-Type: text/plain # --- Name: Invoke get_colum('nonesuch') on Item - Invalid column # POST /artist/1/invoke/get_column # Content-Length: 9 # Content-Type: text/plain # --- Name: Invoke get_column('name') on Set # POST /artist/invoke/get_column # Content-Type: text/html # --- Name: Invoke count on Set # POST /artist/invoke/count # Content-Length: 12 # Content-Type: application/vnd.wapid+json # --- Name: Invoke count on Set - Invalid arg type # POST /artist/invoke/count # Content-Length: 46 # Content-Type: application/json # --- Name: Invoke count on Set - Unknown attribute # POST /artist/invoke/count # Content-Length: 49 # Content-Type: application/json # --- Name: Invoke count on Set - Invalid Body # POST /artist/invoke/count # Content-Length: 52 # Content-Type: application/json # --- Name: Invoke count({name => "Caterwauler McCrae"}) on Set # POST /artist/invoke/count # Content-Length: 12 # Content-Type: application/vnd.wapid+json # --- Name: Invoke count on Item # POST /artist/1/invoke/count # Content-Type: text/html not ok 1 - 60-invoke-req.t output in t/60-invoke-req.got matches t/60-invoke-req.exp 1..1 not ok 2 - ===== Invoke methods ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ff0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23578), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66ba0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66ba0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d808), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541ad8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d808), Moose::Meta::Instance=HASH(0x25ffd38), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541ad8), HASH(0x11ee848)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eebf0), HASH(0x11ee848)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eebf0), HASH(0x11ee848)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eebf0), HASH(0x11ee848)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541838)) 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(0x2541838)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541838)) 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(0x1c28f98)) 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-req.t line 4 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 t/90-root-req.t ......................... # 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: 771 # Content-Type: application/vnd.wapid+json ok 1 - 90-root-req.t output in t/90-root-req.got matches t/90-root-req.exp 1..1 ok 1 - ===== basics - specs ===== 1..1 ok Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22f00), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23488), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66ac0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66ac0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d678), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b18)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d678), Moose::Meta::Instance=HASH(0x25ffd88), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b18), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x25416b0)) 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(0x25416b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x25416b0)) 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(0x1c28f98)) 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/media-active-model/10-basics-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '10-basics-req.t output in t/media-active-model/10-basics-req.got matches t/media-active-model/10-basics-req.exp' # at t/lib/TestDS.pm line 67. # +---+---------------------------------------------+----+--------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+---------------------------------------------+----+--------------------------------------------------+ # | 3|GET /artist/1 | 3|GET /artist/1 | # | 4|Accept: application/json | 4|Accept: application/json | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/json * # * 8|Not Found * 8|{ * # | | * 9| "artist" : [ * # | | * 10| { * # | | * 11| "artistid" : 1, * # | | * 12| "charfield" : null, * # | | * 13| "name" : "Caterwauler McCrae", * # | | * 14| "rank" : 13 * # | | * 15| } * # | | * 16| ] * # | | * 17|} * # | | * 18|\n * # | 9|=== get different single item | 19|=== get different single item | # | 10|Request: | 20|Request: | # | 11|GET /artist/2 | 21|GET /artist/2 | # | 12|Accept: application/json | 22|Accept: application/json | # | 13|Response: | 23|Response: | # * 14|404 Not Found * 24|200 OK * # * 15|Content-type: text/plain * 25|Content-type: application/json * # * 16|Not Found * 26|{ * # | | * 27| "artist" : [ * # | | * 28| { * # | | * 29| "artistid" : 2, * # | | * 30| "charfield" : null, * # | | * 31| "name" : "Random Boy Band", * # | | * 32| "rank" : 13 * # | | * 33| } * # | | * 34| ] * # | | * 35|} * # | | * 36|\n * # | 17|=== get set of items | 37|=== get set of items | # | 18|Request: | 38|Request: | # | 19|GET /artist | 39|GET /artist | # +---+---------------------------------------------+----+--------------------------------------------------+ # | 22|200 OK | 42|200 OK | # | 23|Content-type: application/json | 43|Content-type: application/json | # | 24|{ | 44|{ | # * 25| "artist" : [] * 45| "artist" : [ * # | | * 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| "artistid" : 3, * # | | * 60| "charfield" : null, * # | | * 61| "name" : "We Are Goth", * # | | * 62| "rank" : 13 * # | | * 63| }, * # | | * 64| { * # | | * 65| "artistid" : 4, * # | | * 66| "charfield" : null, * # | | * 67| "name" : "KielbaSka", * # | | * 68| "rank" : 13 * # | | * 69| }, * # | | * 70| { * # | | * 71| "artistid" : 5, * # | | * 72| "charfield" : null, * # | | * 73| "name" : "Gruntfiddle", * # | | * 74| "rank" : 13 * # | | * 75| }, * # | | * 76| { * # | | * 77| "artistid" : 6, * # | | * 78| "charfield" : null, * # | | * 79| "name" : "A-ha Na Na", * # | | * 80| "rank" : 13 * # | | * 81| } * # | | * 82| ] * # | 26|} | 83|} | # | 27| | 84| | # | 28|=== get item with multi-field key | 85|=== get item with multi-field key | # +---+---------------------------------------------+----+--------------------------------------------------+ # | 30|GET /gig/1/2014-01-01T01:01:01Z | 87|GET /gig/1/2014-01-01T01:01:01Z | # | 31|Accept: application/json | 88|Accept: application/json | # | 32|Response: | 89|Response: | # * 33|404 Not Found * 90|200 OK * # * 34|Content-type: text/plain * 91|Content-type: application/json * # * 35|Not Found * 92|{ * # | | * 93| "gig" : [ * # | | * 94| { * # | | * 95| "artistid" : 1, * # | | * 96| "gig_datetime" : "2014-01-01T01:01:01Z" * # | | * 97| } * # | | * 98| ] * # | | * 99|} * # | | * 100|\n * # | 36|=== get different item with multi-field key | 101|=== get different item with multi-field key | # | 37|Request: | 102|Request: | # | 38|GET /gig/2/2014-06-30T19:00:00Z | 103|GET /gig/2/2014-06-30T19:00:00Z | # | 39|Accept: application/json | 104|Accept: application/json | # | 40|Response: | 105|Response: | # * 41|404 Not Found * 106|200 OK * # * 42|Content-type: text/plain * 107|Content-type: application/json * # * 43|Not Found * 108|{ * # | | * 109| "gig" : [ * # | | * 110| { * # | | * 111| "artistid" : 2, * # | | * 112| "gig_datetime" : "2014-06-30T19:00:00Z" * # | | * 113| } * # | | * 114| ] * # | | * 115|} * # | | * 116|\n * # | 44|=== get view data | 117|=== get view data | # | 45|Request: | 118|Request: | # | 46|GET /classic_albums | 119|GET /classic_albums | # +---+---------------------------------------------+----+--------------------------------------------------+ # | 49|200 OK | 122|200 OK | # | 50|Content-type: application/json | 123|Content-type: application/json | # | 51|{ | 124|{ | # * 52| "classic_albums" : [] * 125| "classic_albums" : [ * # | | * 126| { * # | | * 127| "artist" : "Caterwauler McCrae", * # | | * 128| "cdid" : 1, * # | | * 129| "genre" : "emo", * # | | * 130| "release_year" : "1999", * # | | * 131| "title" : "Spoonful of bees" * # | | * 132| }, * # | | * 133| { * # | | * 134| "artist" : "Caterwauler McCrae", * # | | * 135| "cdid" : 3, * # | | * 136| "genre" : "country", * # | | * 137| "release_year" : "1997", * # | | * 138| "title" : "Caterwaulin\' Blues" * # | | * 139| }, * # | | * 140| { * # | | * 141| "artist" : "We Are Goth", * # | | * 142| "cdid" : 5, * # | | * 143| "genre" : "goth", * # | | * 144| "release_year" : "1998", * # | | * 145| "title" : "Come Be Depressed With Us" * # | | * 146| } * # | | * 147| ] * # | 53|} | 148|} | # | 54| | 149| | # | 55|' | 150|' | # +---+---------------------------------------------+----+--------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== basics - specs =====' # at t/media-active-model/10-basics-req.t line 18. # Looks like you failed 2 tests of 2. t/media-active-model/10-basics-req.t .... importing fixtures - deleting existing temp directory /tmp/eVGIyRfhVU - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== basics - specs ===== # --- Config: # --- Name: get single item # GET /artist/1 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different single item # GET /artist/2 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get set of items # GET /artist # Vary: Accept # Content-Length: 13 # Content-Type: application/json # --- Name: get item with multi-field key # GET /gig/1/2014-01-01T01:01:01Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different item with multi-field key # GET /gig/2/2014-06-30T19:00:00Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get view data # GET /classic_albums # Vary: Accept # Content-Length: 21 # Content-Type: application/json not ok 1 - 10-basics-req.t output in t/media-active-model/10-basics-req.got matches t/media-active-model/10-basics-req.exp 1..1 not ok 2 - ===== basics - specs ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23b30), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f240b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2e8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2e8), Moose::Meta::Instance=HASH(0x26009d8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x253c428)) 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(0x253c428)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x253c428)) 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(0x1c29b08)) 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/media-active-model/40-prefetch-req.t line 7 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 Child result class TestSchema::Result::CD_to_Producer has multiple keys (cd producer) so relations like cd_to_producer won't have links generated. # Failed test '40-prefetch-req.t output in t/media-active-model/40-prefetch-req.got matches t/media-active-model/40-prefetch-req.exp' # at t/lib/TestDS.pm line 67. # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 3|GET /cd/1?prefetch=artist,genre | 3|GET /cd/1?prefetch=artist,genre | # | 4|Accept: application/json | 4|Accept: application/json | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/json * # * 8|Not Found * 8|{ * # | | * 9| "artist" : [ * # | | * 10| { * # | | * 11| "artistid" : 1, * # | | * 12| "charfield" : null, * # | | * 13| "name" : "Caterwauler McCrae", * # | | * 14| "rank" : 13 * # | | * 15| } * # | | * 16| ], * # | | * 17| "cd" : [ * # | | * 18| { * # | | * 19| "artist" : 1, * # | | * 20| "artist_id" : 1, * # | | * 21| "cdid" : 1, * # | | * 22| "genre_id" : 1, * # | | * 23| "genreid" : 1, * # | | * 24| "single_track" : null, * # | | * 25| "title" : "Spoonful of bees", * # | | * 26| "year" : "1999" * # | | * 27| } * # | | * 28| ], * # | | * 29| "genre" : [ * # | | * 30| { * # | | * 31| "genreid" : 1, * # | | * 32| "name" : "emo" * # | | * 33| } * # | | * 34| ] * # | | * 35|} * # | | * 36|\n * # | 9|=== prefetch on a set using two belongs_to relationships | 37|=== prefetch on a set using two belongs_to relationships | # | 10|Request: | 38|Request: | # | 11|GET /cd?rows=2&page=1&prefetch=artist,genre | 39|GET /cd?rows=2&page=1&prefetch=artist,genre | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 14|200 OK | 42|200 OK | # | 15|Content-type: application/json | 43|Content-type: application/json | # | 16|{ | 44|{ | # * 17| "cd" : [] * 45| "artist" : [ * # | | * 46| { * # | | * 47| "artistid" : 1, * # | | * 48| "charfield" : null, * # | | * 49| "name" : "Caterwauler McCrae", * # | | * 50| "rank" : 13 * # | | * 51| } * # | | * 52| ], * # | | * 53| "cd" : [ * # | | * 54| { * # | | * 55| "artist" : 1, * # | | * 56| "artist_id" : 1, * # | | * 57| "cdid" : 1, * # | | * 58| "genre_id" : 1, * # | | * 59| "genreid" : 1, * # | | * 60| "single_track" : null, * # | | * 61| "title" : "Spoonful of bees", * # | | * 62| "year" : "1999" * # | | * 63| }, * # | | * 64| { * # | | * 65| "artist" : 1, * # | | * 66| "artist_id" : 1, * # | | * 67| "cdid" : 2, * # | | * 68| "genre_id" : 2, * # | | * 69| "genreid" : 2, * # | | * 70| "single_track" : null, * # | | * 71| "title" : "Forkful of bees", * # | | * 72| "year" : "2001" * # | | * 73| } * # | | * 74| ], * # | | * 75| "genre" : [ * # | | * 76| { * # | | * 77| "genreid" : 1, * # | | * 78| "name" : "emo" * # | | * 79| }, * # | | * 80| { * # | | * 81| "genreid" : 2, * # | | * 82| "name" : "country" * # | | * 83| } * # | | * 84| ] * # | 18|} | 85|} | # | 19| | 86| | # | 20|=== filter on prefetched relation field | 87|=== filter on prefetched relation field | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 25|200 OK | 92|200 OK | # | 26|Content-type: application/json | 93|Content-type: application/json | # | 27|{ | 94|{ | # * 28| "cd" : [] * 95| "artist" : [ * # | | * 96| { * # | | * 97| "artistid" : 2, * # | | * 98| "charfield" : null, * # | | * 99| "name" : "Random Boy Band", * # | | * 100| "rank" : 13 * # | | * 101| } * # | | * 102| ], * # | | * 103| "cd" : [ * # | | * 104| { * # | | * 105| "artist" : 2, * # | | * 106| "artist_id" : 2, * # | | * 107| "cdid" : 4, * # | | * 108| "genreid" : 3, * # | | * 109| "single_track" : null, * # | | * 110| "title" : "Generic Manufactured Singles", * # | | * 111| "year" : "2001" * # | | * 112| } * # | | * 113| ] * # | 29|} | 114|} | # | 30| | 115| | # | 31|=== filter on prefetch with JSON | 116|=== filter on prefetch with JSON | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 37|200 OK | 122|200 OK | # | 38|Content-type: application/json | 123|Content-type: application/json | # | 39|{ | 124|{ | # * 40| "cd" : [] * 125| "artist" : [ * # | | * 126| { * # | | * 127| "artistid" : 2, * # | | * 128| "charfield" : null, * # | | * 129| "name" : "Random Boy Band", * # | | * 130| "rank" : 13 * # | | * 131| } * # | | * 132| ], * # | | * 133| "cd" : [ * # | | * 134| { * # | | * 135| "artist" : 2, * # | | * 136| "artist_id" : 2, * # | | * 137| "cdid" : 4, * # | | * 138| "genreid" : 3, * # | | * 139| "single_track" : null, * # | | * 140| "title" : "Generic Manufactured Singles", * # | | * 141| "year" : "2001" * # | | * 142| } * # | | * 143| ] * # | 41|} | 144|} | # | 42| | 145| | # | 43|=== multi type relation (has_many) in prefetch on item | 146|=== multi type relation (has_many) in prefetch on item | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 45|GET /artist/1?prefetch=cds&order=cds.cdid | 148|GET /artist/1?prefetch=cds&order=cds.cdid | # | 46|Accept: application/json | 149|Accept: application/json | # | 47|Response: | 150|Response: | # * 48|404 Not Found * 151|200 OK * # * 49|Content-type: text/plain * 152|Content-type: application/json * # * 50|Not Found * 153|{ * # | | * 154| "artist" : [ * # | | * 155| { * # | | * 156| "artistid" : 1, * # | | * 157| "cd_ids" : [ * # | | * 158| 1, * # | | * 159| 2, * # | | * 160| 3 * # | | * 161| ], * # | | * 162| "charfield" : null, * # | | * 163| "name" : "Caterwauler McCrae", * # | | * 164| "rank" : 13 * # | | * 165| } * # | | * 166| ], * # | | * 167| "cd" : [ * # | | * 168| { * # | | * 169| "artist" : 1, * # | | * 170| "cdid" : 1, * # | | * 171| "genreid" : 1, * # | | * 172| "single_track" : null, * # | | * 173| "title" : "Spoonful of bees", * # | | * 174| "year" : "1999" * # | | * 175| }, * # | | * 176| { * # | | * 177| "artist" : 1, * # | | * 178| "cdid" : 2, * # | | * 179| "genreid" : 2, * # | | * 180| "single_track" : null, * # | | * 181| "title" : "Forkful of bees", * # | | * 182| "year" : "2001" * # | | * 183| }, * # | | * 184| { * # | | * 185| "artist" : 1, * # | | * 186| "cdid" : 3, * # | | * 187| "genreid" : 2, * # | | * 188| "single_track" : null, * # | | * 189| "title" : "Caterwaulin\' Blues", * # | | * 190| "year" : "1997" * # | | * 191| } * # | | * 192| ] * # | | * 193|} * # | | * 194|\n * # | 51|=== multi type relation (has_many) in prefetch on set | 195|=== multi type relation (has_many) in prefetch on set | # | 52|Request: | 196|Request: | # | 53|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | 197|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 56|200 OK | 200|200 OK | # | 57|Content-type: application/json | 201|Content-type: application/json | # | 58|{ | 202|{ | # * 59| "artist" : [] * 203| "artist" : [ * # | | * 204| { * # | | * 205| "artistid" : 1, * # | | * 206| "cd_ids" : [ * # | | * 207| 1, * # | | * 208| 2, * # | | * 209| 3 * # | | * 210| ], * # | | * 211| "charfield" : null, * # | | * 212| "name" : "Caterwauler McCrae", * # | | * 213| "rank" : 13 * # | | * 214| }, * # | | * 215| { * # | | * 216| "artistid" : 2, * # | | * 217| "cd_ids" : [ * # | | * 218| 4 * # | | * 219| ], * # | | * 220| "charfield" : null, * # | | * 221| "name" : "Random Boy Band", * # | | * 222| "rank" : 13 * # | | * 223| } * # | | * 224| ], * # | | * 225| "cd" : [ * # | | * 226| { * # | | * 227| "artist" : 1, * # | | * 228| "cdid" : 1, * # | | * 229| "genreid" : 1, * # | | * 230| "single_track" : null, * # | | * 231| "title" : "Spoonful of bees", * # | | * 232| "year" : "1999" * # | | * 233| }, * # | | * 234| { * # | | * 235| "artist" : 1, * # | | * 236| "cdid" : 2, * # | | * 237| "genreid" : 2, * # | | * 238| "single_track" : null, * # | | * 239| "title" : "Forkful of bees", * # | | * 240| "year" : "2001" * # | | * 241| }, * # | | * 242| { * # | | * 243| "artist" : 1, * # | | * 244| "cdid" : 3, * # | | * 245| "genreid" : 2, * # | | * 246| "single_track" : null, * # | | * 247| "title" : "Caterwaulin\' Blues", * # | | * 248| "year" : "1997" * # | | * 249| }, * # | | * 250| { * # | | * 251| "artist" : 2, * # | | * 252| "cdid" : 4, * # | | * 253| "genreid" : 3, * # | | * 254| "single_track" : null, * # | | * 255| "title" : "Generic Manufactured Singles", * # | | * 256| "year" : "2001" * # | | * 257| } * # | | * 258| ] * # | 60|} | 259|} | # | 61| | 260| | # | 62|=== multi type relation in prefetch on item (many_to_many via JSON) ArrayRef Syntax | 261|=== multi type relation in prefetch on item (many_to_many via JSON) ArrayRef Syntax | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 65|GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | 264|GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | # | 66|Accept: application/json | 265|Accept: application/json | # | 67|Response: | 266|Response: | # * 68|404 Not Found * 267|200 OK * # * 69|Content-type: text/plain * 268|Content-type: application/json * # * 70|Not Found * 269|{ * # | | * 270| "cd" : [ * # | | * 271| { * # | | * 272| "artist" : 1, * # | | * 273| "cdid" : 1, * # | | * 274| "genreid" : 1, * # | | * 275| "single_track" : null, * # | | * 276| "title" : "Spoonful of bees", * # | | * 277| "year" : "1999" * # | | * 278| } * # | | * 279| ] * # | | * 280|} * # | | * 281|\n * # | 71|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | 282|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | # | 72|Request: | 283|Request: | # | 73|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | 284|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | # | 74|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | 285|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | # | 75|Accept: application/json | 286|Accept: application/json | # | 76|Response: | 287|Response: | # * 77|404 Not Found * 288|200 OK * # * 78|Content-type: text/plain * 289|Content-type: application/json * # * 79|Not Found * 290|{ * # | | * 291| "cd" : [ * # | | * 292| { * # | | * 293| "artist" : 1, * # | | * 294| "cdid" : 1, * # | | * 295| "genreid" : 1, * # | | * 296| "single_track" : null, * # | | * 297| "title" : "Spoonful of bees", * # | | * 298| "year" : "1999" * # | | * 299| } * # | | * 300| ] * # | | * 301|} * # | | * 302|\n * # | 80|=== filter on nested prefetch | 303|=== filter on nested prefetch | # | 81|Request: | 304|Request: | # | 82|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | 305|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 86|200 OK | 309|200 OK | # | 87|Content-type: application/json | 310|Content-type: application/json | # | 88|{ | 311|{ | # * 89| "artist" : [] * 312| "artist" : [ * # | | * 313| { * # | | * 314| "artistid" : 1, * # | | * 315| "cd_ids" : [ * # | | * 316| 1 * # | | * 317| ], * # | | * 318| "charfield" : null, * # | | * 319| "name" : "Caterwauler McCrae", * # | | * 320| "rank" : 13 * # | | * 321| } * # | | * 322| ], * # | | * 323| "cd" : [ * # | | * 324| { * # | | * 325| "artist" : 1, * # | | * 326| "cdid" : 1, * # | | * 327| "genreid" : 1, * # | | * 328| "single_track" : null, * # | | * 329| "title" : "Spoonful of bees", * # | | * 330| "year" : "1999" * # | | * 331| } * # | | * 332| ] * # | 90|} | 333|} | # | 91| | 334| | # | 92|=== prefetch with query on ambiguous field | 335|=== prefetch with query on ambiguous field | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 97|200 OK | 340|200 OK | # | 98|Content-type: application/json | 341|Content-type: application/json | # | 99|{ | 342|{ | # * 100| "cd" : [] * 343| "artist" : [ * # | | * 344| { * # | | * 345| "artistid" : 1, * # | | * 346| "charfield" : null, * # | | * 347| "name" : "Caterwauler McCrae", * # | | * 348| "rank" : 13 * # | | * 349| } * # | | * 350| ], * # | | * 351| "cd" : [ * # | | * 352| { * # | | * 353| "artist" : 1, * # | | * 354| "artist_id" : 1, * # | | * 355| "cdid" : 1, * # | | * 356| "genreid" : 1, * # | | * 357| "single_track" : null, * # | | * 358| "title" : "Spoonful of bees", * # | | * 359| "year" : "1999" * # | | * 360| }, * # | | * 361| { * # | | * 362| "artist" : 1, * # | | * 363| "artist_id" : 1, * # | | * 364| "cdid" : 2, * # | | * 365| "genreid" : 2, * # | | * 366| "single_track" : null, * # | | * 367| "title" : "Forkful of bees", * # | | * 368| "year" : "2001" * # | | * 369| }, * # | | * 370| { * # | | * 371| "artist" : 1, * # | | * 372| "artist_id" : 1, * # | | * 373| "cdid" : 3, * # | | * 374| "genreid" : 2, * # | | * 375| "single_track" : null, * # | | * 376| "title" : "Caterwaulin\' Blues", * # | | * 377| "year" : "1997" * # | | * 378| } * # | | * 379| ] * # | 101|} | 380|} | # | 102| | 381| | # | 103|=== prefetch on invalid name | 382|=== prefetch on invalid name | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 134|200 OK | 413|200 OK | # | 135|Content-type: application/json | 414|Content-type: application/json | # | 136|{ | 415|{ | # * 137| "cd" : [] * 416| "artist" : [ * # | | * 417| { * # | | * 418| "artistid" : 1 * # | | * 419| } * # | | * 420| ], * # | | * 421| "cd" : [ * # | | * 422| { * # | | * 423| "artist" : 1, * # | | * 424| "artist_id" : 1, * # | | * 425| "cdid" : 1, * # | | * 426| "genre_id" : 1, * # | | * 427| "genreid" : 1 * # | | * 428| }, * # | | * 429| { * # | | * 430| "artist" : 1, * # | | * 431| "artist_id" : 1, * # | | * 432| "cdid" : 2, * # | | * 433| "genre_id" : 2, * # | | * 434| "genreid" : 2 * # | | * 435| } * # | | * 436| ], * # | | * 437| "genre" : [ * # | | * 438| { * # | | * 439| "genreid" : 1 * # | | * 440| }, * # | | * 441| { * # | | * 442| "genreid" : 2 * # | | * 443| } * # | | * 444| ] * # | 138|} | 445|} | # | 139| | 446| | # | 140|=== prefetch on item with partial response of prefetched item | 447|=== prefetch on item with partial response of prefetched item | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 142|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | 449|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | # | 143|Accept: application/json | 450|Accept: application/json | # | 144|Response: | 451|Response: | # * 145|404 Not Found * 452|200 OK * # * 146|Content-type: text/plain * 453|Content-type: application/json * # * 147|Not Found * 454|{ * # | | * 455| "artist" : [ * # | | * 456| { * # | | * 457| "artistid" : 1 * # | | * 458| } * # | | * 459| ], * # | | * 460| "cd" : [ * # | | * 461| { * # | | * 462| "artist" : 1, * # | | * 463| "artist_id" : 1, * # | | * 464| "cdid" : 1, * # | | * 465| "genre_id" : 1, * # | | * 466| "genreid" : 1 * # | | * 467| } * # | | * 468| ], * # | | * 469| "genre" : [ * # | | * 470| { * # | | * 471| "genreid" : 1 * # | | * 472| } * # | | * 473| ] * # | | * 474|} * # | | * 475|\n * # | 148|=== prefetch on item with id primary key #28 | 476|=== prefetch on item with id primary key #28 | # | 149|Request: | 477|Request: | # | 150|GET /country/1?prefetch=cities | 478|GET /country/1?prefetch=cities | # | 151|Accept: application/json | 479|Accept: application/json | # | 152|Response: | 480|Response: | # * 153|404 Not Found * 481|200 OK * # * 154|Content-type: text/plain * 482|Content-type: application/json * # * 155|Not Found * 483|{ * # | | * 484| "city" : [ * # | | * 485| { * # | | * 486| "country_id" : 1, * # | | * 487| "id" : 1, * # | | * 488| "name" : "London" * # | | * 489| } * # | | * 490| ], * # | | * 491| "country" : [ * # | | * 492| { * # | | * 493| "city_ids" : [ * # | | * 494| 1 * # | | * 495| ], * # | | * 496| "id" : 1, * # | | * 497| "name" : "England" * # | | * 498| } * # | | * 499| ] * # | | * 500|} * # | | * 501|\n * # | 156|=== prefetch a complex set with second-tier relationships | 502|=== prefetch a complex set with second-tier relationships | # | 157|Request: | 503|Request: | # | 158|GET /artist/1 PARAMS: prefetch~json=>{"cds"=>"tracks"} | 504|GET /artist/1 PARAMS: prefetch~json=>{"cds"=>"tracks"} | # | 159|GET /artist/1?prefetch~json=%7B%22cds%22%3A%22tracks%22%7D | 505|GET /artist/1?prefetch~json=%7B%22cds%22%3A%22tracks%22%7D | # | 160|Accept: application/json | 506|Accept: application/json | # | 161|Response: | 507|Response: | # * 162|404 Not Found * 508|200 OK * # * 163|Content-type: text/plain * 509|Content-type: application/json * # * 164|Not Found * 510|{ * # | | * 511| "artist" : [ * # | | * 512| { * # | | * 513| "artistid" : 1, * # | | * 514| "cd_ids" : [ * # | | * 515| 1, * # | | * 516| 2, * # | | * 517| 3 * # | | * 518| ], * # | | * 519| "charfield" : null, * # | | * 520| "name" : "Caterwauler McCrae", * # | | * 521| "rank" : 13 * # | | * 522| } * # | | * 523| ], * # | | * 524| "cd" : [ * # | | * 525| { * # | | * 526| "artist" : 1, * # | | * 527| "cdid" : 1, * # | | * 528| "genreid" : 1, * # | | * 529| "single_track" : null, * # | | * 530| "title" : "Spoonful of bees", * # | | * 531| "track_ids" : [ * # | | * 532| 16, * # | | * 533| 17, * # | | * 534| 18 * # | | * 535| ], * # | | * 536| "year" : "1999" * # | | * 537| }, * # | | * 538| { * # | | * 539| "artist" : 1, * # | | * 540| "cdid" : 2, * # | | * 541| "genreid" : 2, * # | | * 542| "single_track" : null, * # | | * 543| "title" : "Forkful of bees", * # | | * 544| "track_ids" : [ * # | | * 545| 4, * # | | * 546| 5, * # | | * 547| 6 * # | | * 548| ], * # | | * 549| "year" : "2001" * # | | * 550| }, * # | | * 551| { * # | | * 552| "artist" : 1, * # | | * 553| "cdid" : 3, * # | | * 554| "genreid" : 2, * # | | * 555| "single_track" : null, * # | | * 556| "title" : "Caterwaulin\' Blues", * # | | * 557| "track_ids" : [ * # | | * 558| 7, * # | | * 559| 8, * # | | * 560| 9 * # | | * 561| ], * # | | * 562| "year" : "1997" * # | | * 563| } * # | | * 564| ], * # | | * 565| "track" : [ * # | | * 566| { * # | | * 567| "cd" : 1, * # | | * 568| "last_updated_at" : null, * # | | * 569| "last_updated_on" : null, * # | | * 570| "position" : 1, * # | | * 571| "title" : "The Bees Knees", * # | | * 572| "trackid" : 16 * # | | * 573| }, * # | | * 574| { * # | | * 575| "cd" : 1, * # | | * 576| "last_updated_at" : null, * # | | * 577| "last_updated_on" : null, * # | | * 578| "position" : 2, * # | | * 579| "title" : "Apiary", * # | | * 580| "trackid" : 17 * # | | * 581| }, * # | | * 582| { * # | | * 583| "cd" : 1, * # | | * 584| "last_updated_at" : null, * # | | * 585| "last_updated_on" : null, * # | | * 586| "position" : 3, * # | | * 587| "title" : "Beehind You", * # | | * 588| "trackid" : 18 * # | | * 589| }, * # | | * 590| { * # | | * 591| "cd" : 2, * # | | * 592| "last_updated_at" : null, * # | | * 593| "last_updated_on" : null, * # | | * 594| "position" : 1, * # | | * 595| "title" : "Stung with Success", * # | | * 596| "trackid" : 4 * # | | * 597| }, * # | | * 598| { * # | | * 599| "cd" : 2, * # | | * 600| "last_updated_at" : null, * # | | * 601| "last_updated_on" : null, * # | | * 602| "position" : 2, * # | | * 603| "title" : "Stripy", * # | | * 604| "trackid" : 5 * # | | * 605| }, * # | | * 606| { * # | | * 607| "cd" : 2, * # | | * 608| "last_updated_at" : null, * # | | * 609| "last_updated_on" : null, * # | | * 610| "position" : 3, * # | | * 611| "title" : "Sticky Honey", * # | | * 612| "trackid" : 6 * # | | * 613| }, * # | | * 614| { * # | | * 615| "cd" : 3, * # | | * 616| "last_updated_at" : null, * # | | * 617| "last_updated_on" : null, * # | | * 618| "position" : 1, * # | | * 619| "title" : "Yowlin", * # | | * 620| "trackid" : 7 * # | | * 621| }, * # | | * 622| { * # | | * 623| "cd" : 3, * # | | * 624| "last_updated_at" : null, * # | | * 625| "last_updated_on" : null, * # | | * 626| "position" : 2, * # | | * 627| "title" : "Howlin", * # | | * 628| "trackid" : 8 * # | | * 629| }, * # | | * 630| { * # | | * 631| "cd" : 3, * # | | * 632| "last_updated_at" : null, * # | | * 633| "last_updated_on" : null, * # | | * 634| "position" : 3, * # | | * 635| "title" : "Fowlin", * # | | * 636| "trackid" : 9 * # | | * 637| } * # | | * 638| ] * # | | * 639|} * # | | * 640|\n * # | 165|' | 641|' | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Prefetch =====' # at t/media-active-model/40-prefetch-req.t line 20. # Looks like you failed 2 tests of 2. t/media-active-model/40-prefetch-req.t .. importing fixtures - deleting existing temp directory /tmp/97vj5DKatq - creating temp dir not ok 1 - 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: 9 # Content-Type: text/plain # --- Name: prefetch on a set using two belongs_to relationships # GET /cd?rows=2&page=1&prefetch=artist,genre # Vary: Accept # Content-Length: 9 # Content-Type: application/json # --- Name: filter on prefetched relation field # GET /cd?prefetch=artist&artist.name=Random+Boy+Band # Vary: Accept # Content-Length: 9 # Content-Type: application/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: 9 # Content-Type: application/json # --- Name: multi type relation (has_many) in prefetch on item # GET /artist/1?prefetch=cds&order=cds.cdid # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- 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: 13 # Content-Type: application/json # --- Name: multi type relation in prefetch on item (many_to_many via JSON) ArrayRef Syntax # GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax # GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- 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: 13 # Content-Type: application/json # --- Name: prefetch with query on ambiguous field # GET /cd/?me.artist=1&prefetch=artist # Vary: Accept # Content-Length: 9 # Content-Type: application/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: 9 # Content-Type: application/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: 9 # Content-Type: text/plain # --- Name: prefetch on item with id primary key #28 # GET /country/1?prefetch=cities # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: prefetch a complex set with second-tier relationships # GET /artist/1?prefetch~json=%7B%22cds%22%3A%22tracks%22%7D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain not ok 1 - 40-prefetch-req.t output in t/media-active-model/40-prefetch-req.got matches t/media-active-model/40-prefetch-req.exp 1..1 not ok 2 - ===== Prefetch ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22f00), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23488), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66ac0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66ac0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d678), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b18)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d678), Moose::Meta::Instance=HASH(0x25ffd98), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b18), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eedd0), HASH(0x11eea28)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x25416b0)) 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(0x25416b0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x25416b0)) 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(0x1c28f98)) 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/media-hal/10-basics-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '10-basics-req.t output in t/media-hal/10-basics-req.got matches t/media-hal/10-basics-req.exp' # at t/lib/TestDS.pm line 67. # +---+---------------------------------------------+----+---------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 3|GET /artist/1 | 3|GET /artist/1 | # | 4|Accept: application/hal+json | 4|Accept: application/hal+json | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/hal+json * # * 8|Not Found * 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 * # | 9|=== get different single item | 26|=== get different single item | # | 10|Request: | 27|Request: | # | 11|GET /artist/2 | 28|GET /artist/2 | # | 12|Accept: application/hal+json | 29|Accept: application/hal+json | # | 13|Response: | 30|Response: | # * 14|404 Not Found * 31|200 OK * # * 15|Content-type: text/plain * 32|Content-type: application/hal+json * # * 16|Not Found * 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 * # | 17|=== get set of items | 51|=== get set of items | # | 18|Request: | 52|Request: | # | 19|GET /artist | 53|GET /artist | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 23|Content-type: application/hal+json | 57|Content-type: application/hal+json | # | 24|{ | 58|{ | # | 25| "_embedded" : { | 59| "_embedded" : { | # * 26| "artist" : [] * 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| ] * # | 27| }, | 164| }, | # | 28| "_links" : { | 165| "_links" : { | # | 29| "self" : { | 166| "self" : { | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 38|GET /gig/1/2014-01-01T01:01:01Z | 175|GET /gig/1/2014-01-01T01:01:01Z | # | 39|Accept: application/hal+json | 176|Accept: application/hal+json | # | 40|Response: | 177|Response: | # * 41|404 Not Found * 178|200 OK * # * 42|Content-type: text/plain * 179|Content-type: application/hal+json * # * 43|Not Found * 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 * # | 44|=== get different item with multi-field key | 193|=== get different item with multi-field key | # | 45|Request: | 194|Request: | # | 46|GET /gig/2/2014-06-30T19:00:00Z | 195|GET /gig/2/2014-06-30T19:00:00Z | # | 47|Accept: application/hal+json | 196|Accept: application/hal+json | # | 48|Response: | 197|Response: | # * 49|404 Not Found * 198|200 OK * # * 50|Content-type: text/plain * 199|Content-type: application/hal+json * # * 51|Not Found * 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 * # | 52|=== get view data | 213|=== get view data | # | 53|Request: | 214|Request: | # | 54|GET /classic_albums | 215|GET /classic_albums | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 58|Content-type: application/hal+json | 219|Content-type: application/hal+json | # | 59|{ | 220|{ | # | 60| "_embedded" : { | 221| "_embedded" : { | # * 61| "classic_albums" : [] * 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| ] * # | 62| }, | 269| }, | # | 63| "_links" : { | 270| "_links" : { | # | 64| "self" : { | 271| "self" : { | # +---+---------------------------------------------+----+---------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== basics - specs =====' # at t/media-hal/10-basics-req.t line 18. # Looks like you failed 2 tests of 2. t/media-hal/10-basics-req.t ............. importing fixtures - deleting existing temp directory /tmp/L5AqrDuBtr - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== basics - specs ===== # --- Config: # --- Name: get single item # GET /artist/1 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different single item # GET /artist/2 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get set of items # GET /artist # Vary: Accept # Content-Length: 116 # Content-Type: application/hal+json # --- Name: get item with multi-field key # GET /gig/1/2014-01-01T01:01:01Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different item with multi-field key # GET /gig/2/2014-06-30T19:00:00Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get view data # GET /classic_albums # Vary: Accept # Content-Length: 139 # Content-Type: application/hal+json not ok 1 - 10-basics-req.t output in t/media-hal/10-basics-req.got matches t/media-hal/10-basics-req.exp 1..1 not ok 2 - ===== basics - specs ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ea0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23428), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66a70), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66a70), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d658), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25419f8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d658), Moose::Meta::Instance=HASH(0x25ffc48), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25419f8), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eec60), HASH(0x11ee8b8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x253b748)) 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(0x253b748)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x253b748)) 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(0x1c28db8)) 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/media-hal/11-paging-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '11-paging-req.t output in t/media-hal/11-paging-req.got matches t/media-hal/11-paging-req.exp' # at t/lib/TestDS.pm line 67. # +---+-------------------------------------------------------+----+-------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+-------------------------------------------------------+----+-------------------------------------------------------+ # | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json | # | 8|{ | 8|{ | # | 9| "_embedded" : { | 9| "_embedded" : { | # * 10| "artist" : [] * 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| ] * # | 11| }, | 29| }, | # | 12| "_links" : { | 30| "_links" : { | # | | * 31| "next" : { * # | | * 32| "href" : "/artist?rows=1&page=2" * # | | * 33| }, * # | 13| "self" : { | 34| "self" : { | # | 14| "href" : "/artist?rows=1&page=1", | 35| "href" : "/artist?rows=1&page=1", | # | 15| "title" : "TestSchema::Result::Artist" | 36| "title" : "TestSchema::Result::Artist" | # +---+-------------------------------------------------------+----+-------------------------------------------------------+ # | 26|Content-type: application/hal+json | 47|Content-type: application/hal+json | # | 27|{ | 48|{ | # | 28| "_embedded" : { | 49| "_embedded" : { | # * 29| "artist" : [] * 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| ] * # | 30| }, | 86| }, | # | 31| "_links" : { | 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| }, * # | 32| "self" : { | 94| "self" : { | # | 33| "href" : "/artist?rows=2&with=count&page=1", | 95| "href" : "/artist?rows=2&with=count&page=1", | # | 34| "title" : "TestSchema::Result::Artist" | 96| "title" : "TestSchema::Result::Artist" | # | 35| } | 97| } | # | 36| }, | 98| }, | # | 37| "_meta" : { | 99| "_meta" : { | # * 38| "count" : 0 * 100| "count" : 6 * # | 39| } | 101| } | # | 40|} | 102|} | # | 41| | 103| | # +---+-------------------------------------------------------+----+-------------------------------------------------------+ # | 48|Content-type: application/hal+json | 110|Content-type: application/hal+json | # | 49|{ | 111|{ | # | 50| "_embedded" : { | 112| "_embedded" : { | # * 51| "artist" : [] * 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| ] * # | 52| }, | 149| }, | # | 53| "_links" : { | 150| "_links" : { | # | 54| "first" : { | 151| "first" : { | # | 55| "href" : "/artist?rows=2&page=1" | 152| "href" : "/artist?rows=2&page=1" | # | | * 153| }, * # | | * 154| "next" : { * # | | * 155| "href" : "/artist?rows=2&page=3" * # | 56| }, | 156| }, | # | 57| "prev" : { | 157| "prev" : { | # | 58| "href" : "/artist?rows=2&page=1" | 158| "href" : "/artist?rows=2&page=1" | # +---+-------------------------------------------------------+----+-------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Paging =====' # at t/media-hal/11-paging-req.t line 17. # Looks like you failed 2 tests of 2. t/media-hal/11-paging-req.t ............. importing fixtures - deleting existing temp directory /tmp/jsziQ_2YFF - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Paging ===== # --- Config: # --- Name: get 1 row # GET /artist?rows=1 # Vary: Accept # Content-Length: 115 # Content-Type: application/hal+json # --- Name: get 2 rows with count # GET /artist?rows=2&with=count # Vary: Accept # Content-Length: 146 # Content-Type: application/hal+json # --- Name: get 2 rows from second 'page' # GET /artist?rows=2&page=2 # Vary: Accept # Content-Length: 196 # Content-Type: application/hal+json not ok 1 - 11-paging-req.t output in t/media-hal/11-paging-req.got matches t/media-hal/11-paging-req.exp 1..1 not ok 2 - ===== Paging ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22f10), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23498), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66ba0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66ba0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d7c8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b68)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d7c8), Moose::Meta::Instance=HASH(0x25ffd48), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b68), HASH(0x11eead8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eee80), HASH(0x11eead8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eee80), HASH(0x11eead8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eee80), HASH(0x11eead8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x25418c8)) 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(0x25418c8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x25418c8)) 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(0x1c28f18)) 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/media-hal/12-searching-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '12-searching-req.t output in t/media-hal/12-searching-req.got matches t/media-hal/12-searching-req.exp' # at t/lib/TestDS.pm line 67. # +---+------------------------------------+----+----------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+------------------------------------+----+----------------------------------------------+ # | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json | # | 8|{ | 8|{ | # | 9| "_embedded" : { | 9| "_embedded" : { | # * 10| "artist" : [] * 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| ] * # | 11| }, | 29| }, | # | 12| "_links" : { | 30| "_links" : { | # | 13| "self" : { | 31| "self" : { | # +---+------------------------------------+----+----------------------------------------------+ # | 27|Content-type: application/hal+json | 45|Content-type: application/hal+json | # | 28|{ | 46|{ | # | 29| "_embedded" : { | 47| "_embedded" : { | # * 30| "artist" : [] * 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| ] * # | 31| }, | 84| }, | # | 32| "_links" : { | 85| "_links" : { | # | 33| "self" : { | 86| "self" : { | # +---+------------------------------------+----+----------------------------------------------+ # | 47|Content-type: application/hal+json | 100|Content-type: application/hal+json | # | 48|{ | 101|{ | # | 49| "_embedded" : { | 102| "_embedded" : { | # * 50| "artist" : [] * 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| ] * # | 51| }, | 139| }, | # | 52| "_links" : { | 140| "_links" : { | # | 53| "self" : { | 141| "self" : { | # +---+------------------------------------+----+----------------------------------------------+ # Looks like you failed 1 test of 2. # Failed test '===== Paging =====' # at t/media-hal/12-searching-req.t line 18. # Looks like you failed 2 tests of 2. t/media-hal/12-searching-req.t .......... importing fixtures - deleting existing temp directory /tmp/SbnOpLM_qr - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Paging ===== # --- Config: # --- Name: get 1 row from set by qualifying the key # GET /artist?me.artistid=2 # Vary: Accept # Content-Length: 130 # Content-Type: application/hal+json # --- Name: get specific rows via json array # GET /artist?me.artistid~json=%5B1%2C3%5D # Vary: Accept # Content-Length: 145 # 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: 156 # 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: 135 # 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-req.t output in t/media-hal/12-searching-req.got matches t/media-hal/12-searching-req.exp 1..2 not ok 2 - ===== Paging ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23060), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f235e8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66c50), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66c50), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d878), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541c98)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d878), Moose::Meta::Instance=HASH(0x25fff28), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541c98), HASH(0x11eecd8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef080), HASH(0x11eecd8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef080), HASH(0x11eecd8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef080), HASH(0x11eecd8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541830)) 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(0x2541830)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541830)) 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(0x1c290e8)) 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/media-hal/13-fields-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test 'set has at least 2 items' # at t/media-hal/13-fields-req.t line 21. # '0' # >= # '2' # Failed test '/artist includes 1' # at t/media-hal/13-fields-req.t line 24. # got: '' # expected: 'HASH' # Failed test '/artist includes 2' # at t/media-hal/13-fields-req.t line 24. # got: '' # expected: 'HASH' # Failed test '/artist includes 3' # at t/media-hal/13-fields-req.t line 24. # got: '' # expected: 'HASH' # Failed test '/artist data looks sane' # at t/media-hal/13-fields-req.t line 25. # Failed test at t/media-hal/13-fields-req.t line 30. # status doesn't match, expected HTTP status code '200', got 404 # 404 Not Found # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # # Not Found # Failed test 'data isn't a hash' # at t/media-hal/13-fields-req.t line 31. # got: '' # expected: 'HASH' # Failed test 'set has less than 2 attributes' # at t/media-hal/13-fields-req.t line 31. # '0' # >= # '2' # Failed test 'artistid' # at t/media-hal/13-fields-req.t line 32. # got: undef # expected: '1' Use of uninitialized value in hash element at t/media-hal/13-fields-req.t line 33. # Failed test 'data matches' # at t/media-hal/13-fields-req.t line 33. # +----+-----+----------+ # | Elt|Got |Expected | # +----+-----+----------+ # * 0|{} |undef * # +----+-----+----------+ # Failed test at t/media-hal/13-fields-req.t line 37. # status doesn't match, expected HTTP status code '200', got 404 # 404 Not Found # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # # Not Found # Failed test 'data isn't a hash' # at t/media-hal/13-fields-req.t line 38. # got: '' # expected: 'HASH' # Failed test 'set has less than 2 attributes' # at t/media-hal/13-fields-req.t line 38. # '0' # >= # '2' # Failed test 'artistid' # at t/media-hal/13-fields-req.t line 39. # got: undef # expected: '2' # Failed test 'has rank field' # at t/media-hal/13-fields-req.t line 40. # Looks like you failed 15 tests of 21. # Failed test '===== Get with fields param =====' # at t/media-hal/13-fields-req.t line 42. # Looks like you failed 2 tests of 2. t/media-hal/13-fields-req.t ............. importing fixtures - deleting existing temp directory /tmp/VdwtYiqDjT - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Get with fields param ===== # GET /artist?fields=artistid,name ok 1 ok 2 - response is a ref ok 3 - data isn't a hash ok 4 - _embedded isn't hash ok 5 - _embedded has artist array not ok 6 - set has at least 2 items not ok 7 - /artist includes 1 not ok 8 - /artist includes 2 not ok 9 - /artist includes 3 not ok 10 - /artist data looks sane ok 11 - rank fields not preset # GET /artist/1?fields=artistid,name not ok 12 not ok 13 - data isn't a hash not ok 14 - set has less than 2 attributes not ok 15 - artistid not ok 16 - data matches # GET /artist/2?fields=artistid,rank not ok 17 not ok 18 - data isn't a hash not ok 19 - set has less than 2 attributes not ok 20 - artistid not ok 21 - has rank field 1..21 not ok 2 - ===== Get with fields param ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ce0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23268), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66870), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66870), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d498), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541718)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d498), Moose::Meta::Instance=HASH(0x25ff948), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541718), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541478)) 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(0x2541478)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541478)) 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(0x1c28d18)) 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/media-hal/14-distinct-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test 'set has at least 4 items' # at t/media-hal/14-distinct-req.t line 20. # '0' # >= # '4' # Failed test at t/media-hal/14-distinct-req.t line 21. # Compared array length of $data # got : array with 0 element(s) # expect : array with 4 element(s) # Looks like you failed 2 tests of 8. # Failed test '===== GET distinct =====' # at t/media-hal/14-distinct-req.t line 24. # Looks like you failed 2 tests of 2. t/media-hal/14-distinct-req.t ........... importing fixtures - deleting existing temp directory /tmp/WOCUoWlCHl - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== GET distinct ===== # GET /cd?fields=year&order=year&distinct=1 ok 1 ok 2 - response is a ref ok 3 - data isn't a hash ok 4 - _embedded isn't hash ok 5 - _embedded has cd array not ok 6 - set has at least 4 items ok 7 - set has at most 4 items not ok 8 1..8 not ok 2 - ===== GET distinct ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22e60), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f233e8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66a50), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66a50), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d688), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b28)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d688), Moose::Meta::Instance=HASH(0x25ffda8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541b28), HASH(0x11eea48)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eedf0), HASH(0x11eea48)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eedf0), HASH(0x11eea48)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eedf0), HASH(0x11eea48)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541888)) 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(0x2541888)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541888)) 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(0x1c28f78)) 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/media-hal/30-ordering-req.t line 4 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '30-ordering-req.t output in t/media-hal/30-ordering-req.got matches t/media-hal/30-ordering-req.exp' # at t/lib/TestDS.pm line 67. # +---+------------------------------------+----+-------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+------------------------------------+----+-------------------------------------------------------+ # | 7|Content-type: application/hal+json | 7|Content-type: application/hal+json | # | 8|{ | 8|{ | # | 9| "_embedded" : { | 9| "_embedded" : { | # * 10| "cd" : [] * 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| ] * # | 11| }, | 137| }, | # | 12| "_links" : { | 138| "_links" : { | # | 13| "self" : { | 139| "self" : { | # +---+------------------------------------+----+-------------------------------------------------------+ # | 26|Content-type: application/hal+json | 152|Content-type: application/hal+json | # | 27|{ | 153|{ | # | 28| "_embedded" : { | 154| "_embedded" : { | # * 29| "cd" : [] * 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| ] * # | 30| }, | 282| }, | # | 31| "_links" : { | 283| "_links" : { | # | 32| "self" : { | 284| "self" : { | # +---+------------------------------------+----+-------------------------------------------------------+ # | 45|Content-type: application/hal+json | 297|Content-type: application/hal+json | # | 46|{ | 298|{ | # | 47| "_embedded" : { | 299| "_embedded" : { | # * 48| "cd" : [] * 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| ] * # | 49| }, | 427| }, | # | 50| "_links" : { | 428| "_links" : { | # | 51| "self" : { | 429| "self" : { | # +---+------------------------------------+----+-------------------------------------------------------+ # | 64|Content-type: application/hal+json | 442|Content-type: application/hal+json | # | 65|{ | 443|{ | # | 66| "_embedded" : { | 444| "_embedded" : { | # * 67| "cd" : [] * 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| ] * # | 68| }, | 612| }, | # | 69| "_links" : { | 613| "_links" : { | # | 70| "self" : { | 614| "self" : { | # +---+------------------------------------+----+-------------------------------------------------------+ # | 83|Content-type: application/hal+json | 627|Content-type: application/hal+json | # | 84|{ | 628|{ | # | 85| "_embedded" : { | 629| "_embedded" : { | # * 86| "cd" : [] * 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| ] * # | 87| }, | 817| }, | # | 88| "_links" : { | 818| "_links" : { | # | 89| "self" : { | 819| "self" : { | # +---+------------------------------------+----+-------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Ordering =====' # at t/media-hal/30-ordering-req.t line 19. # Looks like you failed 2 tests of 2. t/media-hal/30-ordering-req.t ........... importing fixtures - deleting existing temp directory /tmp/LFdwzjsFNr - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Ordering ===== # --- Config: # --- Name: order by PK asc # GET /cd?order=me.cdid # Vary: Accept # Content-Length: 104 # Content-Type: application/hal+json # --- Name: order by PK desc # GET /cd?order=me.cdid%20desc # Vary: Accept # Content-Length: 104 # 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: 104 # 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: 104 # 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: 104 # Content-Type: application/hal+json not ok 1 - 30-ordering-req.t output in t/media-hal/30-ordering-req.got matches t/media-hal/30-ordering-req.exp 1..1 not ok 2 - ===== Ordering ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23b30), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f240b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2e8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2e8), Moose::Meta::Instance=HASH(0x2600978), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef7c0), HASH(0x11ef418)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x253c428)) 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(0x253c428)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x253c428)) 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(0x1c29b08)) 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/media-hal/40-prefetch-req.t line 7 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '40-prefetch-req.t output in t/media-hal/40-prefetch-req.got matches t/media-hal/40-prefetch-req.exp' # at t/lib/TestDS.pm line 67. # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 3|GET /cd/1?prefetch=artist,genre | 3|GET /cd/1?prefetch=artist,genre | # | 4|Accept: application/hal+json | 4|Accept: application/hal+json | # | 5|Response: | 5|Response: | # * 6|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/hal+json * # * 8|Not Found * 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 * # | 9|=== prefetch on a set using two belongs_to relationships | 46|=== prefetch on a set using two belongs_to relationships | # | 10|Request: | 47|Request: | # | 11|GET /cd?rows=2&page=1&prefetch=artist,genre | 48|GET /cd?rows=2&page=1&prefetch=artist,genre | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 15|Content-type: application/hal+json | 52|Content-type: application/hal+json | # | 16|{ | 53|{ | # | 17| "_embedded" : { | 54| "_embedded" : { | # * 18| "cd" : [] * 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| ] * # | 19| }, | 131| }, | # | 20| "_links" : { | 132| "_links" : { | # | | * 133| "next" : { * # | | * 134| "href" : "/cd?rows=2&page=2" * # | | * 135| }, * # | 21| "self" : { | 136| "self" : { | # | 22| "href" : "/cd?rows=2&page=1", | 137| "href" : "/cd?rows=2&page=1", | # | 23| "title" : "TestSchema::Result::CD" | 138| "title" : "TestSchema::Result::CD" | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 34|Content-type: application/hal+json | 149|Content-type: application/hal+json | # | 35|{ | 150|{ | # | 36| "_embedded" : { | 151| "_embedded" : { | # * 37| "cd" : [] * 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| ] * # | 38| }, | 187| }, | # | 39| "_links" : { | 188| "_links" : { | # | 40| "self" : { | 189| "self" : { | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 54|Content-type: application/hal+json | 203|Content-type: application/hal+json | # | 55|{ | 204|{ | # | 56| "_embedded" : { | 205| "_embedded" : { | # * 57| "cd" : [] * 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| ] * # | 58| }, | 241| }, | # | 59| "_links" : { | 242| "_links" : { | # | 60| "self" : { | 243| "self" : { | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 69|GET /artist/1?prefetch=cds&order=cds.cdid | 252|GET /artist/1?prefetch=cds&order=cds.cdid | # | 70|Accept: application/hal+json | 253|Accept: application/hal+json | # | 71|Response: | 254|Response: | # * 72|404 Not Found * 255|200 OK * # * 73|Content-type: text/plain * 256|Content-type: application/hal+json * # * 74|Not Found * 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 * # | 75|=== multi type relation (has_many) in prefetch on set | 354|=== multi type relation (has_many) in prefetch on set | # | 76|Request: | 355|Request: | # | 77|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | 356|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 81|Content-type: application/hal+json | 360|Content-type: application/hal+json | # | 82|{ | 361|{ | # | 83| "_embedded" : { | 362| "_embedded" : { | # * 84| "artist" : [] * 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| ] * # | 85| }, | 507| }, | # | 86| "_links" : { | 508| "_links" : { | # | | * 509| "next" : { * # | | * 510| "href" : "/artist?rows=2&page=2" * # | | * 511| }, * # | 87| "self" : { | 512| "self" : { | # | 88| "href" : "/artist?rows=2&page=1", | 513| "href" : "/artist?rows=2&page=1", | # | 89| "title" : "TestSchema::Result::Artist" | 514| "title" : "TestSchema::Result::Artist" | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 97|GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | 522|GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | # | 98|Accept: application/hal+json | 523|Accept: application/hal+json | # | 99|Response: | 524|Response: | # * 100|404 Not Found * 525|200 OK * # * 101|Content-type: text/plain * 526|Content-type: application/hal+json * # * 102|Not Found * 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 * # | 103|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | 623|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | # | 104|Request: | 624|Request: | # | 105|GET /cd/1?sort=cd_to_producer.producer PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | 625|GET /cd/1?sort=cd_to_producer.producer PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | # | 106|GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | 626|GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | # | 107|Accept: application/hal+json | 627|Accept: application/hal+json | # | 108|Response: | 628|Response: | # * 109|404 Not Found * 629|200 OK * # * 110|Content-type: text/plain * 630|Content-type: application/hal+json * # * 111|Not Found * 631|{ * # | | * 632| "_embedded" : { * # | | * 633| "cd_to_producer" : [ * # | | * 634| { * # | | * 635| "_embedded" : { * # | | * 636| "producer" : { * # | | * 637| "name" : "Matt S Trout", * # | | * 638| "producerid" : 1 * # | | * 639| } * # | | * 640| }, * # | | * 641| "_links" : { * # | | * 642| "cd" : { * # | | * 643| "href" : "/cd/1" * # | | * 644| }, * # | | * 645| "producer" : { * # | | * 646| "href" : "/producer/1" * # | | * 647| }, * # | | * 648| "self" : { * # | | * 649| "href" : "/cd_to_producer/1/1" * # | | * 650| } * # | | * 651| }, * # | | * 652| "attribute" : null, * # | | * 653| "cd" : 1, * # | | * 654| "producer" : 1 * # | | * 655| }, * # | | * 656| { * # | | * 657| "_embedded" : { * # | | * 658| "producer" : { * # | | * 659| "name" : "Bob The Builder", * # | | * 660| "producerid" : 2 * # | | * 661| } * # | | * 662| }, * # | | * 663| "_links" : { * # | | * 664| "cd" : { * # | | * 665| "href" : "/cd/1" * # | | * 666| }, * # | | * 667| "producer" : { * # | | * 668| "href" : "/producer/2" * # | | * 669| }, * # | | * 670| "self" : { * # | | * 671| "href" : "/cd_to_producer/1/2" * # | | * 672| } * # | | * 673| }, * # | | * 674| "attribute" : null, * # | | * 675| "cd" : 1, * # | | * 676| "producer" : 2 * # | | * 677| }, * # | | * 678| { * # | | * 679| "_embedded" : { * # | | * 680| "producer" : { * # | | * 681| "name" : "Fred The Phenotype", * # | | * 682| "producerid" : 3 * # | | * 683| } * # | | * 684| }, * # | | * 685| "_links" : { * # | | * 686| "cd" : { * # | | * 687| "href" : "/cd/1" * # | | * 688| }, * # | | * 689| "producer" : { * # | | * 690| "href" : "/producer/3" * # | | * 691| }, * # | | * 692| "self" : { * # | | * 693| "href" : "/cd_to_producer/1/3" * # | | * 694| } * # | | * 695| }, * # | | * 696| "attribute" : null, * # | | * 697| "cd" : 1, * # | | * 698| "producer" : 3 * # | | * 699| } * # | | * 700| ] * # | | * 701| }, * # | | * 702| "_links" : { * # | | * 703| "artist" : { * # | | * 704| "href" : "/artist/1" * # | | * 705| }, * # | | * 706| "cd_to_producer" : { * # | | * 707| "href" : "/cd_to_producer?me.cd=1" * # | | * 708| }, * # | | * 709| "genre" : { * # | | * 710| "href" : "/genre/1" * # | | * 711| }, * # | | * 712| "self" : { * # | | * 713| "href" : "/cd/1" * # | | * 714| }, * # | | * 715| "tracks" : { * # | | * 716| "href" : "/track?me.cd=1" * # | | * 717| } * # | | * 718| }, * # | | * 719| "artist" : 1, * # | | * 720| "cdid" : 1, * # | | * 721| "genreid" : 1, * # | | * 722| "single_track" : null, * # | | * 723| "title" : "Spoonful of bees", * # | | * 724| "year" : "1999" * # | | * 725|} * # | | * 726|\n * # | 112|=== filter on nested prefetch | 727|=== filter on nested prefetch | # | 113|Request: | 728|Request: | # | 114|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | 729|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 119|Content-type: application/hal+json | 734|Content-type: application/hal+json | # | 120|{ | 735|{ | # | 121| "_embedded" : { | 736| "_embedded" : { | # * 122| "artist" : [] * 737| "artist" : [ * # | | * 738| { * # | | * 739| "_embedded" : { * # | | * 740| "cds" : [ * # | | * 741| { * # | | * 742| "_embedded" : { * # | | * 743| "cd_to_producer" : [ * # | | * 744| { * # | | * 745| "_embedded" : { * # | | * 746| "producer" : { * # | | * 747| "name" : "Matt S Trout", * # | | * 748| "producerid" : 1 * # | | * 749| } * # | | * 750| }, * # | | * 751| "_links" : { * # | | * 752| "cd" : { * # | | * 753| "href" : "/cd/1" * # | | * 754| }, * # | | * 755| "producer" : { * # | | * 756| "href" : "/producer/1" * # | | * 757| }, * # | | * 758| "self" : { * # | | * 759| "href" : "/cd_to_producer/1/1" * # | | * 760| } * # | | * 761| }, * # | | * 762| "attribute" : null, * # | | * 763| "cd" : 1, * # | | * 764| "producer" : 1 * # | | * 765| } * # | | * 766| ] * # | | * 767| }, * # | | * 768| "_links" : { * # | | * 769| "artist" : { * # | | * 770| "href" : "/artist/1" * # | | * 771| }, * # | | * 772| "cd_to_producer" : { * # | | * 773| "href" : "/cd_to_producer?me.cd=1" * # | | * 774| }, * # | | * 775| "genre" : { * # | | * 776| "href" : "/genre/1" * # | | * 777| }, * # | | * 778| "self" : { * # | | * 779| "href" : "/cd/1" * # | | * 780| }, * # | | * 781| "tracks" : { * # | | * 782| "href" : "/track?me.cd=1" * # | | * 783| } * # | | * 784| }, * # | | * 785| "artist" : 1, * # | | * 786| "cdid" : 1, * # | | * 787| "genreid" : 1, * # | | * 788| "single_track" : null, * # | | * 789| "title" : "Spoonful of bees", * # | | * 790| "year" : "1999" * # | | * 791| } * # | | * 792| ] * # | | * 793| }, * # | | * 794| "_links" : { * # | | * 795| "cds" : { * # | | * 796| "href" : "/cd?me.artist=1" * # | | * 797| }, * # | | * 798| "cds_cref_cond" : { * # | | * 799| "href" : "/cd/1" * # | | * 800| }, * # | | * 801| "self" : { * # | | * 802| "href" : "/artist/1" * # | | * 803| } * # | | * 804| }, * # | | * 805| "artistid" : 1, * # | | * 806| "charfield" : null, * # | | * 807| "name" : "Caterwauler McCrae", * # | | * 808| "rank" : 13 * # | | * 809| } * # | | * 810| ] * # | 123| }, | 811| }, | # | 124| "_links" : { | 812| "_links" : { | # | 125| "self" : { | 813| "self" : { | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 138|Content-type: application/hal+json | 826|Content-type: application/hal+json | # | 139|{ | 827|{ | # | 140| "_embedded" : { | 828| "_embedded" : { | # * 141| "cd" : [] * 829| "cd" : [ * # | | * 830| { * # | | * 831| "_embedded" : { * # | | * 832| "artist" : { * # | | * 833| "artistid" : 1, * # | | * 834| "charfield" : null, * # | | * 835| "name" : "Caterwauler McCrae", * # | | * 836| "rank" : 13 * # | | * 837| } * # | | * 838| }, * # | | * 839| "_links" : { * # | | * 840| "artist" : { * # | | * 841| "href" : "/artist/1" * # | | * 842| }, * # | | * 843| "cd_to_producer" : { * # | | * 844| "href" : "/cd_to_producer?me.cd=1" * # | | * 845| }, * # | | * 846| "genre" : { * # | | * 847| "href" : "/genre/1" * # | | * 848| }, * # | | * 849| "self" : { * # | | * 850| "href" : "/cd/1" * # | | * 851| }, * # | | * 852| "tracks" : { * # | | * 853| "href" : "/track?me.cd=1" * # | | * 854| } * # | | * 855| }, * # | | * 856| "artist" : 1, * # | | * 857| "cdid" : 1, * # | | * 858| "genreid" : 1, * # | | * 859| "single_track" : null, * # | | * 860| "title" : "Spoonful of bees", * # | | * 861| "year" : "1999" * # | | * 862| }, * # | | * 863| { * # | | * 864| "_embedded" : { * # | | * 865| "artist" : { * # | | * 866| "artistid" : 1, * # | | * 867| "charfield" : null, * # | | * 868| "name" : "Caterwauler McCrae", * # | | * 869| "rank" : 13 * # | | * 870| } * # | | * 871| }, * # | | * 872| "_links" : { * # | | * 873| "artist" : { * # | | * 874| "href" : "/artist/1" * # | | * 875| }, * # | | * 876| "cd_to_producer" : { * # | | * 877| "href" : "/cd_to_producer?me.cd=2" * # | | * 878| }, * # | | * 879| "genre" : { * # | | * 880| "href" : "/genre/2" * # | | * 881| }, * # | | * 882| "self" : { * # | | * 883| "href" : "/cd/2" * # | | * 884| }, * # | | * 885| "tracks" : { * # | | * 886| "href" : "/track?me.cd=2" * # | | * 887| } * # | | * 888| }, * # | | * 889| "artist" : 1, * # | | * 890| "cdid" : 2, * # | | * 891| "genreid" : 2, * # | | * 892| "single_track" : null, * # | | * 893| "title" : "Forkful of bees", * # | | * 894| "year" : "2001" * # | | * 895| }, * # | | * 896| { * # | | * 897| "_embedded" : { * # | | * 898| "artist" : { * # | | * 899| "artistid" : 1, * # | | * 900| "charfield" : null, * # | | * 901| "name" : "Caterwauler McCrae", * # | | * 902| "rank" : 13 * # | | * 903| } * # | | * 904| }, * # | | * 905| "_links" : { * # | | * 906| "artist" : { * # | | * 907| "href" : "/artist/1" * # | | * 908| }, * # | | * 909| "cd_to_producer" : { * # | | * 910| "href" : "/cd_to_producer?me.cd=3" * # | | * 911| }, * # | | * 912| "genre" : { * # | | * 913| "href" : "/genre/2" * # | | * 914| }, * # | | * 915| "self" : { * # | | * 916| "href" : "/cd/3" * # | | * 917| }, * # | | * 918| "tracks" : { * # | | * 919| "href" : "/track?me.cd=3" * # | | * 920| } * # | | * 921| }, * # | | * 922| "artist" : 1, * # | | * 923| "cdid" : 3, * # | | * 924| "genreid" : 2, * # | | * 925| "single_track" : null, * # | | * 926| "title" : "Caterwaulin\' Blues", * # | | * 927| "year" : "1997" * # | | * 928| } * # | | * 929| ] * # | 142| }, | 930| }, | # | 143| "_links" : { | 931| "_links" : { | # | 144| "self" : { | 932| "self" : { | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 183|Content-type: application/hal+json | 971|Content-type: application/hal+json | # | 184|{ | 972|{ | # | 185| "_embedded" : { | 973| "_embedded" : { | # * 186| "cd" : [] * 974| "cd" : [ * # | | * 975| { * # | | * 976| "_embedded" : { * # | | * 977| "artist" : { * # | | * 978| "artistid" : 1 * # | | * 979| }, * # | | * 980| "genre" : { * # | | * 981| "genreid" : 1 * # | | * 982| } * # | | * 983| }, * # | | * 984| "_links" : { * # | | * 985| "artist" : { * # | | * 986| "href" : "/artist/1" * # | | * 987| }, * # | | * 988| "cd_to_producer" : { * # | | * 989| "href" : "/cd_to_producer?me.cd=1" * # | | * 990| }, * # | | * 991| "genre" : { * # | | * 992| "href" : "/genre/1" * # | | * 993| }, * # | | * 994| "self" : { * # | | * 995| "href" : "/cd/1" * # | | * 996| }, * # | | * 997| "tracks" : { * # | | * 998| "href" : "/track?me.cd=1" * # | | * 999| } * # | | * 1000| }, * # | | * 1001| "artist" : 1, * # | | * 1002| "cdid" : 1, * # | | * 1003| "genreid" : 1 * # | | * 1004| }, * # | | * 1005| { * # | | * 1006| "_embedded" : { * # | | * 1007| "artist" : { * # | | * 1008| "artistid" : 1 * # | | * 1009| }, * # | | * 1010| "genre" : { * # | | * 1011| "genreid" : 2 * # | | * 1012| } * # | | * 1013| }, * # | | * 1014| "_links" : { * # | | * 1015| "artist" : { * # | | * 1016| "href" : "/artist/1" * # | | * 1017| }, * # | | * 1018| "cd_to_producer" : { * # | | * 1019| "href" : "/cd_to_producer?me.cd=2" * # | | * 1020| }, * # | | * 1021| "genre" : { * # | | * 1022| "href" : "/genre/2" * # | | * 1023| }, * # | | * 1024| "self" : { * # | | * 1025| "href" : "/cd/2" * # | | * 1026| }, * # | | * 1027| "tracks" : { * # | | * 1028| "href" : "/track?me.cd=2" * # | | * 1029| } * # | | * 1030| }, * # | | * 1031| "artist" : 1, * # | | * 1032| "cdid" : 2, * # | | * 1033| "genreid" : 2 * # | | * 1034| } * # | | * 1035| ] * # | 187| }, | 1036| }, | # | 188| "_links" : { | 1037| "_links" : { | # | | * 1038| "next" : { * # | | * 1039| "href" : "/cd?rows=2&page=2" * # | | * 1040| }, * # | 189| "self" : { | 1041| "self" : { | # | 190| "href" : "/cd?rows=2&page=1", | 1042| "href" : "/cd?rows=2&page=1", | # | 191| "title" : "TestSchema::Result::CD" | 1043| "title" : "TestSchema::Result::CD" | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 198|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | 1050|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | # | 199|Accept: application/hal+json | 1051|Accept: application/hal+json | # | 200|Response: | 1052|Response: | # * 201|404 Not Found * 1053|200 OK * # * 202|Content-type: text/plain * 1054|Content-type: application/hal+json * # * 203|Not Found * 1055|{ * # | | * 1056| "_embedded" : { * # | | * 1057| "artist" : { * # | | * 1058| "artistid" : 1 * # | | * 1059| }, * # | | * 1060| "genre" : { * # | | * 1061| "genreid" : 1 * # | | * 1062| } * # | | * 1063| }, * # | | * 1064| "_links" : { * # | | * 1065| "artist" : { * # | | * 1066| "href" : "/artist/1" * # | | * 1067| }, * # | | * 1068| "cd_to_producer" : { * # | | * 1069| "href" : "/cd_to_producer?me.cd=1" * # | | * 1070| }, * # | | * 1071| "genre" : { * # | | * 1072| "href" : "/genre/1" * # | | * 1073| }, * # | | * 1074| "self" : { * # | | * 1075| "href" : "/cd/1" * # | | * 1076| }, * # | | * 1077| "tracks" : { * # | | * 1078| "href" : "/track?me.cd=1" * # | | * 1079| } * # | | * 1080| }, * # | | * 1081| "artist" : 1, * # | | * 1082| "cdid" : 1, * # | | * 1083| "genreid" : 1 * # | | * 1084|} * # | | * 1085|\n * # | 204|=== prefetch on item with id primary key #28 | 1086|=== prefetch on item with id primary key #28 | # | 205|Request: | 1087|Request: | # | 206|GET /country/1?prefetch=cities | 1088|GET /country/1?prefetch=cities | # | 207|Accept: application/hal+json | 1089|Accept: application/hal+json | # | 208|Response: | 1090|Response: | # * 209|404 Not Found * 1091|200 OK * # * 210|Content-type: text/plain * 1092|Content-type: application/hal+json * # * 211|Not Found * 1093|{ * # | | * 1094| "_embedded" : { * # | | * 1095| "cities" : [ * # | | * 1096| { * # | | * 1097| "_links" : { * # | | * 1098| "country" : { * # | | * 1099| "href" : "/country/1" * # | | * 1100| }, * # | | * 1101| "self" : { * # | | * 1102| "href" : "/city/1" * # | | * 1103| } * # | | * 1104| }, * # | | * 1105| "country_id" : 1, * # | | * 1106| "id" : 1, * # | | * 1107| "name" : "London" * # | | * 1108| } * # | | * 1109| ] * # | | * 1110| }, * # | | * 1111| "_links" : { * # | | * 1112| "cities" : { * # | | * 1113| "href" : "/city?me.country_id=1" * # | | * 1114| }, * # | | * 1115| "self" : { * # | | * 1116| "href" : "/country/1" * # | | * 1117| } * # | | * 1118| }, * # | | * 1119| "id" : 1, * # | | * 1120| "name" : "England" * # | | * 1121|} * # | | * 1122|\n * # | 212|' | 1123|' | # +----+------------------------------------------------------------------------------------------------------------------------------------------+-----+------------------------------------------------------------------------------------------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Prefetch =====' # at t/media-hal/40-prefetch-req.t line 20. # Looks like you failed 2 tests of 2. t/media-hal/40-prefetch-req.t ........... importing fixtures - deleting existing temp directory /tmp/LHcmGV2mVF - creating temp dir not ok 1 - 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: 9 # Content-Type: text/plain # --- Name: prefetch on a set using two belongs_to relationships # GET /cd?rows=2&page=1&prefetch=artist,genre # Vary: Accept # Content-Length: 103 # Content-Type: application/hal+json # --- Name: filter on prefetched relation field # GET /cd?prefetch=artist&artist.name=Random+Boy+Band # Vary: Accept # Content-Length: 104 # 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: 104 # 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: 9 # Content-Type: text/plain # --- 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: 115 # Content-Type: application/hal+json # --- Name: multi type relation in prefetch on item (many_to_many via JSON) ArrayRef Syntax # GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax # GET /cd/1?sort=cd_to_producer.producer&prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- 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: 115 # Content-Type: application/hal+json # --- Name: prefetch with query on ambiguous field # GET /cd/?me.artist=1&prefetch=artist # Vary: Accept # Content-Length: 116 # 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: 103 # 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: 9 # Content-Type: text/plain # --- Name: prefetch on item with id primary key #28 # GET /country/1?prefetch=cities # Vary: Accept # Content-Length: 9 # Content-Type: text/plain not ok 1 - 40-prefetch-req.t output in t/media-hal/40-prefetch-req.got matches t/media-hal/40-prefetch-req.exp 1..1 not ok 2 - ===== Prefetch ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f238f0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23e78), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f675f0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f675f0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e1a8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542568)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e1a8), Moose::Meta::Instance=HASH(0x26007c8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542568), HASH(0x11ef368)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef710), HASH(0x11ef368)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef710), HASH(0x11ef368)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef710), HASH(0x11ef368)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2542100)) 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(0x2542100)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2542100)) 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(0x1c29958)) 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/media-hal/50-modify-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test 'set has at least 2 items' # at t/media-hal/50-modify-req.t line 25. # '0' # >= # '2' # Failed test '/artist includes 1' # at t/media-hal/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist includes 2' # at t/media-hal/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist includes 3' # at t/media-hal/50-modify-req.t line 28. # got: '' # expected: 'HASH' # Failed test '/artist data looks sane' # at t/media-hal/50-modify-req.t line 29. # Failed test 'new item has new id' # at t/media-hal/50-modify-req.t line 44. TestSchema::Result::Artist relationship cds_90s has coderef-based condition which is not handled yet - unknown crosstable_cond_key # Looks like you failed 6 tests of 47. # Failed test '===== Create - POST =====' # at t/media-hal/50-modify-req.t line 111. # Looks like you failed 2 tests of 2. t/media-hal/50-modify-req.t ............. importing fixtures - deleting existing temp directory /tmp/3O1jXs7uhN - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Create - POST ===== # GET /artist ok 1 ok 2 - response is a ref ok 3 - data isn't a hash ok 4 - _embedded isn't hash ok 5 - _embedded has artist array not ok 6 - set has at least 2 items not ok 7 - /artist includes 1 not ok 8 - /artist includes 2 not ok 9 - /artist includes 3 not ok 10 - /artist data looks sane # plain post # POST /artist ok 11 ok 12 - has Location header ok 13 - no data returned without prefetch # GET /artist/1 ok 14 ok 15 - response is a ref ok 16 - new item has id not ok 17 - new item has new id ok 18 ok 19 # post with prefetch=self # POST /artist?prefetch=self ok 20 ok 21 - has Location header ok 22 - response is a ref # GET /artist/2 ok 23 ok 24 - response is a ref ok 25 - new item has id ok 26 - new item has new id ok 27 ok 28 ok 29 - returned prefetch matches item at location # ===== Update - PUT ===== # put without prefetch=self # PUT /artist/2 ok 30 ok 31 - no response body # GET /artist/2 ok 32 ok 33 - response is a ref ok 34 # put with prefetch=self # PUT /artist/2?prefetch=self ok 35 ok 36 - response is a ref ok 37 - has response body ok 38 - prefetch response has updated rank # GET /artist/2 ok 39 ok 40 - response is a ref ok 41 - returned prefetch matches item at location # ===== Delete - DELETE ===== # DELETE /artist/1 ok 42 ok 43 - no response body # GET /person_types/1 ok 44 # DELETE /artist/2 ok 45 ok 46 - no response body # GET /person_types/2 ok 47 1..47 not ok 2 - ===== Create - POST ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f235c0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23b48), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f671a0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f671a0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7de28), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2549288)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7de28), Moose::Meta::Instance=HASH(0x26004a8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2549288), HASH(0x11eef98)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef340), HASH(0x11eef98)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef340), HASH(0x11eef98)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef340), HASH(0x11eef98)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2548fe8)) 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(0x2548fe8)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2548fe8)) 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(0x1c29638)) 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/media-hal/52-post_rel-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 TestSchema::Result::Track relationship next_tracks has coderef-based condition which is not handled yet - unknown crosstable_cond_key # Looks like you failed 1 test of 2. t/media-hal/52-post_rel-req.t ........... importing fixtures - deleting existing temp directory /tmp/XPqDjDvoGK - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== Create item, with embedded items, by POST to set ===== # POST /track?rollback=1 ok 1 ok 2 - has Location header ok 3 - returns reasonable Location ok 4 - returns no data # POST /track?rollback=1&prefetch=self ok 5 ok 6 - has Location header ok 7 - response is a ref ok 8 - returns reasonable Location ok 9 - return data ok 10 - has trackid assigned ok 11 ok 12 ok 13 - has cd assigned ok 14 - has no _embedded # POST /track?rollback=1&prefetch=self,disc ok 15 ok 16 - has Location header ok 17 - response is a ref ok 18 - returns reasonable Location ok 19 - return data ok 20 - has trackid assigned ok 21 ok 22 ok 23 - has cd assigned ok 24 - has _embedded ok 25 ok 26 - has _embedded disc ok 27 - disc matches ok 28 - disc name matches 1..28 ok 2 - ===== Create item, with embedded items, by POST to set ===== 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23760), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23ce8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f67380), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f67380), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dfb8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542328)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7dfb8), Moose::Meta::Instance=HASH(0x2600568), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2542328), HASH(0x11eeff8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef3a0), HASH(0x11eeff8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef3a0), HASH(0x11eeff8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef3a0), HASH(0x11eeff8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541ec0)) 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(0x2541ec0)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541ec0)) 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(0x1c29738)) 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/media-hal/53-put_rel-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 TestSchema::Result::Track relationship next_tracks has coderef-based condition which is not handled yet - unknown crosstable_cond_key Exception: Can't call method "result_source" on an undefined value at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm line 97. Exception: Can't call method "result_source" on an undefined value at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/ItemWritable.pm line 97. # Failed test '53-put_rel-req.t output in t/media-hal/53-put_rel-req.got matches t/media-hal/53-put_rel-req.exp' # at t/lib/TestDS.pm line 67. # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ # | 6|Response: | 6|Response: | # | 7|201 Created | 7|201 Created | # | 8|Content-type: application/hal+json | 8|Content-type: application/hal+json | # * 9|Location: /track/1 * 9|Location: /track/19 * # | 10|{ | 10|{ | # | 11| "_links" : { | 11| "_links" : { | # | 12| "cd" : { | 12| "cd" : { | # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ # | 16| "href" : "/cd/2" | 16| "href" : "/cd/2" | # | 17| }, | 17| }, | # | 18| "cd_single" : { | 18| "cd_single" : { | # * 19| "href" : "/cd/1" * 19| "href" : "/cd/19" * # | 20| }, | 20| }, | # | 21| "disc" : { | 21| "disc" : { | # | 22| "href" : "/cd/2" | 22| "href" : "/cd/2" | # | 23| }, | 23| }, | # | 24| "self" : { | 24| "self" : { | # * 25| "href" : "/track/1" * 25| "href" : "/track/19" * # | 26| } | 26| } | # | 27| }, | 27| }, | # | 28| "cd" : 2, | 28| "cd" : 2, | # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ # | 30| "last_updated_on" : null, | 30| "last_updated_on" : null, | # | 31| "position" : 4200, | 31| "position" : 4200, | # | 32| "title" : "Just One More", | 32| "title" : "Just One More", | # * 33| "trackid" : 1 * 33| "trackid" : 19 * # | 34|} | 34|} | # | 35| | 35| | # | 36|=== 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 | # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ # | 39|Accept: application/hal+json | 39|Accept: application/hal+json | # | 40|{ "title":"Just One More (remix)" } | 40|{ "title":"Just One More (remix)" } | # | 41|Response: | 41|Response: | # * 42|500 Internal Server Error * 42|200 OK * # | 43|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 * # | 44|=== update the track id (primary key) | 80|=== update the track id (primary key) | # | 45|Request: | 81|Request: | # | 46|PUT /track/19?prefetch=self | 82|PUT /track/19?prefetch=self | # | 47|Accept: application/hal+json | 83|Accept: application/hal+json | # | 48|{ "trackid":1900 } | 84|{ "trackid":1900 } | # | 49|Response: | 85|Response: | # * 50|500 Internal Server Error * 86|200 OK * # | 51|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 * # | 52|=== delete the track we just added | 114|=== delete the track we just added | # | 53|Request: | 115|Request: | # | 54|DELETE /track/1900 | 116|DELETE /track/1900 | # | 55|Accept: application/hal+json | 117|Accept: application/hal+json | # | 56|Response: | 118|Response: | # * 57|404 Not Found * 119|204 No Content * # * 58|Content-type: text/plain * 120|Content-type: application/hal+json * # * 59|Not Found * | | # | 60|' | 121|' | # +---+------------------------------------------------------------------------+----+------------------------------------------------------------------------+ Exception: DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::SQLite::st execute failed: UNIQUE constraint failed: track.cd, track.title [for Statement "INSERT INTO track ( cd, position, title) VALUES ( ?, ?, ? )"] at /data/fly1400/cpan/build/WebAPI-DBIC-0.004002-Tcyjoa/blib/lib/WebAPI/DBIC/Resource/Role/SetWritable.pm line 62 # Failed test at t/media-hal/53-put_rel-req.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/vnd.wapid+json # # Failed test 'has Location header' # at t/media-hal/53-put_rel-req.t line 28. Use of uninitialized value in concatenation (.) or string at t/media-hal/53-put_rel-req.t line 33. # Failed test at t/media-hal/53-put_rel-req.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/media-hal/53-put_rel-req.t line 38. # got: '' # expected: 'HASH' # Failed test 'has trackid assigned' # at t/media-hal/53-put_rel-req.t line 39. # Failed test at t/media-hal/53-put_rel-req.t line 40. # got: undef # expected: 'Just One More (remix)' Use of uninitialized value in concatenation (.) or string at t/media-hal/53-put_rel-req.t line 46. Not a HASH reference at t/media-hal/53-put_rel-req.t line 47. # Tests were run but no plan was declared and done_testing() was not seen. # Looks like your test exited with 2 just after 1. t/media-hal/53-put_rel-req.t ............ importing fixtures - deleting existing temp directory /tmp/ox5unFF6LC - creating temp dir not ok 1 - 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 # Location: /track/1 # Vary: Accept # Content-Length: 251 # 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: 9 # Content-Type: text/plain not ok 1 - 53-put_rel-req.t output in t/media-hal/53-put_rel-req.got matches t/media-hal/53-put_rel-req.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 ok 9 ok 10 - response is a ref Dubious, test returned 2 (wstat 512, 0x200) Failed 1/1 subtests Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22ce0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f23268), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f66870), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f66870), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d498), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541538)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d498), Moose::Meta::Instance=HASH(0x25ff898), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541538), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eed00), HASH(0x11ee958)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x2541298)) 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(0x2541298)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x2541298)) 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(0x1c28d18)) 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/media-hal/90-root-req.t line 4 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 t/media-hal/90-root-req.t ............... # 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: 1678 # Content-Type: application/hal+json ok 1 - 90-root-req.t output in t/media-hal/90-root-req.got matches t/media-hal/90-root-req.exp 1..1 ok 1 - ===== basics - specs ===== 1..1 ok Class::MOP::load_class is deprecated at /home/fly1400/var/megalib/Class/MOP.pm line 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f22e20), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f233a8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f669d0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f669d0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d5b8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541948)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7d5b8), Moose::Meta::Instance=HASH(0x25ffba8), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x2541948), HASH(0x11ee8f8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11eeca0), HASH(0x11ee8f8)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11eeca0), HASH(0x11ee8f8)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11eeca0), HASH(0x11ee8f8)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x253b698)) 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(0x253b698)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x253b698)) 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(0x1c28e68)) 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/media-jsonapi/10-basics-req.t line 5 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '10-basics-req.t output in t/media-jsonapi/10-basics-req.got matches t/media-jsonapi/10-basics-req.exp' # at t/lib/TestDS.pm line 67. # +---+---------------------------------------------+----+---------------------------------------------------+ # | Ln|Got | Ln|Expected | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 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|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/vnd.api+json * # * 8|Not Found * 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 * # | 9|=== get different single item | 22|=== get different single item | # | 10|Request: | 23|Request: | # | 11|GET /artist/2 | 24|GET /artist/2 | # | 12|Accept: application/vnd.api+json | 25|Accept: application/vnd.api+json | # | 13|Response: | 26|Response: | # * 14|404 Not Found * 27|200 OK * # * 15|Content-type: text/plain * 28|Content-type: application/vnd.api+json * # * 16|Not Found * 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 * # | 17|=== get set of items | 43|=== get set of items | # | 18|Request: | 44|Request: | # | 19|GET /artist | 45|GET /artist | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 22|200 OK | 48|200 OK | # | 23|Content-type: application/vnd.api+json | 49|Content-type: application/vnd.api+json | # | 24|{ | 50|{ | # * 25| "artist" : [] * 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| ] * # | 26|} | 107|} | # | 27| | 108| | # | 28|=== get item with multi-field key | 109|=== get item with multi-field key | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 30|GET /gig/1/2014-01-01T01:01:01Z | 111|GET /gig/1/2014-01-01T01:01:01Z | # | 31|Accept: application/vnd.api+json | 112|Accept: application/vnd.api+json | # | 32|Response: | 113|Response: | # * 33|404 Not Found * 114|200 OK * # * 34|Content-type: text/plain * 115|Content-type: application/vnd.api+json * # * 35|Not Found * 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 * # | 36|=== get different item with multi-field key | 128|=== get different item with multi-field key | # | 37|Request: | 129|Request: | # | 38|GET /gig/2/2014-06-30T19:00:00Z | 130|GET /gig/2/2014-06-30T19:00:00Z | # | 39|Accept: application/vnd.api+json | 131|Accept: application/vnd.api+json | # | 40|Response: | 132|Response: | # * 41|404 Not Found * 133|200 OK * # * 42|Content-type: text/plain * 134|Content-type: application/vnd.api+json * # * 43|Not Found * 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 * # | 44|=== get view data | 147|=== get view data | # | 45|Request: | 148|Request: | # | 46|GET /classic_albums | 149|GET /classic_albums | # +---+---------------------------------------------+----+---------------------------------------------------+ # | 49|200 OK | 152|200 OK | # | 50|Content-type: application/vnd.api+json | 153|Content-type: application/vnd.api+json | # | 51|{ | 154|{ | # * 52| "classic_albums" : [] * 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| ] * # | 53|} | 187|} | # | 54| | 188| | # | 55|' | 189|' | # +---+---------------------------------------------+----+---------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== basics - specs =====' # at t/media-jsonapi/10-basics-req.t line 18. # Looks like you failed 2 tests of 2. t/media-jsonapi/10-basics-req.t ......... importing fixtures - deleting existing temp directory /tmp/9ZtF5xNivD - creating temp dir not ok 1 - Fixtures Installed # Subtest: ===== basics - specs ===== # --- Config: # --- Name: get single item # GET /artist/1 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get different single item # GET /artist/2 # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get set of items # GET /artist # Vary: Accept # Content-Length: 13 # 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: 9 # Content-Type: text/plain # --- Name: get different item with multi-field key # GET /gig/2/2014-06-30T19:00:00Z # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: get view data # GET /classic_albums # Vary: Accept # Content-Length: 21 # Content-Type: application/vnd.api+json not ok 1 - 10-basics-req.t output in t/media-jsonapi/10-basics-req.got matches t/media-jsonapi/10-basics-req.exp 1..1 not ok 2 - ===== basics - specs ===== 1..2 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 69. 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 65 Moose::Meta::TypeCoercion::__ANON__("TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeCoercion.pm line 100 Moose::Meta::TypeCoercion::coerce(Moose::Meta::TypeCoercion=HASH(0x1f23b30), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/TypeConstraint.pm line 145 Moose::Meta::TypeConstraint::coerce(Moose::Meta::TypeConstraint=HASH(0x1f240b8), "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 219 MooseX::Types::TypeDecorator::_try_delegate(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "coerce", "TestSchema") called at /home/fly1400/var/megalib/MooseX/Types/TypeDecorator.pm line 184 MooseX::Types::TypeDecorator::AUTOLOAD(MooseX::Types::TypeDecorator=HASH(0x1f676b0), "TestSchema") called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 1252 Moose::Meta::Attribute::_coerce_and_verify(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2d8), "TestSchema", Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8)) called at /home/fly1400/var/megalib/Moose/Meta/Attribute.pm line 512 Moose::Meta::Attribute::initialize_instance_slot(Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x1f7e2d8), Moose::Meta::Instance=HASH(0x2600928), Moose::Meta::Class::__ANON__::SERIAL::2=HASH(0x25426d8), HASH(0x11ef518)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 526 Class::MOP::Class::_construct_instance(Moose::Meta::Class=HASH(0x11ef8c0), HASH(0x11ef518)) called at /home/fly1400/var/megalib/Class/MOP/Class.pm line 496 Class::MOP::Class::new_object(Moose::Meta::Class=HASH(0x11ef8c0), HASH(0x11ef518)) called at /home/fly1400/var/megalib/Moose/Meta/Class.pm line 274 Moose::Meta::Class::new_object(Moose::Meta::Class=HASH(0x11ef8c0), HASH(0x11ef518)) called at /home/fly1400/var/megalib/Moose/Object.pm line 24 Moose::Object::new("Moose::Meta::Class::__ANON__::SERIAL::2", HASH(0x253c418)) 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(0x253c418)) called at /home/fly1400/var/megalib/Test/DBIx/Class/SchemaManager.pm line 153 Test::DBIx::Class::SchemaManager::initialize_schema("Test::DBIx::Class::SchemaManager", HASH(0x253c418)) 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(0x1c29a28)) 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/media-jsonapi/40-prefetch-req.t line 7 main::BEGIN() called at (eval 34) line 2 eval {...} called at (eval 34) line 2 # 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 # Failed test '40-prefetch-req.t output in t/media-jsonapi/40-prefetch-req.got matches t/media-jsonapi/40-prefetch-req.exp' # at t/lib/TestDS.pm line 67. # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | Ln|Got | Ln|Expected | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 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|404 Not Found * 6|200 OK * # * 7|Content-type: text/plain * 7|Content-type: application/vnd.api+json * # * 8|Not Found * 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 * # | 9|=== prefetch on a set using two belongs_to relationships | 60|=== prefetch on a set using two belongs_to relationships | # | 10|Request: | 61|Request: | # | 11|GET /cd?rows=2&page=1&prefetch=artist,genre | 62|GET /cd?rows=2&page=1&prefetch=artist,genre | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 14|200 OK | 65|200 OK | # | 15|Content-type: application/vnd.api+json | 66|Content-type: application/vnd.api+json | # | 16|{ | 67|{ | # * 17| "cd" : [], * 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| }, * # | 18| "links" : { | 129| "links" : { | # | 19| "cd.artist" : { | 130| "cd.artist" : { | # | 20| "href" : "/artist/{artist.artist}", | 131| "href" : "/artist/{artist.artist}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 35|200 OK | 146|200 OK | # | 36|Content-type: application/vnd.api+json | 147|Content-type: application/vnd.api+json | # | 37|{ | 148|{ | # * 38| "cd" : [], * 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| }, * # | 39| "links" : { | 178| "links" : { | # | 40| "cd.artist" : { | 179| "cd.artist" : { | # | 41| "href" : "/artist/{artist.artist}", | 180| "href" : "/artist/{artist.artist}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 53|200 OK | 192|200 OK | # | 54|Content-type: application/vnd.api+json | 193|Content-type: application/vnd.api+json | # | 55|{ | 194|{ | # * 56| "cd" : [], * 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| }, * # | 57| "links" : { | 224| "links" : { | # | 58| "cd.artist" : { | 225| "cd.artist" : { | # | 59| "href" : "/artist/{artist.artist}", | 226| "href" : "/artist/{artist.artist}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 67|GET /artist/1?prefetch=cds&order=cds.cdid | 234|GET /artist/1?prefetch=cds&order=cds.cdid | # | 68|Accept: application/vnd.api+json | 235|Accept: application/vnd.api+json | # | 69|Response: | 236|Response: | # * 70|404 Not Found * 237|200 OK * # * 71|Content-type: text/plain * 238|Content-type: application/vnd.api+json * # * 72|Not Found * 239|{ * # | | * 240| "artist" : [ * # | | * 241| { * # | | * 242| "artistid" : 1, * # | | * 243| "charfield" : null, * # | | * 244| "href" : "/artist/1", * # | | * 245| "id" : 1, * # | | * 246| "links" : { * # | | * 247| "cd" : [ * # | | * 248| 1, * # | | * 249| 2, * # | | * 250| 3 * # | | * 251| ] * # | | * 252| }, * # | | * 253| "name" : "Caterwauler McCrae", * # | | * 254| "rank" : 13, * # | | * 255| "type" : "artist" * # | | * 256| } * # | | * 257| ], * # | | * 258| "linked" : { * # | | * 259| "cd" : [ * # | | * 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 * # | 73|=== multi type relation (has_many) in prefetch on set | 303|=== multi type relation (has_many) in prefetch on set | # | 74|Request: | 304|Request: | # | 75|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | 305|GET /artist?prefetch=cds&order=me.artistid,cds.cdid&rows=2 | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 78|200 OK | 308|200 OK | # | 79|Content-type: application/vnd.api+json | 309|Content-type: application/vnd.api+json | # | 80|{ | 310|{ | # * 81| "artist" : [], * 311| "artist" : [ * # | | * 312| { * # | | * 313| "artistid" : 1, * # | | * 314| "charfield" : null, * # | | * 315| "href" : "/artist/1", * # | | * 316| "id" : 1, * # | | * 317| "links" : { * # | | * 318| "cd" : [ * # | | * 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| "cd" : [ * # | | * 335| 4 * # | | * 336| ] * # | | * 337| }, * # | | * 338| "name" : "Random Boy Band", * # | | * 339| "rank" : 13, * # | | * 340| "type" : "artist" * # | | * 341| } * # | | * 342| ], * # | | * 343| "linked" : { * # | | * 344| "cd" : [ * # | | * 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| }, * # | 82| "links" : { | 391| "links" : { | # | 83| "artist.cds" : { | 392| "artist.cds" : { | # | 84| "href" : "/cd?me.artist={cds.artistid}", | 393| "href" : "/cd?me.artist={cds.artistid}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 93|GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | 402|GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D | # | 94|Accept: application/vnd.api+json | 403|Accept: application/vnd.api+json | # | 95|Response: | 404|Response: | # * 96|404 Not Found * 405|200 OK * # * 97|Content-type: text/plain * 406|Content-type: application/vnd.api+json * # * 98|Not Found * 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 * # | 99|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | 423|=== multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax | # | 100|Request: | 424|Request: | # | 101|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | 425|GET /cd/1 PARAMS: prefetch~json=>{"cd_to_producer"=>"producer"} | # | 102|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | 426|GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D | # | 103|Accept: application/vnd.api+json | 427|Accept: application/vnd.api+json | # | 104|Response: | 428|Response: | # * 105|404 Not Found * 429|200 OK * # * 106|Content-type: text/plain * 430|Content-type: application/vnd.api+json * # * 107|Not Found * 431|{ * # | | * 432| "cd" : [ * # | | * 433| { * # | | * 434| "artist" : 1, * # | | * 435| "cdid" : 1, * # | | * 436| "genreid" : 1, * # | | * 437| "href" : "/cd/1", * # | | * 438| "id" : 1, * # | | * 439| "single_track" : null, * # | | * 440| "title" : "Spoonful of bees", * # | | * 441| "type" : "cd", * # | | * 442| "year" : "1999" * # | | * 443| } * # | | * 444| ] * # | | * 445|} * # | | * 446|\n * # | 108|=== filter on nested prefetch | 447|=== filter on nested prefetch | # | 109|Request: | 448|Request: | # | 110|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | 449|GET /artist?rows=2&producer.name=Matt+S+Trout PARAMS: prefetch~json=>{"cds"=>{"cd_to_producer"=>"producer"}} cds.year~json=>{">","0996"} | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 114|200 OK | 453|200 OK | # | 115|Content-type: application/vnd.api+json | 454|Content-type: application/vnd.api+json | # | 116|{ | 455|{ | # * 117| "artist" : [], * 456| "artist" : [ * # | | * 457| { * # | | * 458| "artistid" : 1, * # | | * 459| "charfield" : null, * # | | * 460| "href" : "/artist/1", * # | | * 461| "id" : 1, * # | | * 462| "links" : { * # | | * 463| "cd" : [ * # | | * 464| 1 * # | | * 465| ] * # | | * 466| }, * # | | * 467| "name" : "Caterwauler McCrae", * # | | * 468| "rank" : 13, * # | | * 469| "type" : "artist" * # | | * 470| } * # | | * 471| ], * # | | * 472| "linked" : { * # | | * 473| "cd" : [ * # | | * 474| { * # | | * 475| "artist" : 1, * # | | * 476| "cdid" : 1, * # | | * 477| "genreid" : 1, * # | | * 478| "href" : "/cd/1", * # | | * 479| "id" : 1, * # | | * 480| "single_track" : null, * # | | * 481| "title" : "Spoonful of bees", * # | | * 482| "type" : "cd", * # | | * 483| "year" : "1999" * # | | * 484| } * # | | * 485| ] * # | | * 486| }, * # | 118| "links" : { | 487| "links" : { | # | 119| "artist.cds" : { | 488| "artist.cds" : { | # | 120| "href" : "/cd?me.artist={cds.artistid}", | 489| "href" : "/cd?me.artist={cds.artistid}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 131|200 OK | 500|200 OK | # | 132|Content-type: application/vnd.api+json | 501|Content-type: application/vnd.api+json | # | 133|{ | 502|{ | # * 134| "cd" : [], * 503| "cd" : [ * # | | * 504| { * # | | * 505| "artist" : 1, * # | | * 506| "cdid" : 1, * # | | * 507| "genreid" : 1, * # | | * 508| "href" : "/cd/1", * # | | * 509| "id" : 1, * # | | * 510| "links" : { * # | | * 511| "artist" : 1 * # | | * 512| }, * # | | * 513| "single_track" : null, * # | | * 514| "title" : "Spoonful of bees", * # | | * 515| "type" : "cd", * # | | * 516| "year" : "1999" * # | | * 517| }, * # | | * 518| { * # | | * 519| "artist" : 1, * # | | * 520| "cdid" : 2, * # | | * 521| "genreid" : 2, * # | | * 522| "href" : "/cd/2", * # | | * 523| "id" : 2, * # | | * 524| "links" : { * # | | * 525| "artist" : 1 * # | | * 526| }, * # | | * 527| "single_track" : null, * # | | * 528| "title" : "Forkful of bees", * # | | * 529| "type" : "cd", * # | | * 530| "year" : "2001" * # | | * 531| }, * # | | * 532| { * # | | * 533| "artist" : 1, * # | | * 534| "cdid" : 3, * # | | * 535| "genreid" : 2, * # | | * 536| "href" : "/cd/3", * # | | * 537| "id" : 3, * # | | * 538| "links" : { * # | | * 539| "artist" : 1 * # | | * 540| }, * # | | * 541| "single_track" : null, * # | | * 542| "title" : "Caterwaulin\' Blues", * # | | * 543| "type" : "cd", * # | | * 544| "year" : "1997" * # | | * 545| } * # | | * 546| ], * # | | * 547| "linked" : { * # | | * 548| "artist" : [ * # | | * 549| { * # | | * 550| "artistid" : 1, * # | | * 551| "charfield" : null, * # | | * 552| "href" : "/artist/1", * # | | * 553| "id" : 1, * # | | * 554| "name" : "Caterwauler McCrae", * # | | * 555| "rank" : 13, * # | | * 556| "type" : "artist" * # | | * 557| } * # | | * 558| ] * # | | * 559| }, * # | 135| "links" : { | 560| "links" : { | # | 136| "cd.artist" : { | 561| "cd.artist" : { | # | 137| "href" : "/artist/{artist.artist}", | 562| "href" : "/artist/{artist.artist}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 174|200 OK | 599|200 OK | # | 175|Content-type: application/vnd.api+json | 600|Content-type: application/vnd.api+json | # | 176|{ | 601|{ | # * 177| "cd" : [], * 602| "cd" : [ * # | | * 603| { * # | | * 604| "artist" : 1, * # | | * 605| "cdid" : 1, * # | | * 606| "genreid" : 1, * # | | * 607| "href" : "/cd/1", * # | | * 608| "id" : 1, * # | | * 609| "links" : { * # | | * 610| "artist" : 1, * # | | * 611| "genre" : 1 * # | | * 612| }, * # | | * 613| "type" : "cd" * # | | * 614| }, * # | | * 615| { * # | | * 616| "artist" : 1, * # | | * 617| "cdid" : 2, * # | | * 618| "genreid" : 2, * # | | * 619| "href" : "/cd/2", * # | | * 620| "id" : 2, * # | | * 621| "links" : { * # | | * 622| "artist" : 1, * # | | * 623| "genre" : 2 * # | | * 624| }, * # | | * 625| "type" : "cd" * # | | * 626| } * # | | * 627| ], * # | | * 628| "linked" : { * # | | * 629| "artist" : [ * # | | * 630| { * # | | * 631| "artistid" : 1, * # | | * 632| "href" : "/artist/1", * # | | * 633| "id" : 1, * # | | * 634| "type" : "artist" * # | | * 635| } * # | | * 636| ], * # | | * 637| "genre" : [ * # | | * 638| { * # | | * 639| "genreid" : 1, * # | | * 640| "href" : "/genre/1", * # | | * 641| "id" : 1, * # | | * 642| "type" : "genre" * # | | * 643| }, * # | | * 644| { * # | | * 645| "genreid" : 2, * # | | * 646| "href" : "/genre/2", * # | | * 647| "id" : 2, * # | | * 648| "type" : "genre" * # | | * 649| } * # | | * 650| ] * # | | * 651| }, * # | 178| "links" : { | 652| "links" : { | # | 179| "cd.artist" : { | 653| "cd.artist" : { | # | 180| "href" : "/artist/{artist.artist}", | 654| "href" : "/artist/{artist.artist}", | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # | 192|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | 666|GET /cd/1?prefetch=artist,genre&fields=cdid,artist,genreid,artist.artistid,genre.genreid | # | 193|Accept: application/vnd.api+json | 667|Accept: application/vnd.api+json | # | 194|Response: | 668|Response: | # * 195|404 Not Found * 669|200 OK * # * 196|Content-type: text/plain * 670|Content-type: application/vnd.api+json * # * 197|Not Found * 671|{ * # | | * 672| "cd" : [ * # | | * 673| { * # | | * 674| "artist" : 1, * # | | * 675| "cdid" : 1, * # | | * 676| "genreid" : 1, * # | | * 677| "href" : "/cd/1", * # | | * 678| "id" : 1, * # | | * 679| "links" : { * # | | * 680| "artist" : 1, * # | | * 681| "genre" : 1 * # | | * 682| }, * # | | * 683| "type" : "cd" * # | | * 684| } * # | | * 685| ], * # | | * 686| "linked" : { * # | | * 687| "artist" : [ * # | | * 688| { * # | | * 689| "artistid" : 1, * # | | * 690| "href" : "/artist/1", * # | | * 691| "id" : 1, * # | | * 692| "type" : "artist" * # | | * 693| } * # | | * 694| ], * # | | * 695| "genre" : [ * # | | * 696| { * # | | * 697| "genreid" : 1, * # | | * 698| "href" : "/genre/1", * # | | * 699| "id" : 1, * # | | * 700| "type" : "genre" * # | | * 701| } * # | | * 702| ] * # | | * 703| }, * # | | * 704| "links" : { * # | | * 705| "cd.artist" : { * # | | * 706| "href" : "/artist/{artist.artist}", * # | | * 707| "type" : "artist" * # | | * 708| }, * # | | * 709| "cd.genre" : { * # | | * 710| "href" : "/genre/{genre.genreid}", * # | | * 711| "type" : "genre" * # | | * 712| } * # | | * 713| } * # | | * 714|} * # | | * 715|\n * # | 198|=== prefetch on item with id primary key #28 | 716|=== prefetch on item with id primary key #28 | # | 199|Request: | 717|Request: | # | 200|GET /country/1?prefetch=cities | 718|GET /country/1?prefetch=cities | # | 201|Accept: application/vnd.api+json | 719|Accept: application/vnd.api+json | # | 202|Response: | 720|Response: | # * 203|404 Not Found * 721|200 OK * # * 204|Content-type: text/plain * 722|Content-type: application/vnd.api+json * # * 205|Not Found * 723|{ * # | | * 724| "country" : [ * # | | * 725| { * # | | * 726| "href" : "/country/1", * # | | * 727| "id" : 1, * # | | * 728| "links" : { * # | | * 729| "city" : [ * # | | * 730| 1 * # | | * 731| ] * # | | * 732| }, * # | | * 733| "name" : "England", * # | | * 734| "type" : "country" * # | | * 735| } * # | | * 736| ], * # | | * 737| "linked" : { * # | | * 738| "city" : [ * # | | * 739| { * # | | * 740| "country_id" : 1, * # | | * 741| "href" : "/city/1", * # | | * 742| "id" : 1, * # | | * 743| "name" : "London", * # | | * 744| "type" : "city" * # | | * 745| } * # | | * 746| ] * # | | * 747| }, * # | | * 748| "links" : { * # | | * 749| "country.cities" : { * # | | * 750| "href" : "/city?me.country_id={cities.id}", * # | | * 751| "type" : "city" * # | | * 752| } * # | | * 753| } * # | | * 754|} * # | | * 755|\n * # | 206|' | 756|' | # +----+------------------------------------------------------------------------------------------------------------------------------------------+----+------------------------------------------------------------------------------------------------------------------------------------------+ # Looks like you failed 1 test of 1. # Failed test '===== Prefetch =====' # at t/media-jsonapi/40-prefetch-req.t line 20. # Looks like you failed 2 tests of 2. t/media-jsonapi/40-prefetch-req.t ....... importing fixtures - deleting existing temp directory /tmp/s2Ib4aZhZ0 - creating temp dir not ok 1 - 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: 9 # Content-Type: text/plain # --- Name: prefetch on a set using two belongs_to relationships # GET /cd?rows=2&page=1&prefetch=artist,genre # Vary: Accept # Content-Length: 142 # 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: 82 # 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: 82 # 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: 9 # Content-Type: text/plain # --- 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: 88 # Content-Type: application/vnd.api+json # --- Name: multi type relation in prefetch on item (many_to_many via JSON) ArrayRef Syntax # GET /cd/1?prefetch~json=%5B%7B%22cd_to_producer%22%3A%22producer%22%7D%5D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- Name: multi type relation in prefetch on item (many_to_many via JSON) HashRef Syntax # GET /cd/1?prefetch~json=%7B%22cd_to_producer%22%3A%22producer%22%7D # Vary: Accept # Content-Length: 9 # Content-Type: text/plain # --- 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: 88 # Content-Type: application/vnd.api+json # --- Name: prefetch with query on ambiguous field # GET /cd/?me.artist=1&prefetch=artist # Vary: Accept # Content-Length: 82 # 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: 142 # 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: 9 # Content-Type: text/plain # --- Name: prefetch on item with id primary key #28 # GET /country/1?prefetch=cities # Vary: Accept # Content-Length: 9 # Content-Type: text/plain not ok 1 - 40-prefetch-req.t output in t/media-jsonapi/40-prefetch-req.got matches t/media-jsonapi/40-prefetch-req.exp 1..1 not ok 2 - ===== Prefetch ===== 1..2 Dubious, test returned 2 (wstat 512, 0x200) Failed 2/2 subtests t/release-pod-syntax.t .................. skipped: these tests are for release candidate testing Test Summary Report ------------------- t/10-basics-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/11-paging-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/12-searching-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/13-fields-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/14-distinct-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/30-ordering-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/50-modify-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/53-put_rel-req.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: No plan found in TAP output t/60-invoke-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-active-model/10-basics-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-active-model/40-prefetch-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/10-basics-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/11-paging-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/12-searching-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/13-fields-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/14-distinct-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/30-ordering-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/40-prefetch-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/50-modify-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-hal/52-post_rel-req.t (Wstat: 256 Tests: 2 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/media-hal/53-put_rel-req.t (Wstat: 512 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 2 Parse errors: No plan found in TAP output t/media-jsonapi/10-basics-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 t/media-jsonapi/40-prefetch-req.t (Wstat: 512 Tests: 2 Failed: 2) Failed tests: 1-2 Non-zero exit status: 2 Files=27, Tests=149, 83 wallclock secs ( 0.21 usr 0.23 sys + 71.36 cusr 5.79 csys = 77.59 CPU) Result: FAIL Failed 23/27 test programs. 43/149 subtests failed. make: *** [test_dynamic] Error 255 TIMB/WebAPI-DBIC-0.004002.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.004002.tar.gz VmSize: 251920 kB Finished 2015-03-23T00:05:15