Bug #29035
closedmissing @taxonomy instance variable when creating organization from API
Description
I've created this PR:
https://github.com/theforeman/foreman/pull/7434
which add location inherited parameters.
this PR cause to some failures in katello, for example :
Error Message
Expected {"message"=>"resource have no errors"} to be nil.
Stacktrace
Expected {"message"=>"resource have no errors"} to be nil. (Minitest::Assertion)
/home/jenkins/workspace/test_develop_pr_katello@2/database/postgresql/ruby/2.5/slave/fast/plugin/test/controllers/api/v2/organizations_controller_test.rb:198
the failures are related to fact I used `ancestors = @taxonomy.ancestors` In my PR, but @taxonomy is not an instance variable
the fix for it will be to set @taxonomy instance variable when creating an organization
Updated by The Foreman Bot almost 5 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello/pull/8568 added
Updated by Samir Jha almost 5 years ago
- Target version set to Katello 3.16.0
- Triaged changed from No to Yes
Updated by The Foreman Bot almost 5 years ago
- Fixed in Releases Katello 3.16.0 added
Updated by Shira Maximov almost 5 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset katello|29f949ec70a3ea9b2655552dfbdced6948112235.