Skip to content
Snippets Groups Projects
Commit fc1c18ccac94 authored by Kenneth Chu's avatar Kenneth Chu
Browse files

Explicitly mock that the nginx service is down

parent 650f0a15660f
No related branches found
No related tags found
2 merge requests!51Validate shift of Heptapod 0.25 to oldstable series,!44GitLab 14.0
......@@ -102,6 +102,11 @@
end
context 'when NGINX is not running' do
before do
allow_any_instance_of(OmnibusHelper).to receive(:service_up?).and_return(false)
allow_any_instance_of(OmnibusHelper).to receive(:service_up?).with('nginx').and_return(false)
end
it 'does not attempt to create a certificate' do
expect(chef_run).not_to create_acme_certificate('staging')
expect(chef_run).not_to create_acme_certificate('production')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment