Add get endpoint for config

This commit is contained in:
kirby@puppetlabs.com 2018-05-23 17:19:45 -07:00
parent c8426b0076
commit ab0c5b53a0
2 changed files with 22 additions and 0 deletions

View file

@ -156,5 +156,12 @@ describe Vmpooler::API::V1 do
expect(last_response.body).to eq(JSON.pretty_generate(expected))
end
end
describe 'GET /config' do
it 'returns pool configuration when set' do
get "#{prefix}/config"
expect_json(ok = true, http = 200)
end
end
end
end