Actions
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
Actions