summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 21:09:52 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2020-04-14 21:09:52 +0000
commitae93b284016c07a8a4b47e2510789253d14870f3 (patch)
treec7dc8690b841dd7d3a4eeeca944969d14df582a6 /spec/controllers
parentf697dc5e76dfc5894df006d53b2b7e751653cf05 (diff)
downloadgitlab-ce-ae93b284016c07a8a4b47e2510789253d14870f3.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/pages_domains_controller_spec.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/controllers/projects/pages_domains_controller_spec.rb b/spec/controllers/projects/pages_domains_controller_spec.rb
index ef5e831d26c..c78c5fe2886 100644
--- a/spec/controllers/projects/pages_domains_controller_spec.rb
+++ b/spec/controllers/projects/pages_domains_controller_spec.rb
@@ -181,6 +181,24 @@ describe Projects::PagesDomainsController do
end
end
+ describe 'POST retry_auto_ssl' do
+ before do
+ pages_domain.update!(auto_ssl_enabled: true, auto_ssl_failed: true)
+ end
+
+ let(:params) { request_params.merge(id: pages_domain.domain) }
+
+ it 'calls retry service and redirects' do
+ expect_next_instance_of(PagesDomains::RetryAcmeOrderService, pages_domain) do |service|
+ expect(service).to receive(:execute)
+ end
+
+ post :retry_auto_ssl, params: params
+
+ expect(response).to redirect_to project_pages_domain_path(project, pages_domain)
+ end
+ end
+
describe 'DELETE destroy' do
it "deletes the pages domain" do
expect do