Sha256: f4182d9cd547593fae1222a7cbbce70e4abf9f805307c60be263cb046af00322

Contents?: true

Size: 917 Bytes

Versions: 1

Compression:

Stored size: 917 Bytes

Contents

require "barnyard_aws"
require "logger"

describe BarnyardAws do

  AWS_SECRET_ACCESS_KEY=ENV["AWS_SECRET_ACCESS_KEY"]
  AWS_ACCESS_KEY_ID=ENV["AWS_ACCESS_KEY_ID"]

  it "all should work" do

    my_logger = Logger.new(STDOUT)
    my_logger.level = Logger::INFO

    redis_settings = {
        :host => "localhost",
        :port => 6379,
    }

    [BarnyardAws::AwsElbs, BarnyardAws::AwsSecurityGroups,
     BarnyardAws::AwsInstances, BarnyardAws::AwsSnapshots,
     BarnyardAws::AwsVolumes, BarnyardAws::AwsSubnets,
     BarnyardAws::AwsIamUsers, BarnyardAws::AwsIamGroupPolicies].each do |o|

      o.new(aws_access_key_id: AWS_ACCESS_KEY_ID,
            aws_secret_access_key: AWS_SECRET_ACCESS_KEY,
            region: "us-west-1",
            account_id: "dev",
            crop_number: 1,
            logger: my_logger,
            redis_settings: redis_settings,
            debug: true)

    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
barnyard_aws-0.0.1 spec/aws_spec.rb