Sha256: b783120c06fe28c006014574b3c43eca800ca2a7a415026e9503c64c9336bb87
Contents?: true
Size: 1.22 KB
Versions: 5
Compression:
Stored size: 1.22 KB
Contents
require 'spec_helper' describe Outliers::Provider do subject { Outliers::Provider } context "#connect_to" do let(:credentials) { ( { :name => "test_credentials_1", "provider" => "aws_ec2", "secret_access_key" => "abc", "access_key_id" => "123" } ) } it "should connect to the provider specified in the given credentials" do expect(subject.connect_to(credentials).class).to eq(Outliers::Providers::Aws::Ec2) end it "should set the credentials instance variable" do expect(subject.connect_to(credentials).credentials). to eq({ :name => "test_credentials_1", "provider" => "aws_ec2", "secret_access_key" => "abc", "access_key_id" => "123" }) end end context "#to_human" do it "should return the name a human would use to access the provider" do expect(Outliers::Providers::Aws::Rds.to_human).to eq('aws_rds') end it "should return the name a human would use to access the provider" do expect(Outliers::Providers::Aws::CloudFormation.to_human).to eq('aws_cloud_formation') end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
outliers-0.3.3 | spec/provider_spec.rb |
outliers-0.3.2 | spec/provider_spec.rb |
outliers-0.3.1 | spec/provider_spec.rb |
outliers-0.3.0 | spec/provider_spec.rb |
outliers-0.2.0 | spec/provider_spec.rb |