Add server_commands and update readme.md

Update command to search for services from the user.
This commit is contained in:
Nicholas Staples
2016-05-11 15:52:49 +01:00
parent 55ed143889
commit 15607c0977
6 changed files with 63 additions and 17 deletions

View File

@@ -73,3 +73,19 @@ scripts/run_celery.sh
```
scripts/run_celery_beat.sh
```
## To remove functional test data
NOTE: There is assumption that both the server name prefix and user name prefix are followed by a uuid.
The script will search for all services/users with that prefix and only remove it if the prefix is followed by a uuid otherwise it will be skipped.
Locally
```
python application.py purge_functional_test_data -u <functional tests user name prefix> # Remove the user and associated services.
```
On the server
```
python server_commands.py purge_functional_test_data -u <functional tests user name prefix> # Remove the user and associated services.
```