Project

General

Profile

Actions

Bug #20274

closed

Filter fixtures for plugins are created with many resource_types

Added by Daniel Lobato Garcia over 7 years ago. Updated over 6 years ago.

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

Description

Filters cannot have many resource_types - each filter needs to have its own resource type, e.g: one filter does not accommodate permissions for "Host" and "DiscoveredHost".
This is enforced by a validator in the model, but our fixtures are able to completely skip it. The result is that plugins have Filters with multiple resource types. This has not been a problem until recently, as we added a test that checks that the db filter cache can be recreated (CacheManagerTest). On plugins, this test fails to pass as fixtures are wrongly created.

Actions #1

Updated by The Foreman Bot over 7 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Daniel Lobato Garcia
  • Pull request https://github.com/theforeman/foreman/pull/4657 added
Actions #2

Updated by Daniel Lobato Garcia over 7 years ago

  • Translation missing: en.field_release set to 276
Actions #3

Updated by Anonymous over 7 years ago

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

Also available in: Atom PDF