Skip to content

Flaky test: DesignManagement::SaveDesignsService#execute when the feature is available when the user is not allowed to upload designs behaves like a service error returns an error

https://gitlab.com/gitlab-org/gitlab/-/jobs/1117275481

Failures:
  1) DesignManagement::SaveDesignsService#execute when the feature is available when the user is not allowed to upload designs behaves like a service error returns an error
     Failure/Error: expect(response).to match(a_hash_including(status: :error))
       expected {:designs=>[#<DesignManagement::Design id:22 namespace657/project681#1/designs[rails_sample.jpg]>], :...1fc4180e47be3af6e65f9cc095fd3d", issue_id: 200, created_at: "2021-03-22 12:25:08", author_id: 1062>} to match (a hash including {:status => :error})
       Diff:
       @@ -1,4 +1,7 @@
       -(a hash including {:status => :error})
       +:designs => [#<DesignManagement::Design id:22 namespace657/project681#1/designs[rails_sample.jpg]>],
       +:skipped_designs => [],
       +:status => :success,
       +:version => #<DesignManagement::Version id: 23, sha: "68609dde701fc4180e47be3af6e65f9cc095fd3d", issue_id: 200, created_at: "2021-03-22 12:25:08", author_id: 1062>,
     Shared Example Group: "a service error" called from ./spec/services/design_management/save_designs_service_spec.rb:314
     # ./spec/services/design_management/save_designs_service_spec.rb:63:in `block (3 levels) in <top (required)>'
     # ./spec/spec_helper.rb:365:in `block (3 levels) in <top (required)>'
     # ./spec/support/sidekiq_middleware.rb:9:in `with_sidekiq_server_middleware'
     # ./spec/spec_helper.rb:356:in `block (2 levels) in <top (required)>'
Finished in 14 minutes 55 seconds (files took 51.85 seconds to load)
3744 examples, 1 failure, 6 pending
Failed examples:
rspec './spec/services/design_management/save_designs_service_spec.rb[1:1:2:12:1:1]' # DesignManagement::SaveDesignsService#execute when the feature is available when the user is not allowed to upload designs behaves like a service error returns an error
Edited by Sean McGivern