Commit 5803731f authored by Jennifer Davis's avatar Jennifer Davis
Browse files

resolving node.set errors

parent d20ef034
......@@ -18,7 +18,7 @@
#
# Manually set this attribute
node.set['rsyslog']['server'] = true
node.normal['rsyslog']['server'] = true
include_recipe 'rsyslog::default'
......
......@@ -3,8 +3,8 @@ require 'spec_helper'
describe 'rsyslog::client' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['server_ip'] = server_ip
node.set['rsyslog']['custom_remote'] = custom_remote
node.normal['rsyslog']['server_ip'] = server_ip
node.normal['rsyslog']['custom_remote'] = custom_remote
end.converge(described_recipe)
end
......@@ -42,8 +42,8 @@ describe 'rsyslog::client' do
context 'on SmartOS' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'smartos', version: 'joyent_20130111T180733Z') do |node|
node.set['rsyslog']['server_ip'] = server_ip
node.set['rsyslog']['custom_remote'] = custom_remote
node.normal['rsyslog']['server_ip'] = server_ip
node.normal['rsyslog']['custom_remote'] = custom_remote
end.converge(described_recipe)
end
......@@ -85,7 +85,7 @@ describe 'rsyslog::client' do
context 'on SmartOS' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'smartos', version: 'joyent_20130111T180733Z') do |node|
node.set['rsyslog']['server_ip'] = server_ip
node.normal['rsyslog']['server_ip'] = server_ip
end.converge(described_recipe)
end
......
......@@ -14,7 +14,7 @@ describe 'rsyslog::default' do
context "when node['rsyslog']['relp'] is true" do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['use_relp'] = true
node.normal['rsyslog']['use_relp'] = true
end.converge(described_recipe)
end
......@@ -27,7 +27,7 @@ describe 'rsyslog::default' do
context "when node['rsyslog']['tls_ca_file'] is not set" do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['enable_tls'] = true
node.normal['rsyslog']['enable_tls'] = true
end.converge(described_recipe)
end
......@@ -39,8 +39,8 @@ describe 'rsyslog::default' do
context "when node['rsyslog']['tls_ca_file'] is set" do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['enable_tls'] = true
node.set['rsyslog']['tls_ca_file'] = '/etc/path/to/ssl-ca.crt'
node.normal['rsyslog']['enable_tls'] = true
node.normal['rsyslog']['tls_ca_file'] = '/etc/path/to/ssl-ca.crt'
end.converge(described_recipe)
end
......@@ -56,9 +56,9 @@ describe 'rsyslog::default' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['enable_tls'] = true
node.set['rsyslog']['tls_ca_file'] = '/etc/path/to/ssl-ca.crt'
node.set['rsyslog']['protocol'] = 'udp'
node.normal['rsyslog']['enable_tls'] = true
node.normal['rsyslog']['tls_ca_file'] = '/etc/path/to/ssl-ca.crt'
node.normal['rsyslog']['protocol'] = 'udp'
end.converge(described_recipe)
end
......
......@@ -3,7 +3,7 @@ require 'spec_helper'
describe 'rsyslog::server' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '12.04') do |node|
node.set['rsyslog']['server'] = false
node.normal['rsyslog']['server'] = false
end.converge(described_recipe)
end
......@@ -57,7 +57,7 @@ describe 'rsyslog::server' do
context 'on SmartOS' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'smartos', version: 'joyent_20130111T180733Z') do |node|
node.set['rsyslog']['server'] = false
node.normal['rsyslog']['server'] = false
end.converge(described_recipe)
end
......@@ -104,7 +104,7 @@ describe 'rsyslog::server' do
let(:chef_run) do
ChefSpec::ServerRunner.new(platform: 'smartos', version: 'joyent_20130111T180733Z') do |node|
node.set['rsyslog']['server'] = false
node.normal['rsyslog']['server'] = false
end.converge(described_recipe)
end
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment