App parameter | Purpose |
---|---|
nmcprovisioning userpreserveurl | url to redirect user on "Telekom erhalten" process account |
nmcprovisioning userwithdrawurl | url to redirect user on general withdrawn account |
nmcprovisioning userotturl | url to redirect OTT user directly into "Free" booking |
nmcprovisioning useraccessurl | url to redirect Access user directly into "Magenta S" booking |
nmcprovisioning userretention | (optional override, TimeInterval) retention time !=60 days default (e.g. for test) |
[invalidated] deletionjobtime | (optional override, Time) Earliest time when daily deletion job should run (04:00Z) |
Remember that NextCloud app configuration values only support string, so 300sec is '300'.
The configuration could be done with the following commandline calls (only, no UI):
sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning userpreserveurl --value 'https://telekom.example.com/'
sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning userwithdrawurl --value "https://cloud.telekom-dienste.de/tarife"
sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning userotturl --value 'https://telekom.example.com/'
sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning useraccessurl --value "https://cloud.telekom-dienste.de/tarife"
sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning userretention --value "P60DT1H" <TimeInterval formatted P..T... value>
// not implemented atm: sudo -u www-data php /var/www/nextcloud/occ config:app:set nmcprovisioning deletionjobtime --value "HH:MM:SSZ"
Before first run, prepare your app for unittesting by:
cd custom_apps/myapp
# run once if needed
composer install --no-dev -o
Execute unittests with the mandatory standard run before push:
phpunit --stderr --bootstrap tests/bootstrap.php tests/unit/MyTest.php
For quicker development (only!), you could skip large/long running tests
phpunit --stderr --bootstrap tests/bootstrap.php --exclude-group=large tests/unit/MyTest.php
Or you could limit your call to some methods only:
phpunit --stderr --bootstrap tests/bootstrap.php --filter='testMethod1|testMethod2' tests/unit/MyTest.php