aboutsummaryrefslogtreecommitdiff
path: root/spec/classes
diff options
context:
space:
mode:
authorTomas Barton <barton.tomas@gmail.com>2014-01-26 11:59:34 +0100
committerTomas Barton <barton.tomas@gmail.com>2014-01-26 18:26:35 +0100
commitc1588ff6c304aeb1a8c8c39e3c8c957eedfac160 (patch)
tree04860e3aba80c7b6b42c25d312b1f01ffd831e63 /spec/classes
parent5ce0dcda9776ada2b556f7e1de31702a32a9b318 (diff)
downloadpuppet-sshd-c1588ff6c304aeb1a8c8c39e3c8c957eedfac160.tar.gz
puppet-sshd-c1588ff6c304aeb1a8c8c39e3c8c957eedfac160.tar.bz2
test changing port
Diffstat (limited to 'spec/classes')
-rw-r--r--spec/classes/init_spec.rb10
1 files changed, 9 insertions, 1 deletions
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