Skip to content
Snippets Groups Projects
Commit ffd2b418 authored by Mark Lapierre's avatar Mark Lapierre
Browse files

Merge branch 'acunskis-fix-group-import-stage' into 'master'

Enable top level group creation for bulk import test

See merge request gitlab-org/gitlab!61592
parents ffb91cfb 03de75e0
No related branches found
No related tags found
No related merge requests found
# frozen_string_literal: true
 
module QA
RSpec.describe "Manage", :requires_admin do
describe "Group bulk import" do
RSpec.describe 'Manage', :requires_admin do
describe 'Group bulk import' do
let!(:api_client) { Runtime::API::Client.as_admin }
let!(:user) do
Resource::User.fabricate_via_api! do |usr|
Loading
Loading
@@ -52,8 +52,13 @@ def comparable_group(group)
)
end
 
def staging?
Runtime::Scenario.gitlab_address.include?('staging.gitlab.com')
end
before(:all) do
Runtime::Feature.enable(:bulk_import)
Runtime::Feature.enable(:top_level_group_creation_enabled) if staging?
end
 
before do
Loading
Loading
@@ -66,10 +71,10 @@ def comparable_group(group)
end
 
it(
"performs bulk group import from another gitlab instance",
testcase: "https://gitlab.com/gitlab-org/quality/testcases/-/issues/1785",
'performs bulk group import from another gitlab instance',
testcase: 'https://gitlab.com/gitlab-org/quality/testcases/-/issues/1785',
# https://gitlab.com/gitlab-org/gitlab/-/issues/330344
exclude: { job: ["ce:relative_url", "ee:relative_url"] }
exclude: { job: ['ce:relative_url', 'ee:relative_url'] }
) do
Page::Group::BulkImport.perform do |import_page|
import_page.import_group(source_group.path, sandbox.path)
Loading
Loading
@@ -88,6 +93,7 @@ def comparable_group(group)
 
after(:all) do
Runtime::Feature.disable(:bulk_import)
Runtime::Feature.disable(:top_level_group_creation_enabled) if staging?
end
end
end
Loading
Loading
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