diff --git a/spec/models/manageiq/providers/kubernetes/container_manager/scanning/job/dispatcher_spec.rb b/spec/models/manageiq/providers/kubernetes/container_manager/scanning/job/dispatcher_spec.rb index 93029a97cf..b1d639cf39 100644 --- a/spec/models/manageiq/providers/kubernetes/container_manager/scanning/job/dispatcher_spec.rb +++ b/spec/models/manageiq/providers/kubernetes/container_manager/scanning/job/dispatcher_spec.rb @@ -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) }