Closed alexander-haller closed 4 months ago
In GitLab by @mhxion on Jun 15, 2024, 13:55
Actually, it doesn't make sense to move headers
to elapi.yml
, only timeout
and verify
, since --headers
values would be request specific.
In GitLab by @mhxion on Jun 23, 2024, 16:35
marked the checklist item Move timeout
, verify
, to headers
elapi.yml
. as completed
In GitLab by @mhxion on Jun 23, 2024, 16:35
marked the checklist item Introduce a global argument that similar to Ansible's --extra-vars/-e
allows override any configuration setting. as completed
In GitLab by @mhxion on Jun 15, 2024, 13:23
I just realized, having
--timeout
,--verify
andarguments only available to--headers
get
,post
,patch
anddelete
doesn't solve the problem, because plugins are not taking those arguments into account! So, whileget
inelapi get experiments --timeout 10
will listen to the--timeout 10
,experiments
plugin inelapi experiments get --id <experiment ID>
will still use the default timeout and just has no support for--timeout
. In other words,--timeout
,--verify
and--headers
are not global when they should be. They can be global if they are part of theelapi.yml
configuration likeenable_http2
. But then we will need some way to overwrite them from the command line. This is something @alexander-haller have suggested before.timeout
,verify
,toheaders
elapi.yml
.--extra-vars/-e
allows override any configuration setting.