Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Commit

Permalink
Add integration tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Jun 30, 2015
1 parent 270b569 commit cb9bf12
Showing 1 changed file with 27 additions and 2 deletions.
29 changes: 27 additions & 2 deletions test/integration/default/serverspec/default_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,32 @@
require 'spec_helper'

describe 'bsdznc::default' do
describe command('ls -al /') do
its(:stdout) { should match(/bin/) }
describe package('znc') do
it { should be_installed }
end

describe user('znc') do
it { should exist }
it { should have_uid 194 }
it { should have_home_directory '/nonexistent' }
it { should have_login_shell '/usr/sbin/nologin' }
end

describe group('znc') do
it { should exist }
it { should have_gid 194 }
end

describe service('znc') do
it { should be_enabled }
it { should be_running }
end

describe port(194) do
it { should be_listening }
end

describe port(443) do
it { should be_listening }
end
end

0 comments on commit cb9bf12

Please sign in to comment.