Skip to content

Use tree folder in ndjson group import spec fixture

Qingyu Zhao requested to merge use-tree-folder-ndjson-group-import-fixture into master

What does this MR do?

Replace tree.tar.gz with extracted tree folder for 7 group import test fixtures under spec/fixtures/lib/gitlab/import_export/group_exports and ee/spec/fixtures/lib/gitlab/import_export/group_exports:

  • ee/spec/fixtures/lib/gitlab/import_export/group_exports/light/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/child_with_no_parent/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/complex/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/no_children/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/visibility_levels/internal/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/visibility_levels/private/tree.tar.gz
  • spec/fixtures/lib/gitlab/import_export/group_exports/visibility_levels/public/tree.tar.gz

Accordingly, update related Rspec tests to remove cleanup logic.

Finally, delete helper method extract_archive(path, archive) and cleanup_artifacts_from_extract_archive from spec/support/import_export/common_util.rb because they are used no-where now.

Conformity

Merge request reports