-
Notifications
You must be signed in to change notification settings - Fork 43
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
Extracting Nagios part of this library to make it useful for development mode #39
Comments
Hoi, I've been using cucumber-nagios for a few projects in the way you've described and it's worked out really well. It would be good to formalise this with some documentation and examples. Currently you can run cucumber-nagios with the
I use this frequently when writing my scenarios. You can skip over removing the server connecting part by just writing steps that can be executed locally. Adam Jacob from Opscode actually contributed a bunch of step definitions from Chef's test suite to cucumber-nagios a while back. They should give you a good starting point for writing your own step definitions that can be run locally. That said, I'm sure there a few rough edges and things that I've missed. Any contributions to cucumber-nagios you want to make would be really worthwhile. How does that sound? |
(Dutch, really? haha. Klinkt goed :) ) I'll look into the --pretty option. That might be good enough. I'll just start working with it and comment here as soon as I have something (re)usable :) |
(Mijn schoonvader komt uit Nijmegen :-) ) Sounds awesome. Let me know how you go! |
I'm adding tests to my chef/vagrant setup right now, I'm not sure I understand what features would make this more awesome. I'm just running I would totally love a good set of vagrant steps though. |
@josephholsten: is it possible to extract any of the Vagrant features/scenarios/steps out into re-usable bits for cucumber-nagios? |
I'm building my vagrant steps around aruba because it has better isolation than the file system steps from chef. But I certainly hope so. At the moment I'm making due with these steps:
and I extend my timeouts and make sure to teardown in my
The best extraction would probably migrating to aruba for command line steps. Unfortunately, they collide with the ssh steps (which so useful!) at the moment, so there isn't a straightforward migration path. |
Auxesis asked me to take over CN. |
Hi,
I have been in search for a library that can help me with the (behaviour driven) development of a system setup with Chef cookbooks. So far this library has been the best I have come accross, but it is not exactly what I want.
What I would like to do is test my Chef Recipes by describing the expected outcome in Cucumber features (like with Cucumber-Nagios), but instead of having to use a remote server and having integration with Nagios I would like to use Vagrant and just see whether my test pass or not. Later I would like to plug these tests into Cucumber-Nagios to reuse them for monitoring.
I'm guessing that we are almost there. I think it is just a matter of extracting the server connecting part (not remote, but localhost) and the output part (no Nagios but just plain Cucumber output). The step definitions and such are probably already in the form they should be.
In the near future I would like to work on this if you also agree that this would be a worthwhile expansion of the current library. WDYT?
Regards,
Jeroen
The text was updated successfully, but these errors were encountered: