Project

General

Profile

Bug #3071

OS edit integration test failure with foreign keys

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

Status:
Closed
Priority:
Normal
Assignee:
Category:
Tests
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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

Related to Foreman - Feature #2400: Add foreign keys on database levelClosed2013-04-15

Associated revisions

Revision f76e5eee (diff)
Added by Joseph Magen about 9 years ago

fixes #3071 - OS edit failed on foreign keys since config_template_id was '0' on blank

Revision 2d59ee5f (diff)
Added by Joseph Magen about 9 years ago

fixes #3071 - OS edit failed on foreign keys since config_template_id was '0' on blank

(cherry picked from commit f76e5eee7dcbea2bdcfb15beec84894214133093)

History

#1 Updated by Joseph Magen about 9 years ago

  • Status changed from Assigned to Ready For Testing

#2 Updated by Joseph Magen about 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

#3 Updated by Lukas Zapletal about 9 years ago

  • Related to Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final added

#4 Updated by Lukas Zapletal about 9 years ago

  • Related to deleted (Tracker #3112: [TRACKER] Issues to be released in 1.3 RC or final)

#5 Updated by Dominic Cleal about 9 years ago

  • Related to Feature #2400: Add foreign keys on database level added

Also available in: Atom PDF