Yury Bushmelev
03/13/2024, 10:40 AMPuppet::Pops::Types::TypeAssertionError(value returned from function '<...>' has wrong type, references an unresolved type 'Result')
. I’m testing a Ruby function that returns a Bolt::Result. As I see here e.g. here and here no magic is required.. so return_type 'Result'
should just work. Though it doesn’t work in my PDK-managed Bolt module repo somehow.. 🤔Yury Bushmelev
03/13/2024, 10:41 AMYury Bushmelev
03/13/2024, 10:43 AMYury Bushmelev
03/13/2024, 12:12 PMcompiler
object doesn’t have the Bolt datatypes in the RSpec somehow.. 🤔Yury Bushmelev
03/13/2024, 12:36 PMlib/puppet/datatypes
it seems.. tests fails when running out of treeYury Bushmelev
03/13/2024, 12:57 PMinclude BoltSpec::BoltContext
around(:each) do |example|
in_bolt_context do
example.run
end
end
Yury Bushmelev
03/13/2024, 1:10 PMrequire 'bolt_spec/bolt_context'
Cas Donoghue
03/13/2024, 5:00 PMYury Bushmelev
03/13/2024, 5:10 PM