denny / ShinyCMS

ShinyCMS is an open source CMS. This is the Perl version, built with Catalyst and DBIC. (There is also a Ruby on Rails version: www.github.com/denny/ShinyCMS-ruby)
58 stars 24 forks source link

t/admin_rights.t: Cannot delete or update a parent row #47

Closed richarddeanjohnson closed 9 years ago

richarddeanjohnson commented 9 years ago

I'm working with @wbraswell to install ShinyCMS on my Dell Lattitude D630 Laptop, with the following configuration and error:

rjohnson@forest-laptop:~/ShinyCMS-latest$ perl -v This is perl 5, version 18, subversion 2 (v5.18.2) built for i686-linux-gnu-thread-multi-64int (with 41 registered patches, see perl -V for more detail)

rjohnson@forest-laptop:~/ShinyCMS-latest$ uname -a Linux forest-laptop 3.13.0-37-generic #64-Ubuntu SMP Mon Sep 22 21:30:01 UTC 2014 i686 i686 i686 GNU/Linux rjohnson@forest-laptop:~/ShinyCMS-latest$ cat /etc/issue Ubuntu 14.04.1 LTS

rjohnson@forest-laptop:~/ShinyCMS-latest$ make; make test ... t/admin_rights.t .................................... 1/? DBIx::Class::Storage::DBI::_dbh_execute(): DBI Exception: DBD::mysql::st execute failed: Cannot delete or update a parent row: a foreign key constraint fails ("shinycms_testdb_00"."user_ip_address", CONSTRAINT "user_ip_address_fk_user" FOREIGN KEY ("user") REFERENCES "user" ("id")) [for Statement "DELETE FROM user WHERE ( id = ? )" with ParamValues: 0='4'] at t/admin_rights.t line 43

Tests were run but no plan was declared and done_testing() was not seen.

Looks like your test exited with 255 just after 2.

t/admin_rights.t .................................... Dubious, test returned 255 (wstat 65280, 0xff00) All 2 subtests passed ...

Test Summary Report

t/admin_rights.t (Wstat: 65280 Tests: 2 Failed: 0) Non-zero exit status: 255 Parse errors: No plan found in TAP output Files=36, Tests=76, 116 wallclock secs ( 0.16 usr 0.01 sys + 111.28 cusr 3.86 csys = 115.31 CPU) Result: FAIL Failed 1/36 test programs. 0/76 subtests failed. make: *\ [test_dynamic] Error 255

denny commented 9 years ago

Thanks for the report Richard! Just fixing this now.