Follow ups from !37359: small refactors to `api_spec.js`

What does this MR do?

A few follow-ups from !37359 (merged):

  • Updates all hardcoded HTTP status codes to use the status codes from http_status.js (for example, 200httpStatusCodes.OK)
  • Groups all release-related tests inside a describe and de-duplicates some variable declarations
  • Adds a missing test for the releases method

The ee/ version of api_spec.js was also updated to use the http_status.js status codes for consistency.

Edited by Nathan Friend

Merge request reports

Loading