Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions acceptance/tests/puppetserver_loads_vendored_multi_json.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# The agent installs multi_json into the vendor gem directory that puppetserver
# also loads from. This test ONLY checks that puppetserver's JRuby can load
# that copy, because gem version bumps in puppet-runtime have broken it before
# (puppet-runtime#156, puppet-runtime#333). It does not test multi_json itself.
test_name 'puppetserver can load the multi_json gem shipped by the agent'

tag 'server',
'shard:group2'

on(master, %q{/opt/puppetlabs/server/bin/puppetserver ruby -e 'require "multi_json"; puts MultiJson.dump("loaded" => true)'}) do |result|
assert_match(/\{"loaded":true\}/, result.stdout)
end
Loading