Sha256: b56c0e03f2cc43bbfe069272a5940332d34e42075c22c1687080fb218b92b7c3
Contents?: true
Size: 1.25 KB
Versions: 6
Compression:
Stored size: 1.25 KB
Contents
require 'chef_metal_fog/providers/aws/credentials' describe ChefMetalFog::Providers::AWS::Credentials do describe "#load_ini" do let(:aws_credentials_ini_file) { File.join(File.expand_path('../../../../support', __FILE__), 'aws/ini-file.ini') } before do described_class.load_ini(aws_credentials_ini_file) end it "should load a default profile" do expect(described_class['default']).to include(:aws_access_key_id) end it "should load the correct values" do expect(described_class['default'][:aws_access_key_id]).to eq "12345" end it "should load several profiles" do expect(described_class.keys.length).to eq 2 end end describe "#load_csv" do let(:aws_credentials_csv_file) { File.join(File.expand_path('../../../../support', __FILE__), 'aws/config-file.csv') } before do described_class.load_csv(aws_credentials_csv_file) end it "should load a single profile" do expect(described_class['default']).to include(:aws_access_key_id) end it "should load the correct values" do expect(described_class['default'][:aws_access_key_id]).to eq "12345" end it "should load several profiles" do expect(described_class.keys.length).to eq 2 end end end
Version data entries
6 entries across 6 versions & 1 rubygems