8000 GitHub - marcy-works/awspec: RSpec tests for your AWS resources.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

marcy-works/awspec

 
 

Repository files navigation

awspec Build Status

RSpec tests for your AWS resources.

Installation

Add this line to your application's Gemfile:

gem 'awspec'

And then execute:

$ bundle

Or install it yourself as:

$ gem install awspec

Usage

1. Generate awspec template

$ awspec init

2. Write *_spec.rb

describe ec2('i-ec12345a') do
  it { should be_running }
  its(:instance_id) { should eq 'i-ec12345a' }
  its(:image_id) { should eq 'ami-abc12def' }
  its(:public_ip_address) { should eq '123.0.456.789' }
  it { should have_security_group('my-security-group-name') }
  it { should belong_to_vpc('my-vpc') }
  it { should belong_to_subnet('subnet-1234a567') }
  it { should have_eip('123.0.456.789') }
end

Support AWS Resources

  • EC2
  • RDS
    • RDS DB Parameter
  • Security Group
  • VPC

Next..

  • S3
  • Route53
  • ...

Contributing

  1. Fork it ( https://github.com/k1LoW/awspec/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

References

About

RSpec tests for your AWS resources.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%
0