mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-27 02:18:41 -05:00
Fix some spec errors
These were caused in part by dropping changes from the original PR when we dropped the v1_spec.rb master test file (in favor of the updated and separated versions).
This commit is contained in:
parent
c71b2cd003
commit
3c531d3ec3
2 changed files with 6 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
describe '/vm' do
|
||||
let(:prefix) { '/api/v1' }
|
||||
|
||||
let(:statsd) { double('stats', :increment => true) }
|
||||
let(:config) {
|
||||
{
|
||||
config: {
|
||||
|
|
@ -31,6 +31,7 @@ describe Vmpooler::API::V1 do
|
|||
{'name' => 'pool1', 'size' => 5},
|
||||
{'name' => 'pool2', 'size' => 10}
|
||||
],
|
||||
statsd: { 'prefix' => 'stats_prefix'},
|
||||
alias: { 'poolone' => 'pool1' },
|
||||
pool_names: [ 'pool1', 'pool2', 'poolone' ]
|
||||
}
|
||||
|
|
@ -43,6 +44,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
app.settings.set :config, config
|
||||
app.settings.set :redis, redis
|
||||
app.settings.set :statsd, statsd
|
||||
app.settings.set :config, auth: false
|
||||
create_token('abcdefghijklmnopqrstuvwxyz012345', 'jdoe', current_time)
|
||||
end
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
describe '/vm/:template' do
|
||||
let(:prefix) { '/api/v1' }
|
||||
|
||||
let(:statsd) { double('stats', :increment => true) }
|
||||
let(:config) {
|
||||
{
|
||||
config: {
|
||||
|
|
@ -31,6 +31,7 @@ describe Vmpooler::API::V1 do
|
|||
{'name' => 'pool1', 'size' => 5},
|
||||
{'name' => 'pool2', 'size' => 10}
|
||||
],
|
||||
statsd: { 'prefix' => 'stats_prefix'},
|
||||
alias: { 'poolone' => 'pool1' },
|
||||
pool_names: [ 'pool1', 'pool2', 'poolone' ]
|
||||
}
|
||||
|
|
@ -43,6 +44,7 @@ describe Vmpooler::API::V1 do
|
|||
|
||||
app.settings.set :config, config
|
||||
app.settings.set :redis, redis
|
||||
app.settings.set :statsd, statsd
|
||||
app.settings.set :config, auth: false
|
||||
create_token('abcdefghijklmnopqrstuvwxyz012345', 'jdoe', current_time)
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue