Project

General

Profile

« Previous | Next » 

Revision cc60ee97

Added by Justin Sherrill almost 6 years ago

Fixes #23788 - update product and content names

this adds updating of product and content names if they
change as part of content import

View differences:

test/services/product_content_finder_test.rb
#@repo1's content is already in fixtures
[@repo2].each do |repo|
content = FactoryBot.create(:katello_content,
name: repo.name,
label: repo.label,
organization_id: repo.product.organization_id,
cp_content_id: repo.content_id)
content = Katello::Content.find_by(cp_content_id: repo.content_id, organization_id: repo.product.organization_id)
FactoryBot.create(:katello_product_content, content: content, product: @product1)
end

Also available in: Unified diff