We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6caa0be commit e3122dfCopy full SHA for e3122df
1 file changed
spec/octocatalog-diff/tests/catalog/puppetmaster_spec.rb
@@ -101,7 +101,10 @@
101
it 'should post the correct facts to HTTParty' do
102
answer = JSON.parse(File.read(OctocatalogDiff::Spec.fixture_path('facts/facts_esc.json')))
103
answer.delete('_timestamp')
104
- result = JSON.parse(@post_data['facts'])['values']
+ # An extra 'unescape' is here because the facts are double escaped.
105
+ # See https://docs.puppet.com/puppet/latest/http_api/http_catalog.html#parameters
106
+ # and https://github.com/puppetlabs/puppet/pull/1818
107
+ result = JSON.parse(CGI.unescape(@post_data['facts']))['values']
108
expect(result).to eq(answer)
109
end
110
0 commit comments