Method: Dri::ApiClient#fetch_failing_testcases

Defined in:
lib/dri/api_client.rb

#fetch_failing_testcases(pipeline, state:) ⇒ Array<Gitlab::ObjectifiedHash>

Fetch failing testcases

Parameters:

  • pipeline (String)
  • state (String)

Returns:

  • (Array<Gitlab::ObjectifiedHash>)


89
90
91
92
93
94
95
96
97
# File 'lib/dri/api_client.rb', line 89

def fetch_failing_testcases(pipeline, state:)
  gitlab.issues(
    TESTCASES_PROJECT_ID,
    labels: "#{pipeline}::failed",
    state: state,
    scope: "all",
    'not[labels]': QUARANTINE
  ).auto_paginate
end