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

Support snapshotting SUT #393

Closed
jantman opened this issue Aug 7, 2014 · 6 comments
Closed

Support snapshotting SUT #393

jantman opened this issue Aug 7, 2014 · 6 comments

Comments

@jantman
Copy link
Contributor

jantman commented Aug 7, 2014

It would be really nice to be able to snapshot SUTs. There's a Vagrant plugin for VirtualBox that does it quite nicely, though I haven't tried the cross-provider ones.

I think that the ideal implementation for me would be to just let the user handle all of it, i.e. simply expose the functionality via the DSL and let me, in my tests, take_snapshot(:step1) and restore_snapshot(:step1).

I know it's a pretty big undertaking and I hate submitting issues that I have little to no intent of trying to fix, but this came up when I was trying to test voxpupuli/puppet-rabbitmq#221 (where the package simply can't be cleanly upgraded/downgraded).

@ferventcoder
Copy link
Contributor

👍

@anodelman
Copy link
Contributor

This issue is also filed internally, but it of low priority.

@madAndroid
Copy link
Contributor

We've had great success using vagrant-multiprovider-snap - it's got support for vmware-{fusion,workstation}, virtualbox and hyper-v ..
perhaps it could be integrated into Beaker as well? We've been using it with vagrant-cucumber, but a new project we've recently started is going to be implementing Beaker instead.

@alexjfisher
Copy link
Member

My use case is testing roles. I followed http://tech.opentable.co.uk/blog/2014/09/01/testing-puppet-with-beaker-pt-dot-3-testing-roles/ but then wanted a way to reset my test environment between tests.

alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
Hypervisors supporting snapshotting can override these methods in their
subclasses.
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
We want the hostname string, not the host object.
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
Hypervisors supporting snapshotting can override these methods in their
subclasses.
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
alexjfisher added a commit to alexjfisher/beaker that referenced this issue Feb 2, 2015
We want the hostname string, not the host object.
@anodelman
Copy link
Contributor

#654 closed due to inactivity.

@jantman
Copy link
Contributor Author

jantman commented Mar 9, 2015

So this is just off the table?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants