mirror of
https://github.com/puppetlabs/vmpooler-provider-gce.git
synced 2026-01-26 03:18:41 -05:00
fix rubocop and spec tests
This commit is contained in:
parent
daa55fe5b8
commit
a4c730df7b
5 changed files with 49 additions and 31 deletions
|
|
@ -26,8 +26,6 @@ describe 'Vmpooler::PoolManager::Provider::Gce' do
|
|||
zone: '#{zone}'
|
||||
network_name: global/networks/default
|
||||
# network_name: 'projects/itsysopsnetworking/global/networks/shared1'
|
||||
dns_zone_resource_name: 'example-com'
|
||||
dns_zone: 'example.com'
|
||||
:pools:
|
||||
- name: '#{poolname}'
|
||||
alias: [ 'mockpool' ]
|
||||
|
|
@ -56,6 +54,8 @@ EOT
|
|||
|
||||
subject { Vmpooler::PoolManager::Provider::Gce.new(config, logger, metrics, redis_connection_pool, 'gce', provider_options) }
|
||||
|
||||
before(:each) { allow(subject).to receive(:dns).and_return(MockDNS.new()) }
|
||||
|
||||
describe '#name' do
|
||||
it 'should be gce' do
|
||||
expect(subject.name).to eq('gce')
|
||||
|
|
@ -89,7 +89,7 @@ EOT
|
|||
end
|
||||
|
||||
context 'in itsysops' do
|
||||
let(:vmname) { "instance-10" }
|
||||
let(:vmname) { "instance-15" }
|
||||
let(:project) { 'vmpooler-test' }
|
||||
let(:config) { YAML.load(<<-EOT
|
||||
---
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue