bazaarvoice / cloudformation-ruby-dsl

Ruby DSL for creating Cloudformation templates
Apache License 2.0
210 stars 76 forks source link

Basic acceptance tests #95

Closed lwoodson closed 8 years ago

lwoodson commented 8 years ago

Sets up a single acceptance test for the most basic case (cloudformation template that creates a single AWS bucket). Uses Rspec for testing. Opts to validate the JSON output of the ruby DSL using aws cli tools to avoid many/any dependencies on cloudformation-ruby-dsl's internal structure/code. Contains:

You can run the specs by checking out this branch and executing rspec or simply rake. This will set it up to play nicely with travis.ci. A separate PR will get this working with travis.ci. A third PR will include a validation of examples/cloudformation-ruby-script.rb and fixes to it (the JSON it outputs currently fails aws cli validation).

Example run:

./cloudformation-ruby-dsl $ rspec --format documentation

cloudformation-ruby-dsl
  simplest template
    should create a valid JSON template from the example ruby template

Finished in 1.78 seconds (files took 0.09376 seconds to load)
1 example, 0 failures
jonaf commented 8 years ago

LGTM! Love it!