chefspec Questions
2
Solved
I created a Chef resource which 'extends' the deploy resource of chef. The basic idea is to check for the existence of a file deploy/crontab similar to mechanisms deploy/after_restart.rb in the sou...
Wavawave asked 24/3, 2014 at 16:15
2
I am investigating if ChefSpec report (with coverage) and Test Kitchen report
can be generated as junit format so they can be parsed then by Jenkins to publish results.
Or if there is some other fr...
Global asked 8/5, 2014 at 18:31
1
Solved
I created my custom LWRP, but when I run the ChefSpec units test. It doesn't know my LWRP actions.
Here is my resource:
actions :install, :uninstall
default_action :install
attribute :version,...
Squalene asked 21/3, 2014 at 15:1
1
Solved
I have a simple test for the nginx cookbook:
require 'spec_helper'
describe 'my_cookbook::nginx' do
let(:chef_run) do
ChefSpec::Runner.new do |node|
node.set['nginx']['dir'] = '/etc/nginx'
en...
Stanchion asked 13/2, 2014 at 18:39
1
Solved
I'm trying to test a role with ChefSpec. I would rather not use Chef Zero (by requiring 'chefspec/server') just because it runs a bit slower than ChefSpec does on it's own.
Perhaps I'm reading the...
Kiushu asked 29/1, 2014 at 20:45
1
Solved
I'm rather new to Ruby, but I have been doing a lot of research on Chef testing for the past two weeks. This test uses ChefSpec & Fauxhai, but it doesn't look very "ruby-ish" and I was hoping t...
Witchcraft asked 5/3, 2013 at 13:42
1
© 2022 - 2024 — McMap. All rights reserved.