This adds a sysconfig testing endpoint. It lets a caller POST a config key (in the URL) and a value and type (string, integer etc.). The key is added or updated in config/config.php
Key values and types can be queried with GET and deleted with DELETE.
This will let us set system config keys without having to run the related occ command. It will help some test scenarios to avoid using the occ command.
Note: such scenarios will still not "work" when testing oCIS, because oCIS currently has no way to have an API that can change system settings on-the-fly. But that is a separate issue.
Note: this so far only allows setting one level of system config key/value. But that should be enough for many of the tests that just need to set a single key-value in the system config.
Description
This adds a
sysconfig
testing endpoint. It lets a caller POST a config key (in the URL) and a value and type (string, integer etc.). The key is added or updated inconfig/config.php
Key values and types can be queried with GET and deleted with DELETE.
This will let us set system config keys without having to run the related occ command. It will help some test scenarios to avoid using the occ command.
Note: such scenarios will still not "work" when testing oCIS, because oCIS currently has no way to have an API that can change system settings on-the-fly. But that is a separate issue.
Note: this so far only allows setting one level of system config key/value. But that should be enough for many of the tests that just need to set a single key-value in the system config.
Checklist: