Skip to content

Commit

Permalink
[chores] Move Iperf server settings to project settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Aryamanz29 committed Jun 21, 2022
1 parent b60c7b8 commit fe92071
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
11 changes: 1 addition & 10 deletions openwisp_monitoring/check/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,4 @@
PING_CHECK_CONFIG = get_settings_value('PING_CHECK_CONFIG', {})
# By default it should be disabled.
AUTO_IPERF = get_settings_value('AUTO_IPERF', True)
IPERF_SERVERS = get_settings_value(
'IPERF_SERVERS',
{
# Running on my local
# Some Public Iperf Servers : https://iperf.fr/iperf-servers.php#public-servers
# 'be63c4e5-a68a-4650-bfe8-733837edb8be': ['iperf.biznetnetworks.com'],
'a9734710-db30-46b0-a2fc-01f01046fe4f': ['speedtest.uztelecom.uz'],
# '<org-pk>': ['<ORG_IPERF_SERVER>']
},
)
IPERF_SERVERS = get_settings_value('IPERF_SERVERS', {})
8 changes: 8 additions & 0 deletions tests/openwisp2/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,14 @@
# Celery auto detects tasks only from INSTALLED_APPS
CELERY_IMPORTS = ('openwisp_monitoring.device.tasks',)

OPENWISP_MONITORING_IPERF_SERVERS = {
# Running on my local
# Some Public Iperf Servers : https://iperf.fr/iperf-servers.php#public-servers
# 'be63c4e5-a68a-4650-bfe8-733837edb8be': ['iperf.biznetnetworks.com'],
'a9734710-db30-46b0-a2fc-01f01046fe4f': ['speedtest.uztelecom.uz'],
# '<org-pk>': ['<ORG_IPERF_SERVER>']
}

# local settings must be imported before test runner otherwise they'll be ignored
try:
from openwisp2.local_settings import *
Expand Down

0 comments on commit fe92071

Please sign in to comment.