From 9803f49132207f7adf9efdeb25efd7491c091356 Mon Sep 17 00:00:00 2001 From: Joe Rafaniello Date: Mon, 18 Dec 2023 14:55:59 -0500 Subject: [PATCH] Allow StateVarHash to YAML.load from runtime instantiate Previously, we allowed it to be permitted in serialized columns, but this test also requires it be permitted from miq_ae_workspace_runtime.rb instantiate. --- spec/engine/miq_ae_state_machine_retry_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/engine/miq_ae_state_machine_retry_spec.rb b/spec/engine/miq_ae_state_machine_retry_spec.rb index 89c78e24..fbca588a 100644 --- a/spec/engine/miq_ae_state_machine_retry_spec.rb +++ b/spec/engine/miq_ae_state_machine_retry_spec.rb @@ -183,7 +183,7 @@ def create_restart_model(script1, script2, script3) end it "check persistent hash" do - ActiveRecord::Base.yaml_column_permitted_classes << "MiqAeEngine::StateVarHash" + YamlPermittedClasses.app_yaml_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)