Commit fcf22984 authored by Ramya Authappan's avatar Ramya Authappan

Merge branch 'qa-shl-add-requries-admin-2' into 'master'

Add requires_admin meta to tests that set feature flag

See merge request gitlab-org/gitlab!54883
parents a8f94dbf 5fa890fc
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
module QA module QA
RSpec.describe 'Manage' do RSpec.describe 'Manage' do
describe 'Repository tags' do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
describe 'Repository tags', :requires_admin do
let(:project) do let(:project) do
Resource::Project.fabricate_via_api! do |project| Resource::Project.fabricate_via_api! do |project|
project.name = 'project-for-tags' project.name = 'project-for-tags'
......
# frozen_string_literal: true # frozen_string_literal: true
module QA module QA
RSpec.describe 'Manage', :group_saml, :orchestrated do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
RSpec.describe 'Manage', :group_saml, :orchestrated, :requires_admin do
describe 'Group SAML SSO - Enforced SSO' do describe 'Group SAML SSO - Enforced SSO' do
include Support::Api include Support::Api
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
module QA module QA
RSpec.describe 'Manage' do RSpec.describe 'Manage' do
describe 'Group with members' do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
describe 'Group with members', :requires_admin do
let(:admin_api_client) { Runtime::API::Client.as_admin } let(:admin_api_client) { Runtime::API::Client.as_admin }
let(:source_group_with_members) do let(:source_group_with_members) do
......
...@@ -36,7 +36,8 @@ module QA ...@@ -36,7 +36,8 @@ module QA
it_behaves_like 'audit event', ["Added project"] it_behaves_like 'audit event', ["Added project"]
end end
context "Add user access as guest", testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/729' do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
context "Add user access as guest", :requires_admin, testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/729' do
before do before do
Runtime::Feature.enable(:invite_members_group_modal) Runtime::Feature.enable(:invite_members_group_modal)
project.visit! project.visit!
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
module QA module QA
RSpec.describe 'Create' do RSpec.describe 'Create' do
describe 'Approval rules', quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/215876', type: :flaky } do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
describe 'Approval rules', :requires_admin, quarantine: { issue: 'https://gitlab.com/gitlab-org/gitlab/-/issues/215876', type: :flaky } do
let(:approver1) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) } let(:approver1) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) }
let(:approver2) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2) } let(:approver2) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2) }
let(:project) do let(:project) do
......
...@@ -2,7 +2,8 @@ ...@@ -2,7 +2,8 @@
module QA module QA
RSpec.describe 'Create' do RSpec.describe 'Create' do
describe 'Codeowners' do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
describe 'Codeowners', :requires_admin do
# Create one user to be the assigned approver and another user who will not be an approver # Create one user to be the assigned approver and another user who will not be an approver
let(:approver) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) } let(:approver) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_1, Runtime::Env.gitlab_qa_password_1) }
let(:non_approver) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2) } let(:non_approver) { Resource::User.fabricate_or_use(Runtime::Env.gitlab_qa_username_2, Runtime::Env.gitlab_qa_password_2) }
......
...@@ -3,7 +3,8 @@ ...@@ -3,7 +3,8 @@
module QA module QA
RSpec.describe 'Create' do RSpec.describe 'Create' do
context 'Push Rules' do context 'Push Rules' do
describe 'using non signed commits' do # TODO: Remove :requires_admin meta when the `Runtime::Feature.enable` method call is removed
describe 'using non signed commits', :requires_admin do
before(:context) do before(:context) do
prepare prepare
......
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