Failure in ee/api/10_govern/instance_audit_event_streaming_spec.rb | Govern Instance audit event streaming when a group is created behaves like streamed events received by an external server

Test metadata (don't modify)

Field Value
File qa/qa/specs/features/ee/api/10_govern/instance_audit_event_streaming_spec.rb
Description Govern Instance audit event streaming when a group is created behaves like streamed events received by an external server
Hash 4fff1cfe36bc112727bd89cd25a6048fcdc14aa73ba6150120aee900eb8c250d
Test case https://gitlab.com/gitlab-org/gitlab/-/quality/test_cases/415874

Stack trace

Failure/Error:
  raise QA::Support::Repeater::WaitExceededError,
    "An event with type '#{event_type}'#{" and entity_path '#{entity_path}'" if entity_path} was not received. " \
    "Event history: #{mock_service.stringified_history}"

QA::Support::Repeater::WaitExceededError:
  An event with type 'audit_operation' and entity_path 'gitlab-qa-sandbox-group-7/qa-test-2023-07-01-06-18-38-376d57e9837c0d5e/audit-event-streaming-lnrtj3m3' was not received. Event history: {:context=>{:mock_id=>"2eHPlOrVRV", :mock_type=>"static"}, :request=>{:path=>"/logs", :method=>"POST", :origin=>"172.19.0.2", :body_string=>"{\"id\":198,\"author_id\":1,\"entity_id\":1,\"entity_type\":\"User\",\"details\":{\"author_name\":\"Administrator\",\"author_class\":\"User\",\"target_id\":11,\"target_type\":\"Key\",\"target_details\":\"E2E test key: 1688193167.093968\",\"custom_message\":\"Removed SSH key\",\"ip_address\":\"172.19.0.3\",\"entity_path\":\"root\"},\"ip_address\":\"172.19.0.3\",\"author_name\":\"Administrator\",\"entity_path\":\"root\",\"target_details\":\"E2E test key: 1688193167.093968\",\"created_at\":\"2023-07-01T06:32:47.502Z\",\"target_type\":\"Key\",\"target_id\":11,\"event_type\":\"remove_ssh_key\"}", :body=>{:author_id=>1, :author_name=>"Administrator", :created_at=>"2023-07-01T06:32:47.502Z", :details=>{:author_class=>"User", :author_name=>"Administrator", :custom_message=>"Removed SSH key", :entity_path=>"root", :ip_address=>"172.19.0.3", :target_details=>"E2E test key: 1688193167.093968", :target_id=>11, :target_type=>"Key"}, :entity_id=>1, :entity_path=>"root", :entity_type=>"User", :event_type=>"remove_ssh_key", :id=>198, :ip_address=>"172.19.0.3", :target_details=>"E2E test key: 1688193167.093968", :target_id=>11, :target_type=>"Key"}, :headers=>{:Accept=>["*/*"], :"Accept-Encoding"=>["gzip;q=1.0,deflate;q=0.6,identity;q=0.3"], :Connection=>["close"], :"Content-Length"=>["524"], :"Content-Type"=>["application/x-www-form-urlencoded"], :Host=>["smocker-server.test:8080"], :"User-Agent"=>["Ruby"], :"X-Gitlab-Audit-Event-Type"=>["remove_ssh_key"], :"X-Gitlab-Event-Streaming-Token"=>["BESaXcbt2is2kmjfNuNCMy9n"]}, :date=>"2023-07-01T06:32:47.622434714Z"}, :response=>{:status=>200, :body=>"", :date=>"2023-07-01T06:32:47.622951423Z"}}
Shared Example Group: "streamed events" called from ./qa/specs/features/ee/api/10_govern/instance_audit_event_streaming_spec.rb:85

Reports (9)

  1. 2023-07-01: https://gitlab.com/gitlab-org/gitlab/-/jobs/4577425361 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/917914104)
  2. 2023-07-01: https://gitlab.com/gitlab-org/gitlab/-/jobs/4577713637 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/917984064)
  3. 2023-07-02: https://gitlab.com/gitlab-org/gitlab/-/jobs/4578811728 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918258643)
  4. 2023-07-02: https://gitlab.com/gitlab-org/gitlab/-/jobs/4580175422 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918591311)
  5. 2023-07-03: https://gitlab.com/gitlab-org/gitlab/-/jobs/4580533257 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918668407)
  6. 2023-07-03: https://gitlab.com/gitlab-org/gitlab/-/jobs/4580533263 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918668407)
  7. 2023-07-03: https://gitlab.com/gitlab-org/gitlab/-/jobs/4580778765 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918718470)
  8. 2023-07-03: https://gitlab.com/gitlab-org/gitlab/-/jobs/4580958103 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/918756916)
  9. 2023-07-03: https://gitlab.com/gitlab-org/gitlab/-/jobs/4585882951 (https://gitlab.com/gitlab-org/gitlab/-/pipelines/919592658)

Quarantine MR: !125238 (merged)

Edited by Mark Lapierre