The latest releases (don't know since when) ignore query parameters that contain an underscore. For example
const api = new SauceLabs();
const jobs = await api.listJobs(process.env.SAUCE_USERNAME, {
limit: 10,
full: true,
auto_only: true,
});
will return 10 jobs - some of them are automated and some - manual.
The CLI command sl listJobs <username> [limit] [subaccounts] [full] [manual_only] [auto_only] will ignore positional args containing _ as well:
sl listJobs $SAUCE_USERNAME 1 false false true false is equivalent to `sl listJobs $SAUCE_USERNAME 1 false
The latest main changed this behaviour and now an underscore is not ignored but it created another problem - both auto_only and manual_only defaults are sent (both are false to which server returns 400)
Description
This is a bit subtle.
will return 10 jobs - some of them are automated and some - manual.
The CLI command
sl listJobs <username> [limit] [subaccounts] [full] [manual_only] [auto_only]
will ignore positional args containing_
as well:sl listJobs $SAUCE_USERNAME 1 false false true false
is equivalent to`sl listJobs $SAUCE_USERNAME 1 false
The latest main changed this behaviour and now an underscore is not ignored but it created another problem - both
auto_only
andmanual_only
defaults are sent (both arefalse
to which server returns 400)Expected Behavior
listJobs
allows specifyingauto_only
ormanual_only
filter.In general, query params containing an underscore are supported
Actual Behavior
Params like
auto_only
ormanual_only
are ignoredSteps to Reproduce the Problem
manual: true
as well asmanual: false