rename from AWS to EC2 for consistency

The other cloud provider is GCE and not GCP. In the same way we are creating VMs
in EC2 on AWS.
This commit is contained in:
Samuel Beaulieu 2022-07-07 08:43:03 -05:00
parent ee36ee868d
commit 65c797137e
No known key found for this signature in database
GPG key ID: 12030F74136D0F34
9 changed files with 20 additions and 19 deletions

View file

@ -1,13 +1,13 @@
require 'spec_helper'
require 'mock_redis'
require 'ec2_helper'
require 'vmpooler/providers/aws'
require 'vmpooler/providers/ec2'
RSpec::Matchers.define :relocation_spec_with_host do |value|
match { |actual| actual[:spec].host == value }
end
describe 'Vmpooler::PoolManager::Provider::Aws' do
describe 'Vmpooler::PoolManager::Provider::Ec2' do
let(:logger) { MockLogger.new }
let(:metrics) { Vmpooler::Metrics::DummyStatsd.new }
let(:poolname) { 'debian-9' }
@ -20,7 +20,7 @@ describe 'Vmpooler::PoolManager::Provider::Aws' do
max_tries: 3
retry_factor: 10
:providers:
:aws:
:ec2:
connection_pool_timeout: 1
zone: '#{zone}'
region: '#{region}'
@ -32,7 +32,7 @@ describe 'Vmpooler::PoolManager::Provider::Aws' do
size: 5
timeout: 10
ready_ttl: 1440
provider: 'aws'
provider: 'ec2'
EOT
)
}
@ -49,7 +49,7 @@ EOT
) { MockRedis.new }
end
subject { Vmpooler::PoolManager::Provider::Aws.new(config, logger, metrics, redis_connection_pool, 'aws', provider_options) }
subject { Vmpooler::PoolManager::Provider::Ec2.new(config, logger, metrics, redis_connection_pool, 'ec2', provider_options) }
describe '#manual tests live' do
context 'in itsysops' do

View file

@ -1,9 +1,9 @@
require 'rspec'
describe 'VmpoolerProviderAws' do
describe 'VmpoolerProviderEc2' do
context 'when creating class ' do
it 'sets a version' do
expect(VmpoolerProviderAws::VERSION).not_to be_nil
expect(VmpoolerProviderEc2::VERSION).not_to be_nil
end
end
end