Commit 21061935 authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'qa-no-monkey-patching-1_manage' into 'master'

Update 1_manage tests to use outer describe

See merge request gitlab-org/gitlab!35635
parents a4695b01 69e0ebdb
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'airborne' require 'airborne'
module QA module QA
context 'Manage with IP rate limits', :requires_admin do RSpec.describe 'Manage with IP rate limits', :requires_admin do
describe 'Users API' do describe 'Users API' do
let(:api_client) { Runtime::API::Client.new(:gitlab, ip_limits: true) } let(:api_client) { Runtime::API::Client.new(:gitlab, ip_limits: true) }
let(:request) { Runtime::API::Request.new(api_client, '/users') } let(:request) { Runtime::API::Request.new(api_client, '/users') }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'airborne' require 'airborne'
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Users API' do describe 'Users API' do
before(:context) do before(:context) do
@api_client = Runtime::API::Client.new(:gitlab) @api_client = Runtime::API::Client.new(:gitlab)
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Configure', :orchestrated, :mattermost do RSpec.describe 'Configure', :orchestrated, :mattermost do
describe 'Mattermost support' do describe 'Mattermost support' do
it 'user creates a group with a mattermost team' do it 'user creates a group with a mattermost team' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Project transfer between groups' do describe 'Project transfer between groups' do
it 'user transfers a project between groups' do it 'user transfers a project between groups' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :smoke do RSpec.describe 'Manage', :smoke do
describe 'basic user login' do describe 'basic user login' do
it 'user logs in using basic credentials and logs out' do it 'user logs in using basic credentials and logs out' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :orchestrated, :ldap_no_tls, :ldap_tls do RSpec.describe 'Manage', :orchestrated, :ldap_no_tls, :ldap_tls do
describe 'LDAP login' do describe 'LDAP login' do
it 'user logs into GitLab using LDAP credentials' do it 'user logs into GitLab using LDAP credentials' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :orchestrated, :mattermost do RSpec.describe 'Manage', :orchestrated, :mattermost do
describe 'Mattermost login' do describe 'Mattermost login' do
it 'user logs into Mattermost using GitLab OAuth' do it 'user logs into Mattermost using GitLab OAuth' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :orchestrated, :instance_saml do RSpec.describe 'Manage', :orchestrated, :instance_saml do
describe 'Instance wide SAML SSO' do describe 'Instance wide SAML SSO' do
it 'User logs in to gitlab with SAML SSO' do it 'User logs in to gitlab with SAML SSO' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
shared_examples 'registration and login' do RSpec.shared_examples 'registration and login' do
it 'user registers and logs in' do it 'user registers and logs in' do
Runtime::Browser.visit(:gitlab, Page::Main::Login) Runtime::Browser.visit(:gitlab, Page::Main::Login)
...@@ -13,13 +13,13 @@ module QA ...@@ -13,13 +13,13 @@ module QA
end end
end end
context 'Manage', :skip_signup_disabled do RSpec.describe 'Manage', :skip_signup_disabled do
describe 'standard' do describe 'standard' do
it_behaves_like 'registration and login' it_behaves_like 'registration and login'
end end
end end
context 'Manage', :orchestrated, :ldap_no_tls, :skip_signup_disabled do RSpec.describe 'Manage', :orchestrated, :ldap_no_tls, :skip_signup_disabled do
describe 'while LDAP is enabled' do describe 'while LDAP is enabled' do
it_behaves_like 'registration and login' it_behaves_like 'registration and login'
end end
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Add project member' do describe 'Add project member' do
it 'user adds project member' do it 'user adds project member' do
Flow::Login.sign_in Flow::Login.sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :smoke do RSpec.describe 'Manage', :smoke do
describe 'Project creation' do describe 'Project creation' do
it 'user creates a new project' do it 'user creates a new project' do
Flow::Login.sign_in Flow::Login.sign_in
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
require 'nokogiri' require 'nokogiri'
module QA module QA
context 'Manage', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/212145', type: :stale } do RSpec.describe 'Manage', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/212145', type: :stale } do
describe 'Check for broken images', :requires_admin do describe 'Check for broken images', :requires_admin do
before(:context) do before(:context) do
admin = QA::Resource::User.new.tap do |user| admin = QA::Resource::User.new.tap do |user|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :github, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/26952', type: :bug } do RSpec.describe 'Manage', :github, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/26952', type: :bug } do
describe 'Project import from GitHub' do describe 'Project import from GitHub' do
let(:imported_project) do let(:imported_project) do
Resource::ProjectImportedFromGithub.fabricate! do |project| Resource::ProjectImportedFromGithub.fabricate! do |project|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Repository tags' do describe 'Repository tags' do
let(:project) do let(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Project activity' do describe 'Project activity' do
it 'user creates an event in the activity page upon Git push' do it 'user creates an event in the activity page upon Git push' do
Flow::Login.sign_in Flow::Login.sign_in
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'securerandom' require 'securerandom'
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
include Support::Api include Support::Api
let(:api_client) { Runtime::API::Client.new(:gitlab) } let(:api_client) { Runtime::API::Client.new(:gitlab) }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'securerandom' require 'securerandom'
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
shared_examples 'audit event' do |expected_events| shared_examples 'audit event' do |expected_events|
it 'logs audit events for UI operations' do it 'logs audit events for UI operations' do
Page::Group::Menu.perform(&:go_to_audit_events_settings) Page::Group::Menu.perform(&:go_to_audit_events_settings)
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Group file templates', :requires_admin do describe 'Group file templates', :requires_admin do
include Support::Api include Support::Api
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :orchestrated, :ldap_tls, :ldap_no_tls, :requires_admin do RSpec.describe 'Manage', :orchestrated, :ldap_tls, :ldap_no_tls, :requires_admin do
describe 'LDAP Group sync' do describe 'LDAP Group sync' do
include Support::Api include Support::Api
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :group_saml, :orchestrated do RSpec.describe 'Manage', :group_saml, :orchestrated do
describe 'Group SAML SSO - Enforced SSO' do describe 'Group SAML SSO - Enforced SSO' do
include Support::Api include Support::Api
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :group_saml, :orchestrated, :requires_admin, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/202260', type: :bug } do RSpec.describe 'Manage', :group_saml, :orchestrated, :requires_admin, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/issues/202260', type: :bug } do
describe 'Group SAML SSO - Group managed accounts' do describe 'Group SAML SSO - Group managed accounts' do
include Support::Api include Support::Api
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :group_saml, :orchestrated, :requires_admin do RSpec.describe 'Manage', :group_saml, :orchestrated, :requires_admin do
describe 'Group SAML SSO - Non enforced SSO' do describe 'Group SAML SSO - Non enforced SSO' do
include Support::Api include Support::Api
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'securerandom' require 'securerandom'
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
describe 'Group access', :requires_admin, :skip_live_env do describe 'Group access', :requires_admin, :skip_live_env do
include Runtime::IPAddress include Runtime::IPAddress
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
shared_examples 'default insights page' do shared_examples 'default insights page' do
it 'displays issues and merge requests dashboards' do it 'displays issues and merge requests dashboards' do
EE::Page::Insights::Show.perform do |show| EE::Page::Insights::Show.perform do |show|
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'securerandom' require 'securerandom'
module QA module QA
context 'Manage', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/218332', type: :investigating } do RSpec.describe 'Manage', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/218332', type: :investigating } do
shared_examples 'audit event' do |expected_events| shared_examples 'audit event' do |expected_events|
it 'logs audit events for UI operations' do it 'logs audit events for UI operations' do
sign_in sign_in
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage', :orchestrated, :ldap_no_server do RSpec.describe 'Manage', :orchestrated, :ldap_no_server do
describe 'LDAP admin sync' do describe 'LDAP admin sync' do
before do before do
run_ldap_service_with_user_as('admin') run_ldap_service_with_user_as('admin')
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
context 'Manage' do RSpec.describe 'Manage' do
shared_examples 'audit event' do |expected_events| shared_examples 'audit event' do |expected_events|
it 'logs audit events for UI operations' do it 'logs audit events for UI operations' do
Page::Project::Menu.perform(&:go_to_audit_events_settings) Page::Project::Menu.perform(&:go_to_audit_events_settings)
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
require 'securerandom' require 'securerandom'
module QA module QA
context :manage do RSpec.describe 'Manage' do
describe 'Project templates' do describe 'Project templates' do
before(:all) do before(:all) do
@files = [ @files = [
......
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