owncloud / testing

🔧 app for testing ownCloud
GNU Affero General Public License v3.0
3 stars 4 forks source link

Add sysconfig testing endpoint #190

Closed phil-davis closed 2 years ago

phil-davis commented 2 years ago

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 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.

Checklist:

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

0.0% 0.0% Coverage
0.0% 0.0% Duplication