# Chef InSpec test for recipe strfry::default # The Chef InSpec reference, with examples and extensive documentation, can be # found at https://docs.chef.io/inspec/resources/ describe user('strfry') do it { should exist } end describe group('strfry') do it { should exist } end describe file('/usr/local/bin/strfry') do it { should exist } its('mode') { should cmp '00755' } end describe file('/etc/strfry.conf') do it { should exist } its('content') { should match(/name\s*=\s*"Test relay"/m) } end describe file('/var/lib/strfry') do it { should be_directory } end describe port(7778) do it { should be_listening } its('addresses') { should include '0.0.0.0' } end