mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
Update migration spec to call pool manager and validate results
Use mock_redis instead of redis. Make passing of mock redis to helper calls more clear Update pool_manager_spec to specify vsphere argument where applicable. Update pool_helper calls to vsphere where needed for tests to pass. Without this change rspec tests for pool_manager_spec exhibit 12 failures. Update pool_manager_spec test with open_socket Pool_manager_spec stubs a tcpsocket connection to simulate this happening directly within _check_pending_vm. This commit updates this to look more like its usage with open_socket, which allows the test to pass.
This commit is contained in:
parent
a15090e005
commit
e6613d56a0
4 changed files with 125 additions and 27 deletions
1
Gemfile
1
Gemfile
|
|
@ -16,6 +16,7 @@ gem 'statsd-ruby', '>= 1.3.0', :require => 'statsd'
|
|||
|
||||
# Test deps
|
||||
group :test do
|
||||
gem 'mock_redis', '>= 0.17.0'
|
||||
gem 'rack-test', '>= 0.6'
|
||||
gem 'rspec', '>= 3.2'
|
||||
gem 'simplecov', '>= 0.11.2'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue