Project

General

Profile

Actions

Bug #3071

closed

OS edit integration test failure with foreign keys

Added by Dominic Cleal about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

The OS edit integration test is failing since merging the FK support:
http://ci.theforeman.org/job/test_develop_integration/5/

Mysql2::Error: Cannot add or update a child row: a foreign key constraint fails (`test_develop_integration-3-test`.`os_default_templates`, CONSTRAINT `os_default_templates_config_template_id_fk` FOREIGN KEY (`config_template_id`) REFERENCES `config_templates` (`id`)): UPDATE `os_default_templates` SET `config_template_id` = 0, `updated_at` = '2013-09-11 09:54:36' WHERE `os_default_templates`.`id` = 281110143 (ActiveRecord::InvalidForeignKey)
...
/var/lib/workspace/workspace/test_develop_integration/database/mysql/ruby/1.8.7/test/integration/operatingsystem_test.rb:24:in `test_0003_edit page'

http://ci.theforeman.org/job/test_develop_integration/5/database=mysql,ruby=1.8.7/testReport/junit/%28root%29/OperatingsystemTest/test_0003_edit_page/


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #2400: Add foreign keys on database levelClosedJoseph Magen04/15/2013Actions
Actions

Also available in: Atom PDF