diff options
Diffstat (limited to 'files/puppet/modules/pixelated/spec/classes/tests_spec.rb')
-rw-r--r-- | files/puppet/modules/pixelated/spec/classes/tests_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/files/puppet/modules/pixelated/spec/classes/tests_spec.rb b/files/puppet/modules/pixelated/spec/classes/tests_spec.rb index eaf347c..be69cf2 100644 --- a/files/puppet/modules/pixelated/spec/classes/tests_spec.rb +++ b/files/puppet/modules/pixelated/spec/classes/tests_spec.rb @@ -11,13 +11,12 @@ describe 'pixelated::tests' do :testscenario => 'single_node', } end - + let!(:ensure_packages) { MockFunction.new('ensure_packages',{:type => :statement}) } let(:pre_condition) { [ "class stdlib {}", ] } - it do should contain_file('/srv/leap/tests_custom').with( 'ensure' => 'directory', @@ -31,11 +30,9 @@ describe 'pixelated::tests' do ) end - - it { should contain_file('/srv/leap/tests_custom/pixelated.rb')} it { should contain_file('/usr/local/bin/phantomjs')} - + it do should contain_exec('dummy_register_job').with( "require" => "Class[::Check_mk::Agent::Install]" @@ -43,7 +40,7 @@ describe 'pixelated::tests' do end it do should contain_cron('run_functional_tests').with( - "command" => """(date; INVITE_CODE_ENABLED=true /usr/bin/mk-job pixelated-functional-tests /usr/local/bin/behave --tags @staging --tags ~@wip --no-capture -k /srv/leap/tests_custom/functional-tests/) >> /var/log/check_mk_jobs.log 2>&1" + "command" => """(date; INVITE_CODE_ENABLED=true /usr/bin/mk-job pixelated-functional-tests /usr/local/bin/behave --stop --tags @staging --tags ~@wip --no-capture -k /srv/leap/tests_custom/functional-tests/) >> /var/log/check_mk_jobs.log 2>&1" ) end end |