mirror of
https://github.com/GSA/notifications-api.git
synced 2026-02-01 07:35:34 -05:00
Add server_commands and update readme.md
Update command to search for services from the user.
This commit is contained in:
16
README.md
16
README.md
@@ -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.
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user