Skip to content

Disable consolidated object storage in config in tests

Stan Hu requested to merge sh-disable-object-store-tests-default into main

What does this merge request do and why?

Previously if consolidated object storage were configured, then tests would fail since they would attempt to use the development settings. Disable this in tests so that tests continue to function even when development is configured for object storage.

This mirrors the change in gitlab!147724 (merged).

How to set up and validate locally

  1. In your GDK, enable object storage: https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/doc/howto/object_storage.md?ref_type=heads
  2. Attempt to run: bundle exec rspec ./spec/services/design_management/save_designs_service_spec.rb

Impacted categories

The following categories relate to this merge request:

Merge request checklist

  • This change is backward compatible. If not, please include steps to communicate to our users.
  • Tests added for new functionality. If not, please raise an issue to follow-up.
  • Documentation added/updated, if needed.
  • Announcement added, if change is notable.
  • gdk doctor test added, if needed.
  • Add the ~highlight label if this MR should be included in the CHANGELOG.md.
Edited by Stan Hu

Merge request reports