fix(load-tests): accept any 2xx status as success (#10450)

Adjust status checks across various functions to accept any 2xx HTTP
response instead of only 200, improving the robustness of the API
response validation.

fixes #10436
This commit is contained in:
Silvan
2025-08-11 11:36:40 +03:00
committed by GitHub
parent 9ed0daaf8c
commit f13529b31f
8 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ export async function addIAMMember(userId: string, roles: string[], accessToken:
},
);
check(res, {
'member added successful': (r) => r.status == 200 || fail(`unable add member: ${JSON.stringify(res)}`),
'member added successful': (r) => r.status >= 200 && r.status < 300 || fail(`unable add member: ${JSON.stringify(res)}`),
});
addIAMMemberTrend.add(res.timings.duration);
}