Project

General

Profile

Bug #6972

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

Added by Christine Fouant almost 6 years ago. Updated 9 months ago.

Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Tests
Target version:
-
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Pull request:
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 almost 6 years ago

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

#2 Updated by Eric Helms over 4 years ago

  • Legacy Backlogs Release (now unused) set to 114

#3 Updated by John Mitsch 9 months 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.

#4 Updated by Justin Sherrill 9 months ago

  • Target version deleted (Katello Backlog)

#5 Updated by Justin Sherrill 9 months ago

  • Status changed from Closed to Rejected

Also available in: Atom PDF