Skip to content
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

Merged
merged 4 commits into from
Aug 18, 2015
Merged

Add from_image support #291

merged 4 commits into from
Aug 18, 2015

Conversation

Fodoj
Copy link
Contributor

@Fodoj Fodoj commented Aug 18, 2015

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.

@tyler-ball
Copy link
Contributor

One manual test before we merge this. Can you check through the console and make sure the 'test_machine_ami' image got deleted after the test finished?

@@ -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
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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!

@Fodoj
Copy link
Contributor Author

Fodoj commented Aug 18, 2015

Hmm, nope, test_image_ami was not removed. How can I do it?

@Fodoj
Copy link
Contributor Author

Fodoj commented Aug 18, 2015

@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',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect! Excellent troubleshooting

tyler-ball added a commit that referenced this pull request Aug 18, 2015
@tyler-ball tyler-ball merged commit b46723e into chef-boneyard:master Aug 18, 2015
@tyler-ball
Copy link
Contributor

Thanks for the awesome work @Fodoj !

@Fodoj
Copy link
Contributor Author

Fodoj commented Aug 18, 2015

Thanks for reviewing and merging this stuff 👍

@tas50 tas50 added Triage: Needs Information Indicates an issue needs more information in order to work on it. and removed Status: Pending Contributor Response labels Dec 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Triage: Needs Information Indicates an issue needs more information in order to work on it. Type: Enhancement Adds new functionality.
Development

Successfully merging this pull request may close these issues.

cannot build machine using from_image in AWS
3 participants