POMS Client API to update test parameter override for a campaign stage
As we talked, here is the ticket for the API to overwrite test_parameter_override.
In some circumstances it is useful for project-py to be able to overwrite some test parameters for a campaign stage. In issue 22959, We requested a API to overwrite parameters for a campaign stage. This request is similar to 22959, but it is to overwrite test_parameter_override content. To identify a stage, we'd like to use two different ways: names (campaign and stage) and stage id. If the parameter is already in POMS, the API overwrites the old value with the new one. If the parameter is new to POMS. the API adds the new pair.
#2 Updated by Vladimir Podstavkov over 1 year ago
I have combined the functionality for param_overrides and test_param_overrides in one call. Here is an example:
update_stage_param_overrides( 'samdev', 1513, param_overrides="[['--stage=', 'gen']]", test_param_overrides="[['--teststage=', 'testgen']]", test=1 )
One can provide either param_overrides="..." argument or test_param_overrides="..." or even both in one call.
The stage can be referred either by its ID as in example or by tuple ('campaign_name', 'stage_name') instead as a second argument in the call.