From ed33313b5fba054b877121dc033c0f8f5bc7db1d Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Tue, 14 Nov 2023 15:12:26 -0500 Subject: [PATCH] Support psych 4 safe_load default with yaml_column_permitted_classes Part of https://github.com/ManageIQ/manageiq/issues/22696 --- spec/engine/miq_ae_state_machine_retry_spec.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/spec/engine/miq_ae_state_machine_retry_spec.rb b/spec/engine/miq_ae_state_machine_retry_spec.rb index d5f1981d..89c78e24 100644 --- a/spec/engine/miq_ae_state_machine_retry_spec.rb +++ b/spec/engine/miq_ae_state_machine_retry_spec.rb @@ -183,6 +183,7 @@ def create_restart_model(script1, script2, script3) end it "check persistent hash" do + ActiveRecord::Base.yaml_column_permitted_classes << "MiqAeEngine::StateVarHash" setup_model(method_script_state_var) expected = MiqAeEngine::StateVarHash.new('three' => 3, 'one' => 1, 'two' => 2, 'gravy' => 'train') send_ae_request_via_queue(@automate_args)