diff options
author | mh <mh@immerda.ch> | 2016-11-04 15:17:40 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2016-11-04 15:17:40 +0100 |
commit | 34ef388fcfc92d37faad08ca9216d787a53e186c (patch) | |
tree | e7c24c62543187bfb55ab12e4092e34846288f4a /spec | |
parent | a51345c154ed58731eef7719492e492953c2531c (diff) |
rename hidden service to onion service to follow the new naming conventions
Diffstat (limited to 'spec')
-rw-r--r-- | spec/defines/daemon_onion_service_spec.rb (renamed from spec/defines/daemon_hidden_service_spec.rb) | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/spec/defines/daemon_hidden_service_spec.rb b/spec/defines/daemon_onion_service_spec.rb index 7a3aae6..bf9641d 100644 --- a/spec/defines/daemon_hidden_service_spec.rb +++ b/spec/defines/daemon_onion_service_spec.rb @@ -1,7 +1,7 @@ require File.expand_path(File.join(File.dirname(__FILE__),'../spec_helper')) require 'openssl' -describe 'tor::daemon::hidden_service', :type => 'define' do +describe 'tor::daemon::onion_service', :type => 'define' do let(:default_facts) { { :osfamily => 'RedHat', @@ -15,13 +15,13 @@ describe 'tor::daemon::hidden_service', :type => 'define' do describe 'with standard' do it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with( + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with( :ensure => 'present', :content => /HiddenServiceDir \/var\/lib\/tor\/test_os/, :order => '05', :target => '/etc/tor/torrc', )} - it { is_expected.to_not contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort/) } + it { is_expected.to_not contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort/) } it { is_expected.to_not contain_file('/var/lib/tor/test_os') } context 'on Debian' do let(:facts) { @@ -31,13 +31,13 @@ describe 'tor::daemon::hidden_service', :type => 'define' do } } it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with( + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with( :ensure => 'present', :content => /HiddenServiceDir \/var\/lib\/tor\/test_os/, :order => '05', :target => '/etc/tor/torrc', )} - it { is_expected.to_not contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort/) } + it { is_expected.to_not contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort/) } it { is_expected.to_not contain_file('/var/lib/tor/test_os') } end context 'with differt port params' do @@ -47,8 +47,8 @@ describe 'tor::daemon::hidden_service', :type => 'define' do } } it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort 25 127.0.0.1:25/) } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort 443 192.168.0.1:8443/) } + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort 25 127.0.0.1:25/) } + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort 443 192.168.0.1:8443/) } it { is_expected.to_not contain_file('/var/lib/tor/test_os') } end context 'with private_key' do @@ -59,7 +59,7 @@ describe 'tor::daemon::hidden_service', :type => 'define' do } } it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort 80 127.0.0.1:80/) } + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort 80 127.0.0.1:80/) } it { is_expected.to contain_file('/var/lib/tor/test_os').with( :ensure => 'directory', :purge => true, @@ -93,7 +93,7 @@ describe 'tor::daemon::hidden_service', :type => 'define' do } } it { is_expected.to compile.with_all_deps } - it { is_expected.to contain_concat__fragment('05.hidden_service.test_os').with_content(/^HiddenServicePort 80 127.0.0.1:80/) } + it { is_expected.to contain_concat__fragment('05.onion_service.test_os').with_content(/^HiddenServicePort 80 127.0.0.1:80/) } it { is_expected.to contain_file('/var/lib/tor/test_os').with( :ensure => 'directory', :purge => true, |