Commit d7ffc806 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-shl-remove-retry-when-enabling-allow-local-requests' into 'master'

Remove retry on allow_local_requests_from_web_hooks_and_services

See merge request gitlab-org/gitlab!53140
parents 6f80f6af 3ea854f2
...@@ -39,27 +39,22 @@ module QA ...@@ -39,27 +39,22 @@ module QA
private private
def set_up_jira_integration def set_up_jira_integration
# Retry is required because allow_local_requests_from_web_hooks_and_services Runtime::ApplicationSettings.set_application_settings(allow_local_requests_from_web_hooks_and_services: true)
# takes some time to get enabled.
# Bug issue: https://gitlab.com/gitlab-org/gitlab/-/issues/217010
QA::Support::Retrier.retry_on_exception(max_attempts: 5, sleep_interval: 3) do
Runtime::ApplicationSettings.set_application_settings(allow_local_requests_from_web_hooks_and_services: true)
page.visit Runtime::Scenario.gitlab_address page.visit Runtime::Scenario.gitlab_address
Flow::Login.sign_in_unless_signed_in Flow::Login.sign_in_unless_signed_in
project.visit! project.visit!
Page::Project::Menu.perform(&:go_to_integrations_settings) Page::Project::Menu.perform(&:go_to_integrations_settings)
QA::Page::Project::Settings::Integrations.perform(&:click_jira_link) QA::Page::Project::Settings::Integrations.perform(&:click_jira_link)
QA::Page::Project::Settings::Services::Jira.perform do |jira| QA::Page::Project::Settings::Services::Jira.perform do |jira|
jira.setup_service_with(url: Vendor::Jira::JiraAPI.perform(&:base_url)) jira.setup_service_with(url: Vendor::Jira::JiraAPI.perform(&:base_url))
end
expect(page).not_to have_text("Url is blocked")
expect(page).to have_text("Jira settings saved and active.")
end end
expect(page).not_to have_text("Url is blocked")
expect(page).to have_text("Jira settings saved and active.")
end end
def import_jira_issues def import_jira_issues
......
...@@ -19,26 +19,21 @@ module QA ...@@ -19,26 +19,21 @@ module QA
page.has_text? 'Welcome to Jira' page.has_text? 'Welcome to Jira'
end end
# Retry is required because allow_local_requests_from_web_hooks_and_services Runtime::ApplicationSettings.set_application_settings(allow_local_requests_from_web_hooks_and_services: true)
# takes some time to get enabled.
# Bug issue: https://gitlab.com/gitlab-org/gitlab/-/issues/217010
QA::Support::Retrier.retry_on_exception(max_attempts: 5, sleep_interval: 3) do
Runtime::ApplicationSettings.set_application_settings(allow_local_requests_from_web_hooks_and_services: true)
page.visit Runtime::Scenario.gitlab_address page.visit Runtime::Scenario.gitlab_address
Flow::Login.sign_in_unless_signed_in Flow::Login.sign_in_unless_signed_in
project.visit! project.visit!
Page::Project::Menu.perform(&:go_to_integrations_settings) Page::Project::Menu.perform(&:go_to_integrations_settings)
QA::Page::Project::Settings::Integrations.perform(&:click_jira_link) QA::Page::Project::Settings::Integrations.perform(&:click_jira_link)
QA::Page::Project::Settings::Services::Jira.perform do |jira| QA::Page::Project::Settings::Services::Jira.perform do |jira|
jira.setup_service_with(url: Vendor::Jira::JiraAPI.perform(&:base_url)) jira.setup_service_with(url: Vendor::Jira::JiraAPI.perform(&:base_url))
end
expect(page).not_to have_text("Requests to the local network are not allowed")
end end
expect(page).not_to have_text("Requests to the local network are not allowed")
end end
it 'closes an issue via pushing a commit', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/827' do it 'closes an issue via pushing a commit', testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/827' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment