- From: Daniel Pittman <
>
- To:
- Subject: [chef] Re: Re: Re: Re: Re: Re: Continuous Integration
- Date: Thu, 08 Jul 2010 18:26:04 +1000
AJ Christensen
<
>
writes:
FWIW, R.I.Pienaar has done some work on this in his mcollective tools:
http://www.devco.net/archives/2010/03/27/infrastructure_testing_with_mcollective_and_cucumber.php
Regards,
Daniel
>
It seems what we're all really talking about is some kind of BDD framework
>
for Chef cookbooks - unit testing (also related to --noop) has proven
>
unreliable for this kind of thing: you can't mock UNIX.
>
>
I know there was work done on this in the past - mikehale's chef-bdd
>
project http:// github.com/mikehale/chef-bdd for example.
>
>
On 8 July 2010 15:55, Chad Woolley
>
<
>
>
wrote:
>
>
> On Wed, Jul 7, 2010 at 8:09 PM, Erik Kastner
>
> <
>
>
> wrote: > >
>
> > I wonder if something like this could be useful (at least for file, dir,
>
> template, etc) > http://github.com/defunkt/fakefs
>
>
>
> Ah, you are thinking unit testing, where I was thinking integration
>
> testing.
>
>
>
> In my experience, unit testing Ops/OS/Deploy code is an exercise in
>
> futility. You can faithfully test drive the implementation as you THINK it
>
> should be, but you invariably find that it doesn't work as you expected,
>
> because of some unexpected behavior/interaction of the OS or system. So,
>
> you change the code to actually work on the real system, then change your
>
> tests to match the code. That is pretty pointless, it doesn't even buy you
>
> the regression safety net of normal unit tests (because upgrades to the
>
> OS/System could break you at any time, even if your chef code doesn't
>
> change). I suppose it does provide syntax checking, but that's not worth
>
> the considerable effort, in my opinion.
>
>
>
> On the other hand, saying "after I run Chef, assert that a real remote
>
> system should have the package X installed and service Y running" is pretty
>
> useful.
>
>
>
> -- Chad
>
>
--
✣ Daniel Pittman ✉
☎ +61 401 155 707
♽ made with 100 percent post-consumer electrons
- [chef] Re: Re: Continuous Integration, (continued)
- [chef] Re: Re: Continuous Integration, Chad Woolley, 07/07/2010
- [chef] Re: Re: Re: Continuous Integration, Erik Kastner, 07/07/2010
- [chef] Re: Re: Re: Re: Continuous Integration, Chad Woolley, 07/07/2010
- [chef] Re: Re: Re: Re: Re: Continuous Integration, AJ Christensen, 07/07/2010
- [chef] Re: Re: Re: Re: Re: Re: Continuous Integration, Chad Woolley, 07/07/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Michael Hale, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Michael Hale, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Dreamcat4, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Chad Woolley, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Trotter Cashion, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Continuous Integration, Daniel Pittman, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Thom May, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Joel Merrick, 07/08/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Daniel Pittman, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Andrew Shafer, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Michael Hale, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Jeremy Deininger, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Chad Woolley, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Trotter Cashion, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Jeremy Deininger, 07/09/2010
- [chef] Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Re: Continuous Integration, Ryan Creasey, 07/09/2010
Archive powered by MHonArc 2.6.16.