Project

General

Profile

Actions

Bug #6972

closed

Disabling Candlepin in Systems Controller Test prevents testing updates to content hosts

Added by Christine Fouant over 9 years ago. Updated over 4 years ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
easy
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

By disabling the glue layers of candlepin in the systems controller test, testing any updates would require a workaround including unnecessary logic in the controller itself. You also cannot test for certain candlepin attribute updates, such as facts.

The test and error follow:

def test_update_facts
put :update, :id => @system.uuid, :facts => {"new" => "fact"}
assert_response :success
end

status=500, {"displayMessage"=>"Can't mass-assign protected attributes: facts", "errors"=>["Can't mass-assign protected attributes: facts"]}

Actions #1

Updated by Eric Helms over 9 years ago

  • Category set to Tests
  • Difficulty set to easy
  • Triaged changed from No to Yes
Actions #2

Updated by Eric Helms over 8 years ago

  • translation missing: en.field_release set to 114
Actions #3

Updated by John Mitsch over 4 years ago

  • Status changed from New to Closed

Thanks for reporting this issue. This issue was created over 4 years ago and hasn't seen an update in 1 year. We are closing this in an effort to keep a realistic backlog. Please open up a new issue that includes a link to this issue if you feel this still needs to be addressed. We can then triage the new issue and reassess.

Actions #4

Updated by Justin Sherrill over 4 years ago

  • Target version deleted (Katello Backlog)
Actions #5

Updated by Justin Sherrill over 4 years ago

  • Status changed from Closed to Rejected
Actions

Also available in: Atom PDF