diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-14 21:09:52 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-04-14 21:09:52 +0000 |
commit | ae93b284016c07a8a4b47e2510789253d14870f3 (patch) | |
tree | c7dc8690b841dd7d3a4eeeca944969d14df582a6 /spec/controllers | |
parent | f697dc5e76dfc5894df006d53b2b7e751653cf05 (diff) | |
download | gitlab-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.rb | 18 |
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 |