Skip to content
代码片段 群组 项目
提交 b2df2eed 编辑于 作者: Vishal Patel's avatar Vishal Patel 提交者: Andrejs Cunskis
浏览文件

Quarantine manage test for airgapped job

上级 61e33bcb
No related branches found
No related tags found
无相关合并请求
...@@ -2,12 +2,7 @@ ...@@ -2,12 +2,7 @@
module QA module QA
RSpec.shared_examples 'registration and login' do RSpec.shared_examples 'registration and login' do
it 'allows the user to register and login', it 'allows the user to register and login' do
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
Resource::User.fabricate_via_browser_ui! do |user_resource| Resource::User.fabricate_via_browser_ui! do |user_resource|
...@@ -22,7 +17,12 @@ module QA ...@@ -22,7 +17,12 @@ module QA
RSpec.describe 'Manage', :skip_signup_disabled, :requires_admin, product_group: :authentication_and_authorization do RSpec.describe 'Manage', :skip_signup_disabled, :requires_admin, product_group: :authentication_and_authorization do
describe 'while LDAP is enabled', :orchestrated, :ldap_no_tls, describe 'while LDAP is enabled', :orchestrated, :ldap_no_tls,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347934' do testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347934',
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
before do before do
# When LDAP is enabled, a previous test might have created a token for the LDAP 'tanuki' user who is not an admin # When LDAP is enabled, a previous test might have created a token for the LDAP 'tanuki' user who is not an admin
# So we need to set it to nil in order to create a new token for admin user so that we are able to set_application_settings # So we need to set it to nil in order to create a new token for admin user so that we are able to set_application_settings
...@@ -48,7 +48,12 @@ module QA ...@@ -48,7 +48,12 @@ module QA
end end
describe 'standard', :reliable, testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347867' do describe 'standard', :reliable, testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347867' do
context 'when admin approval is not required' do context 'when admin approval is not required',
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
before(:all) do before(:all) do
set_require_admin_approval_after_user_signup(false) set_require_admin_approval_after_user_signup(false)
end end
...@@ -80,12 +85,7 @@ module QA ...@@ -80,12 +85,7 @@ module QA
end end
it 'allows recreating with same credentials', :reliable, it 'allows recreating with same credentials', :reliable,
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347868', testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347868' do
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
expect(Page::Main::Menu.perform(&:signed_in?)).to be_falsy expect(Page::Main::Menu.perform(&:signed_in?)).to be_falsy
Flow::Login.sign_in(as: user, skip_page_validation: true) Flow::Login.sign_in(as: user, skip_page_validation: true)
...@@ -107,7 +107,13 @@ def admin_api_client ...@@ -107,7 +107,13 @@ def admin_api_client
end end
end end
context 'when admin approval is required' do context 'when admin approval is required',
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347871',
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
let(:signed_up_waiting_approval_text) do let(:signed_up_waiting_approval_text) do
'You have signed up successfully. However, we could not sign you in because your account is awaiting approval from your GitLab administrator.' 'You have signed up successfully. However, we could not sign you in because your account is awaiting approval from your GitLab administrator.'
end end
...@@ -131,13 +137,7 @@ def admin_api_client ...@@ -131,13 +137,7 @@ def admin_api_client
set_require_admin_approval_after_user_signup(false) set_require_admin_approval_after_user_signup(false)
end end
it 'allows user login after approval', it 'allows user login after approval' do
testcase: 'https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/347871',
quarantine: {
only: { job: 'airgapped' },
issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/414247',
type: :investigating
} do
user # sign up user user # sign up user
expect(page).to have_text(signed_up_waiting_approval_text) expect(page).to have_text(signed_up_waiting_approval_text)
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册