[chef] Re: Re: Serverspec vs Mintest Feedback


Chronological Thread 
  • From: Ranjib Dey < >
  • To: " " < >
  • Subject: [chef] Re: Re: Serverspec vs Mintest Feedback
  • Date: Mon, 5 Jan 2015 00:38:11 -0800

and you can always construct the node object as 

Chef::Config.from_file '/etc/chef/clinet.rb'
node = Chef::Node.load(Chef::Config[:node_name])

..but as julian mentioned, chef is not a test harness system, but rspec+serverspec is. Also, serverspec provides ssh and various other mode of transport (specinfra subproject), 

cheers
ranjib


On Mon, Jan 5, 2015 at 12:31 AM, Julian C. Dunn < " target="_blank"> > wrote:
On Sat, Jan 3, 2015 at 12:00 PM, David Petzel < "> > wrote:
> TLDR - I'm interesting in knowing why folks are moving away from Minitest,
> toward ServerSpec.

I think your statement:

" As I understand this is might be possible with ServerSpec, however
its not as simple, and comes with the lose of the node object data?"

is the crux of the reason why people are moving away from Minitest to
Serverspec -- because folks want the acceptance tests to not be
contaminated in any way by the mechanism by which it got there. They
see it as a /benefit/ that node state is not shared between the two.

- Julian

--
[ Julian C. Dunn < "> >          * Sorry, I'm    ]
[ WWW: http://www.aquezada.com/staff/julian    * only Web 1.0  ]
[ gopher://sdf.org/1/users/keymaker/           * compliant!    ]
[ PGP: 91B3 7A9D 683C 7C16 715F 442C 6065 D533 FDC2 05B9       ]




Archive powered by MHonArc 2.6.16.

§