-
Notifications
You must be signed in to change notification settings - Fork 121
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
Add from_image support #291
Conversation
@@ -52,6 +52,29 @@ | |||
source_dest_check: false | |||
).and be_idempotent | |||
end | |||
|
|||
it "machine with from_image option is created from correct image", :super_slow 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.
Will you actually pull this into its own machine_image.rb
spec file?
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.
Why? It belongs to machine resource => machine spec
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.
oh derp, you're totally right - we're testing the machine from_image
spec. Going to get more coffee now!
Hmm, nope, test_image_ami was not removed. How can I do it? |
@tyler-ball Nevermind, I figured it out. Now it removes AMI after test as expected. |
end | ||
}.to create_an_aws_instance('test_machine', | ||
image_id: driver.ec2.images.filter('name', 'test_machine_ami').first.image_id | ||
).and create_an_aws_image('test_machine_ami', |
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.
Perfect! Excellent troubleshooting
Thanks for the awesome work @Fodoj ! |
Thanks for reviewing and merging this stuff 👍 |
Previously
from_image
implementation was missing. After this fix chef-boneyard/chef-provisioning#366 this implementation is possible now.Fixes #193
@tyler-ball please take a look. Spec is green, I've also tested manually :) Would love to see it merged and 1.4 released soon.