Skip to content

Commit

Permalink
Merge pull request #512 from jrafanie/ensure_container_image_is_yaml_…
Browse files Browse the repository at this point in the history
…column_permitted

We explicitly serialize objects so we need to permit yaml loading them
  • Loading branch information
agrare committed Nov 21, 2023
2 parents ff27240 + 01424e8 commit 3fc0756
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@
context "with container and vms jobs" do
let(:container_image_classes) { ContainerImage.descendants.collect(&:name).append('ContainerImage') }
before do
ActiveRecord::Base.yaml_column_permitted_classes |= [ManageIQ::Providers::Openshift::ContainerManager::ContainerImage]
@jobs = (@vms + @repo_vms).collect(&:raw_scan)
User.current_user = FactoryBot.create(:user)
@jobs += @container_images.map { |img| img.ext_management_system.raw_scan_job_create(img.class, img.id) }
Expand Down

0 comments on commit 3fc0756

Please sign in to comment.