Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ftr] print response body for API key creation failure (#195379)
## Summary We are currently investigating test failures against ESS deployment: Failed to create API key for user `admin` role ``` [00:00:00] └-> "before all" hook in "Burn rate rule" [00:00:00] │ debg new cloud SAML authentication with 'admin' role [00:00:00] │ debg Requesting url (redacted): [https://bk-stateful-ftr-16-2c9ee40b2d03.kb.eu-west-1.aws.qa.cld.elstc.co/api/status] [00:00:00] │ info Reading cloud user credentials from /root/.qaf/data/git/kibana/.ftr/role_users.json [00:00:04] └- ✖ fail: apis Slo - Burn rate rule Burn rate rule "before all" hook in "Burn rate rule" [00:00:04] │ Error: expected 400 to equal 200 [00:00:04] │ at Assertion.assert (expect.js:100:11) [00:00:04] │ at Assertion.apply (expect.js:227:8) [00:00:04] │ at Assertion.be (expect.js:69:22) [00:00:04] │ at Object.createM2mApiKeyWithRoleScope (saml_auth_provider.ts:113:25) [00:00:04] │ at processTicksAndRejections (node:internal/process/task_queues:95:5) [00:00:04] │ at Context. (burn_rate_rule.ts:40:24) [00:00:04] │ at Object.apply (wrap_function.js:74:16) ``` Currently we get only status code and it doesn't tell much about the issue. This PR will print response body + status code (cherry picked from commit 0c5c712)
- Loading branch information