diff --git a/spec/recipes/server_spec.rb b/spec/recipes/server_spec.rb index 63eeab8..ee65b1e 100644 --- a/spec/recipes/server_spec.rb +++ b/spec/recipes/server_spec.rb @@ -201,7 +201,7 @@ context 'with provided login banner path' do cached(:chef_run) do ChefSpec::ServerRunner.new do |node| - node.normal['ssh-hardening']['ssh']['banner'] = '/etc/ssh/banner' + node.normal['ssh-hardening']['ssh']['server']['banner'] = '/etc/ssh/banner' end.converge(described_recipe) end @@ -224,7 +224,7 @@ context 'with enabled debian banner' do cached(:chef_run) do ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') do |node| - node.normal['ssh-hardening']['ssh']['os_banner'] = true + node.normal['ssh-hardening']['ssh']['server']['os_banner'] = true end.converge(described_recipe) end