I’m running into trouble using ChefSpec 3.2.0 and converging a
ChefSpec runner with an encrypted data bag. The data bag I’m trying
to load is referenced by a node attribute, like this:
So in my ChefSpec runner, I’ve set that node attribute:
let(:chef_run) do
ChefSpec::Runner.new do |node|
node.override["percona"]["encrypted_data_bag"] = 'something'
end.converge(described_recipe)
end
But converging the ChefSpec running seems to choke on this. Are these
attributes not being assigned in the Runner object? I’ve placed a
puts statement in my recipe code and the tests print out the correct
bogus attribute I defined, “something.”
I'm running into trouble using ChefSpec 3.2.0 and converging a
ChefSpec runner with an encrypted data bag. The data bag I'm trying
to load is referenced by a node attribute, like this:
So in my ChefSpec runner, I've set that node attribute:
let(:chef_run) do
ChefSpec::Runner.new do |node|
node.override["percona"]["encrypted_data_bag"] = 'something'
end.converge(described_recipe)
end
But converging the ChefSpec running seems to choke on this. Are these
attributes not being assigned in the Runner object? I've placed a
puts statement in my recipe code and the tests print out the correct
bogus attribute I defined, "something."
I'm running into trouble using ChefSpec 3.2.0 and converging a
ChefSpec runner with an encrypted data bag. The data bag I'm trying
to load is referenced by a node attribute, like this:
So in my ChefSpec runner, I've set that node attribute:
let(:chef_run) do
ChefSpec::Runner.new do |node|
node.override["percona"]["encrypted_data_bag"] = 'something'
end.converge(described_recipe)
end
But converging the ChefSpec running seems to choke on this. Are these
attributes not being assigned in the Runner object? I've placed a
puts statement in my recipe code and the tests print out the correct
bogus attribute I defined, "something."