Skip to content

Commit

Permalink
Improve documentation rockstor#2355
Browse files Browse the repository at this point in the history
  • Loading branch information
FroggyFlox committed Mar 2, 2023
1 parent 1bebb01 commit f052b9f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/rockstor/storageadmin/tests/test_config_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,15 @@
System needs 1 non system pool 'rock-pool', at any raid level.
- Create 1 share named 'test_share01'
- Create 1 share named 'test_share02'
poetry run django-admin dumpdata storageadmin.pool storageadmin.share \
--natural-foreign --indent 4 > \
src/rockstor/storageadmin/fixtures/test_config_backup.json
To run the tests:
export DJANGO_SETTINGS_MODULE="settings"
cd src/rockstor && poetry run test -v 2 -p test_config_backup.py
cd src/rockstor && poetry run django-admin test -v 2 -p test_config_backup.py
"""


Expand Down
2 changes: 1 addition & 1 deletion src/rockstor/storageadmin/views/config_backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def validate_task_definitions(ml, sa_ml):
:param ml: list of smart_manager models of interest as parsed by restore_config()
:param sa_ml: list of storageadmin models of interest as parsed by restore_config()
:return: list of tasks to restore
"""
tasks = []
for m in ml:
Expand Down

0 comments on commit f052b9f

Please sign in to comment.