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:
Diffstat (limited to 'spec/requests/api/project_import_spec.rb')
-rw-r--r--spec/requests/api/project_import_spec.rb47
1 files changed, 0 insertions, 47 deletions
diff --git a/spec/requests/api/project_import_spec.rb b/spec/requests/api/project_import_spec.rb
index d2b1fb063b8..594b42bb6c0 100644
--- a/spec/requests/api/project_import_spec.rb
+++ b/spec/requests/api/project_import_spec.rb
@@ -33,53 +33,6 @@ describe API::ProjectImport do
expect(response).to have_gitlab_http_status(201)
end
- context 'when a name is explicitly set' do
- let(:expected_name) { 'test project import' }
-
- it 'schedules an import using a namespace and a different name' do
- stub_import(namespace)
-
- post api('/projects/import', user), params: { path: 'test-import', file: fixture_file_upload(file), namespace: namespace.id, name: expected_name }
-
- expect(response).to have_gitlab_http_status(201)
- end
-
- it 'schedules an import using the namespace path and a different name' do
- stub_import(namespace)
-
- post api('/projects/import', user), params: { path: 'test-import', file: fixture_file_upload(file), namespace: namespace.full_path, name: expected_name }
-
- expect(response).to have_gitlab_http_status(201)
- end
-
- it 'sets name correctly' do
- stub_import(namespace)
-
- post api('/projects/import', user), params: { path: 'test-import', file: fixture_file_upload(file), namespace: namespace.full_path, name: expected_name }
-
- project = Project.find(json_response['id'])
- expect(project.name).to eq(expected_name)
- end
-
- it 'sets name correctly with an overwrite' do
- stub_import(namespace)
-
- post api('/projects/import', user), params: { path: 'test-import', file: fixture_file_upload(file), namespace: namespace.full_path, name: 'new project name', overwrite: true }
-
- project = Project.find(json_response['id'])
- expect(project.name).to eq('new project name')
- end
-
- it 'schedules an import using the path and name explicitly set to nil' do
- stub_import(namespace)
-
- post api('/projects/import', user), params: { path: 'test-import', file: fixture_file_upload(file), namespace: namespace.full_path, name: nil }
-
- project = Project.find(json_response['id'])
- expect(project.name).to eq('test-import')
- end
- end
-
it 'schedules an import at the user namespace level' do
stub_import(user.namespace)