Sha256: 9915e69f5773cd738eccabebfe86fd5351a79ece9512ffe345e8df763f79d774

Contents?: true

Size: 916 Bytes

Versions: 1

Compression:

Stored size: 916 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.3 spec/aws_spec.rb