Project

General

Profile

Actions

Refactor #19463

closed

Disable audit creation in factory_girl-created models in tests

Added by Dominic Cleal over 7 years ago. Updated over 6 years ago.

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

Description

factory_girl creates models in tests with a regular save! call, which results in audit entries being created for every factory-based fixture. Disabling auditing while creating these would save on writes to the database in the test environment, as they're pretty much entirely unused.

The few tests that do rely on factory_girl objects having corresponding audit entries can have them manually enabled (opt-in).


Related issues 1 (0 open1 closed)

Related to Foreman Remote Execution - Bug #19525: Tests are failling with foreman 1.16 develop on job invocatoin composerClosedIvan Necas05/12/2017Actions
Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/4504 added
Actions #2

Updated by Dominic Cleal over 7 years ago

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

Updated by Ivan Necas over 7 years ago

  • Related to Bug #19525: Tests are failling with foreman 1.16 develop on job invocatoin composer added
Actions #4

Updated by Marek Hulán about 7 years ago

  • Translation missing: en.field_release set to 240
Actions

Also available in: Atom PDF