Skip to content
Snippets Groups Projects
Commit b95f4e5e authored by Aboobacker MK's avatar Aboobacker MK :art:
Browse files

Fix domain edit page when auto_ssl failed

Changelog: fixed
EE: true
parent ff89b210
No related branches found
No related tags found
1 merge request!121246Fix domain edit page when auto_ssl failed
......@@ -52,4 +52,4 @@
class: "form-control"
%p.help-inline.text-muted= _("Upload a private key for your certificate")
= render 'lets_encrypt_callout', auto_ssl_available_and_enabled: auto_ssl_available_and_enabled
= render 'lets_encrypt_callout', auto_ssl_available_and_enabled: auto_ssl_available_and_enabled, group: @group
......@@ -17,6 +17,10 @@
create(:pages_domain, :letsencrypt, domain: 'letsencrypt.domain.test', project: project)
end
let_it_be(:domain_with_letsencrypt_with_auto_ssl_failed) do
create(:pages_domain, :letsencrypt, domain: 'letsencrypt.domain.example', project: project, auto_ssl_failed: true)
end
let(:domain_params) { { domain: 'www.other-domain.test' } }
let(:domain_secure_params) do
......@@ -238,6 +242,15 @@
expect(response.body).to include(domain_with_letsencrypt.domain)
end
it 'returns domain with letsencrypt with auto_ssl_failed', :aggregate_failures do
stub_application_setting(lets_encrypt_terms_of_service_accepted: true)
get group_settings_domain_verification_path(group, domain_with_letsencrypt_with_auto_ssl_failed)
expect(response).to have_gitlab_http_status(:ok)
expect(response.body).to include(domain_with_letsencrypt_with_auto_ssl_failed.domain)
expect(response.body).to include("Retry")
end
subject { get group_settings_domain_verification_path(group, domain) }
it_behaves_like 'renders 404 when domain_verification is unavailable'
......
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