Upgrade to latest serverspec/specinfra
This commit is contained in:
parent
d13ea38c2f
commit
ea6441eb57
13
Gemfile
13
Gemfile
@ -1,22 +1,21 @@
|
||||
source 'https://rubygems.org'
|
||||
|
||||
group :lint do
|
||||
gem 'foodcritic', '~> 3.0'
|
||||
gem 'rubocop', '~> 0.18'
|
||||
gem 'rainbow', '< 2.0'
|
||||
gem 'foodcritic'
|
||||
gem 'rubocop'
|
||||
end
|
||||
|
||||
group :unit do
|
||||
gem 'berkshelf', '~> 3.1'
|
||||
gem 'chefspec', '~> 3.4'
|
||||
gem 'berkshelf'
|
||||
gem 'chefspec'
|
||||
end
|
||||
|
||||
group :kitchen_common do
|
||||
gem 'test-kitchen', '~> 1.2'
|
||||
gem 'test-kitchen'
|
||||
end
|
||||
|
||||
group :kitchen_vagrant do
|
||||
gem 'kitchen-vagrant', '~> 0.11'
|
||||
gem 'kitchen-vagrant'
|
||||
end
|
||||
|
||||
group :kitchen_cloud do
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
require_relative '../../../kitchen/data/spec_helper'
|
||||
require_relative './spec_helper'
|
||||
|
||||
describe 'postfix::aliases' do
|
||||
context 'configures' do
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
require_relative '../../../kitchen/data/spec_helper'
|
||||
require_relative './spec_helper'
|
||||
|
||||
describe 'postfix::client' do
|
||||
it 'doesnt configure postfix because solo is unsupported' do
|
||||
|
@ -14,7 +14,7 @@
|
||||
# limitations under the License.
|
||||
#
|
||||
|
||||
require_relative '../../../kitchen/data/spec_helper'
|
||||
require_relative './spec_helper'
|
||||
|
||||
describe 'postfix::default' do
|
||||
describe package('postfix') do
|
||||
|
3
test/integration/helpers/serverspec/spec_helper.rb
Normal file
3
test/integration/helpers/serverspec/spec_helper.rb
Normal file
@ -0,0 +1,3 @@
|
||||
require 'serverspec'
|
||||
|
||||
set :backend, :exec
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
require_relative '../../../kitchen/data/spec_helper'
|
||||
require_relative './spec_helper'
|
||||
|
||||
describe 'postfix::sasl_auth' do
|
||||
let(:sasl_passwd_file) { '/etc/postfix/sasl_passwd' }
|
||||
|
@ -13,7 +13,7 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
#
|
||||
require_relative '../../../kitchen/data/spec_helper'
|
||||
require_relative './spec_helper'
|
||||
|
||||
describe 'postfix::server' do
|
||||
it 'doesnt configure postfix because solo is unsupported' do
|
||||
|
@ -1,12 +0,0 @@
|
||||
require 'serverspec'
|
||||
|
||||
include SpecInfra::Helper::Exec
|
||||
include SpecInfra::Helper::DetectOS
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.before(:all) do
|
||||
# centos-59 doesn't have /sbin in the default path,
|
||||
# so we must ensure it's on serverspec's path
|
||||
config.path = '/sbin'
|
||||
end
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user