Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-02 21:09:47 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-02 21:09:47 +0300
commit0a9b6b99a9bdcacea434501320f1a8d131a33827 (patch)
treeb3fb338cec894837358b82635c90a52f5b8e0c3d /spec/services
parentd944f09d3212ca8aad09b92dbbae7323ee634237 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/bulk_imports/create_service_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/services/bulk_imports/create_service_spec.rb b/spec/services/bulk_imports/create_service_spec.rb
index 3086184c5b3..7f892cfe722 100644
--- a/spec/services/bulk_imports/create_service_spec.rb
+++ b/spec/services/bulk_imports/create_service_spec.rb
@@ -8,6 +8,7 @@ RSpec.describe BulkImports::CreateService, feature_category: :importers do
let(:destination_group) { create(:group, path: 'destination1') }
let(:migrate_projects) { true }
let_it_be(:parent_group) { create(:group, path: 'parent-group') }
+ # note: destination_name and destination_slug are currently interchangable so we need to test for both possibilities
let(:params) do
[
{
@@ -20,7 +21,7 @@ RSpec.describe BulkImports::CreateService, feature_category: :importers do
{
source_type: 'group_entity',
source_full_path: 'full/path/to/group2',
- destination_slug: 'destination-group-2',
+ destination_name: 'destination-group-2',
destination_namespace: 'parent-group',
migrate_projects: migrate_projects
},
@@ -225,7 +226,12 @@ RSpec.describe BulkImports::CreateService, feature_category: :importers do
expect(result).to be_a(ServiceResponse)
expect(result).to be_error
- expect(result.message).to eq("Validation failed: Source full path can't be blank")
+ expect(result.message).to eq("Validation failed: Source full path can't be blank, " \
+ "Source full path cannot start with a non-alphanumeric character except " \
+ "for periods or underscores, can contain only alphanumeric characters, " \
+ "forward slashes, periods, and underscores, cannot end with " \
+ "a period or forward slash, and has a relative path structure " \
+ "with no http protocol chars or leading or trailing forward slashes")
end
describe '#user-role' do