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>2020-08-20 21:42:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /spec/lib/gitlab/import_export
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/lib/gitlab/import_export')
-rw-r--r--spec/lib/gitlab/import_export/all_models.yml12
-rw-r--r--spec/lib/gitlab/import_export/base/object_builder_spec.rb1
-rw-r--r--spec/lib/gitlab/import_export/group/tree_restorer_spec.rb2
-rw-r--r--spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb1
-rw-r--r--spec/lib/gitlab/import_export/project/tree_restorer_spec.rb2
-rw-r--r--spec/lib/gitlab/import_export/project/tree_saver_spec.rb1
-rw-r--r--spec/lib/gitlab/import_export/safe_model_attributes.yml8
7 files changed, 25 insertions, 2 deletions
diff --git a/spec/lib/gitlab/import_export/all_models.yml b/spec/lib/gitlab/import_export/all_models.yml
index 02500778426..37b5d8a1021 100644
--- a/spec/lib/gitlab/import_export/all_models.yml
+++ b/spec/lib/gitlab/import_export/all_models.yml
@@ -12,6 +12,7 @@ issues:
- resource_weight_events
- resource_milestone_events
- resource_state_events
+- resource_iteration_events
- sent_notifications
- sentry_issue
- label_links
@@ -46,6 +47,8 @@ issues:
- system_note_metadata
- alert_management_alert
- status_page_published_incident
+- namespace
+- note_authors
events:
- author
- project
@@ -166,6 +169,7 @@ merge_requests:
- deployments
- user_mentions
- system_note_metadata
+- note_authors
external_pull_requests:
- project
merge_request_diff:
@@ -229,6 +233,7 @@ ci_pipelines:
- daily_report_results
- latest_builds_report_results
- messages
+- pipeline_artifacts
ci_refs:
- project
- ci_pipelines
@@ -312,6 +317,7 @@ project:
- chat_services
- cluster
- clusters
+- cluster_agents
- cluster_project
- creator
- cycle_analytics_stages
@@ -351,7 +357,6 @@ project:
- youtrack_service
- custom_issue_tracker_service
- bugzilla_service
-- gitlab_issue_tracker_service
- external_wiki_service
- mock_ci_service
- mock_deployment_service
@@ -465,6 +470,7 @@ project:
- vulnerability_identifiers
- vulnerability_scanners
- dast_site_profiles
+- dast_scanner_profiles
- dast_sites
- operations_feature_flags
- operations_feature_flags_client
@@ -515,6 +521,9 @@ project:
- webex_teams_service
- build_report_results
- vulnerability_statistic
+- vulnerability_historical_statistics
+- product_analytics_events
+- pipeline_artifacts
award_emoji:
- awardable
- user
@@ -665,6 +674,7 @@ epic:
- events
- resource_label_events
- user_mentions
+- note_authors
epic_issue:
- epic
- issue
diff --git a/spec/lib/gitlab/import_export/base/object_builder_spec.rb b/spec/lib/gitlab/import_export/base/object_builder_spec.rb
index d560c8ea5a7..38c3b23db36 100644
--- a/spec/lib/gitlab/import_export/base/object_builder_spec.rb
+++ b/spec/lib/gitlab/import_export/base/object_builder_spec.rb
@@ -10,6 +10,7 @@ RSpec.describe Gitlab::ImportExport::Base::ObjectBuilder do
name: 'project',
path: 'project')
end
+
let(:klass) { Milestone }
let(:attributes) { { 'title' => 'Test Base::ObjectBuilder Milestone', 'project' => project } }
diff --git a/spec/lib/gitlab/import_export/group/tree_restorer_spec.rb b/spec/lib/gitlab/import_export/group/tree_restorer_spec.rb
index 6cc16ee9cbb..2eb983cc050 100644
--- a/spec/lib/gitlab/import_export/group/tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/group/tree_restorer_spec.rb
@@ -172,7 +172,7 @@ RSpec.describe Gitlab::ImportExport::Group::TreeRestorer do
let(:filepath) { "group_exports/visibility_levels/#{visibility_level}" }
it "imports all subgroups as #{visibility_level}" do
- expect(group.children.map(&:visibility_level)).to eq(expected_visibilities)
+ expect(group.children.map(&:visibility_level)).to match_array(expected_visibilities)
end
end
end
diff --git a/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb b/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb
index eb6b07ce02f..949cfb5a34d 100644
--- a/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb
+++ b/spec/lib/gitlab/import_export/json/streaming_serializer_spec.rb
@@ -81,6 +81,7 @@ RSpec.describe Gitlab::ImportExport::JSON::StreamingSerializer do
let(:group_options) do
{ include: [], only: [:name, :path, :description] }
end
+
let(:include) do
[{ group: group_options }]
end
diff --git a/spec/lib/gitlab/import_export/project/tree_restorer_spec.rb b/spec/lib/gitlab/import_export/project/tree_restorer_spec.rb
index 6d5604dc40f..f75494aa7c7 100644
--- a/spec/lib/gitlab/import_export/project/tree_restorer_spec.rb
+++ b/spec/lib/gitlab/import_export/project/tree_restorer_spec.rb
@@ -502,6 +502,7 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
let(:project_tree_restorer) do
described_class.new(user: user, shared: shared, project: project)
end
+
let(:restored_project_json) { project_tree_restorer.restore }
it 'does not read a symlink' do
@@ -919,6 +920,7 @@ RSpec.describe Gitlab::ImportExport::Project::TreeRestorer do
}
]
end
+
let(:tree_hash) { { 'project_members' => project_members } }
before do
diff --git a/spec/lib/gitlab/import_export/project/tree_saver_spec.rb b/spec/lib/gitlab/import_export/project/tree_saver_spec.rb
index 40c103eeda6..a2c5848f100 100644
--- a/spec/lib/gitlab/import_export/project/tree_saver_spec.rb
+++ b/spec/lib/gitlab/import_export/project/tree_saver_spec.rb
@@ -275,6 +275,7 @@ RSpec.describe Gitlab::ImportExport::Project::TreeSaver do
File.join(shared.export_path, Gitlab::ImportExport.project_filename)
end
end
+
let(:shared) { project.import_export_shared }
let(:params) { {} }
diff --git a/spec/lib/gitlab/import_export/safe_model_attributes.yml b/spec/lib/gitlab/import_export/safe_model_attributes.yml
index 2d313b4dcad..a108bc94da5 100644
--- a/spec/lib/gitlab/import_export/safe_model_attributes.yml
+++ b/spec/lib/gitlab/import_export/safe_model_attributes.yml
@@ -32,6 +32,7 @@ Issue:
- discussion_locked
- health_status
- external_key
+- issue_type
Event:
- id
- target_type
@@ -41,6 +42,7 @@ Event:
- updated_at
- action
- author_id
+- fingerprint
WikiPage::Meta:
- id
- title
@@ -215,6 +217,7 @@ MergeRequestDiff:
- head_commit_sha
- start_commit_sha
- commits_count
+- files_count
MergeRequestDiffCommit:
- merge_request_diff_id
- relative_order
@@ -285,6 +288,7 @@ MergeRequest::Metrics:
- first_approved_at
- first_reassigned_at
- added_lines
+- target_project_id
- removed_lines
Ci::Pipeline:
- id
@@ -656,6 +660,7 @@ PrometheusMetric:
- group
- common
- identifier
+- dashboard_path
PrometheusAlert:
- threshold
- operator
@@ -735,6 +740,8 @@ Board:
- milestone_id
- weight
- name
+- hide_backlog_list
+- hide_closed_list
List:
- id
- board_id
@@ -765,6 +772,7 @@ DesignManagement::Design:
- id
- project_id
- filename
+- relative_position
DesignManagement::Action:
- id
- event