- From: <
>
- To:
- Subject: [chef] Serverspec 2.0 release
- Date: Fri, 3 Oct 2014 12:20:18 -0700 (PDT)
Most of you probably didn't know serverspec released a 2.0.0 today[1]. You
also
might not have noticed but this likely breaks your test kitchen runs with
something like this,
/tmp/busser/suites/serverspec/spec_helper.rb:4:in `<top (required)>':
uninitialized constant Serverspec::Helper::Exec (NameError)
...
From Serverspec,
spec_helper.rb incompatible
spec_helper.rb does not have backward compatibility. So you should
re-generate spec_helper.rb by serverspec-init and check it.
Backend helper and DetectOS helper have been removed
In version 1, you need to include SpecInfra::Helper::backend_type
SpecInfra::Helper::DetectOS to detect the os of target hosts like this.
require 'serverspec'
include SpecInfra::Helper::Ssh
include SpecInfra::Helper::DetectOS
Test-Kitchen by default will install the latest version of serverspec.
Thankfully upgrading is pretty easy. You can do the whole serverspec-init if
you want but my helper looks like this,
require 'serverspec'
# Required by serverspec
set :backend, :exec
[1] -
http://rubygems.org/gems/serverspec/versions/2.0.0
- [chef] Serverspec 2.0 release, bjbq4d, 10/03/2014
Archive powered by MHonArc 2.6.16.