-
Notifications
You must be signed in to change notification settings - Fork 164
Add a generic rspec module, and use and test it via the generator script. #408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
end | ||
include_context "run with driver", :driver_string => "#{snake_name}" | ||
|
||
with_chef_server do |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this need to be the when_the_chef_12_server
like we have in all the AWS tests? I like with_chef_server
much better but I am curious about what the switch means
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, with_chef_server
actually calls when_the_chef_12_server
, but
- with a clearer name, and
- with default values.
All the chef-provisioning-aws
invocations look like
when_the_chef_12_server "exists", organization: 'foo', server_scope: :context
and this encapsulates (overridable) defaults
organization: "spec_tests", server_scope: :context, port: 8900..9000
This is awesome. I have 1 question but I am 👍 on this and you can merge it |
6a83773
to
f2e2713
Compare
… can include to easily load the driver for testing. - Wrap 'when_the_chef_12_server' in 'with_chef_server' with common defaults (which can be overridden). - Rake tasks to automate testing the driver generator and specs. - Add required version restrictions in the generated Gemfile. - Add some basic reality-checking specs to the generated driver, including a loading a new no-op resource in the new driver. - Add 'rake cycle' to Travis to run the whole generate-test sequence.
f2e2713
to
911180c
Compare
Add a generic rspec module, and use and test it via the generator script.
Add a generic rspec module, and use and test it via the generator script.
Add a generic rspec module, and use and test it via the generator script.
No description provided.