This repository has been archived by the owner on Sep 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |