Skip to content

Commit

Permalink
Allow StateVarHash to YAML.load from runtime instantiate
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrafanie committed Dec 18, 2023
1 parent 9e3f656 commit 9803f49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/engine/miq_ae_state_machine_retry_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9803f49

Please sign in to comment.