summaryrefslogtreecommitdiff
path: root/spec/lib/gitlab/import_export/model_configuration_spec.rb
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2019-09-05 15:51:27 +0200
committerKamil Trzciński <ayufan@ayufan.eu>2019-09-06 14:21:17 +0200
commit0eeadb2dd2cf20ab1c12f1b0e86fa1227e044b41 (patch)
tree8ac0ea9a3f87259fe33df643c4db5902b0c79ac5 /spec/lib/gitlab/import_export/model_configuration_spec.rb
parent5857f0e57aa17c93ac871f08da7dbc7a4abe9b9f (diff)
downloadgitlab-ce-0eeadb2dd2cf20ab1c12f1b0e86fa1227e044b41.tar.gz
Normalize import_export structurekamil-refactor-import-structure
This brings a significant refactor to how we handle `import_export.yml`, merge it with EE and how we handle that for reader and saver. This is meant to simplify the code, and remove a ton of conditions to handle different models of the structure. This is also meant to prepare the structure to extend it much easier, like adding `preload:` or additional object types when needed. This does not change the behavior of import/export, rather unifies and simplifies the current implementation.
Diffstat (limited to 'spec/lib/gitlab/import_export/model_configuration_spec.rb')
-rw-r--r--spec/lib/gitlab/import_export/model_configuration_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/lib/gitlab/import_export/model_configuration_spec.rb b/spec/lib/gitlab/import_export/model_configuration_spec.rb
index 5ed9fef1597..3442e22c11f 100644
--- a/spec/lib/gitlab/import_export/model_configuration_spec.rb
+++ b/spec/lib/gitlab/import_export/model_configuration_spec.rb
@@ -8,7 +8,7 @@ describe 'Import/Export model configuration' do
let(:config_hash) { Gitlab::ImportExport::Config.new.to_h.deep_stringify_keys }
let(:model_names) do
- names = names_from_tree(config_hash['project_tree'])
+ names = names_from_tree(config_hash.dig('tree', 'project'))
# Remove duplicated or add missing models
# - project is not part of the tree, so it has to be added manually.