Project

General

Profile

Bug #6972

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

Added by Christine Fouant about 5 years ago. Updated about 1 year ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
Team Backlog:
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"]}

History

#1 Updated by Eric Helms about 5 years ago

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

#2 Updated by Eric Helms over 3 years ago

  • Legacy Backlogs Release (now unused) set to 114

Also available in: Atom PDF