summaryrefslogtreecommitdiff
path: root/files/puppet/modules/pixelated/spec
diff options
context:
space:
mode:
authorvarac <varacanero@zeromail.org>2016-12-19 10:41:47 +0100
committervarac <varacanero@zeromail.org>2016-12-19 10:41:47 +0100
commit38e8e7b31b1b9deb39019ef8a1607d494022fab3 (patch)
tree1e06ce77c19f6a8243c39c69e171628ef581c30c /files/puppet/modules/pixelated/spec
parent16aafa5ba4b629ea65d53454fa5c9af1ca7c8250 (diff)
git subrepo pull files/puppet/modules/pixelated
subrepo: subdir: "files/puppet/modules/pixelated" merged: "21f0340" upstream: origin: "https://github.com/pixelated/puppet-pixelated.git" branch: "master" commit: "21f0340" git-subrepo: version: "0.3.0" origin: "https://github.com/ingydotnet/git-subrepo.git" commit: "841aa43"
Diffstat (limited to 'files/puppet/modules/pixelated/spec')
-rw-r--r--files/puppet/modules/pixelated/spec/classes/tests_spec.rb9
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