You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(PUP-11787) Warn if we fail to serialize and fallback
If puppetserver falls back to PSON when serializing a catalog, then conversion
of rich data will be lossy, but the problem won't be noticed until the catalog
is applied on the agent.
This converts the debug message to a warning to assist troubleshooting. This
affects both `find` and `search` operations for all indirected types.
allow(data).toreceive(:to_json).and_raise(Puppet::Network::FormatHandler::FormatError,'Could not render to Puppet::Network::Format[json]: source sequence is illegal/malformed utf-8')
185
+
expect(Puppet).toreceive(:warning).with(/Failed to serialize Puppet::IndirectorTesting for 'my data': Could not render to Puppet::Network::Format\[json\]/)
allow(data).toreceive(:to_json).and_raise(Puppet::Network::FormatHandler::FormatError,'Could not render to Puppet::Network::Format[json]: source sequence is illegal/malformed utf-8')
232
+
expect(Puppet).toreceive(:warning).with(/Failed to serialize Puppet::IndirectorTesting for 'my': Could not render_multiple to Puppet::Network::Format\[json\]/)
0 commit comments