From c1588ff6c304aeb1a8c8c39e3c8c957eedfac160 Mon Sep 17 00:00:00 2001 From: Tomas Barton Date: Sun, 26 Jan 2014 11:59:34 +0100 Subject: test changing port --- spec/classes/init_spec.rb | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/spec/classes/init_spec.rb b/spec/classes/init_spec.rb index 1bf0750..7628be0 100644 --- a/spec/classes/init_spec.rb +++ b/spec/classes/init_spec.rb @@ -2,7 +2,6 @@ require 'spec_helper' describe 'sshd' do - shared_examples "a Linux OS" do it { should compile.with_all_deps } it { should contain_class('sshd') } @@ -22,6 +21,15 @@ describe 'sshd' do 'mode' => '0600', } )} + + context 'change ssh port' do + let(:params){{ + :ports => [ 22222], + }} + it { should contain_file( + 'sshd_config' + ).with_content(/Port 22222/)} + end end context "Debian OS" do -- cgit v1.2.3