What is the bug?
By the merging of Add score based password verification(#2557), some of the test cases are broken due to the weak password of test users
How can one reproduce the bug?
Steps to reproduce the behavior:
Three test cases are broken:
multi_tenancy.test.ts in security dashboards plugin
security_entity_api.test.ts
aggregation_view.js in functional test repo
What is your host/environment?
main branch
Do you have any additional context?
Add any other context about the problem.
start OpenSearch Dashboards server › call multitenancy info API as common user
TypeError: setCookieHeaders is not iterable
26 | console.log(typeof(setCookieHeaders));
27 | let securityAuthCookie: string | null = null;
> 28 | for (const setCookie of setCookieHeaders) {
| ^
29 | if (setCookie.startsWith('security_authentication=')) {
30 | securityAuthCookie = setCookie.split(';')[0];
31 | break;
at extractAuthCookie (plugins/security-dashboards-plugin/test/helper/cookie.ts:28:27)
at getAuthCookie (plugins/security-dashboards-plugin/test/helper/cookie.ts:42:10)
at Object.<anonymous> (plugins/security-dashboards-plugin/test/jest_integration/multi_tenancy.test.ts:147:24)
The response we got was:
Status: 400 - Bad Request
Headers: {
"content-type": "application/json; charset=UTF-8",
"content-length": "43"
}
Body: {
"status": "error",
"reason": "Weak password"
}
https://on.cypress.io/request
Because this error occurred during a `before all` hook we are skipping the remaining tests in the current suite: `Saved objects table test`
Fix Tracking
What is the bug?
By the merging of Add score based password verification(#2557), some of the test cases are broken due to the weak password of test users
How can one reproduce the bug?
Steps to reproduce the behavior:
Three test cases are broken:
multi_tenancy.test.tsin security dashboards pluginsecurity_entity_api.test.tsaggregation_view.jsin functional test repoWhat is your host/environment?
main branch
Do you have any additional context?
Add any other context about the problem.
Fix Tracking