mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 10:08:40 -05:00
(MAINT) Add optional API Request Logging
This was partially an exercise to use middleware, but also to enable basic logging for the API by logging all the API calls to the logger.
This commit is contained in:
parent
a21d8c5642
commit
85ff3f7022
17 changed files with 85 additions and 24 deletions
|
|
@ -37,7 +37,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
before(:each) do
|
||||
expect(app).to receive(:run!).once
|
||||
app.execute([:api], config, redis, metrics)
|
||||
app.execute([:api], config, redis, metrics, nil)
|
||||
app.settings.set :config, auth: false
|
||||
create_token('abcdefghijklmnopqrstuvwxyz012345', 'jdoe', current_time)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue