Skip to content

Resolve "Failure in `ee/spec/lib/ee/gitlab/import_export/project_tree_restorer_spec.rb[1:2:1:6]`"

What does this MR do?

Quarantine shared example in spec/support/shared_examples/lib/gitlab/import_export/project_tree_restorer_shared_examples.rb.

This shared example uses magic number that is defined in fixture json files and test that the project.creator_id is not equal to the creator_id in the fixture file. This test is not very deterministic, as there could be edge cases where the assigned creator_id from ActiveRecord could match the external creator_id in the json.

We should test excluded_attributes in lib/gitlab/import_export/import_export.yml:115 in isolation.

Closes #207932 (closed)

Edited by Yorick Peterse

Merge request reports

Loading