Skip to content

Commit a1a623a

Browse files
committed
chore(*): remove settings for private SSH key, no longer used
1 parent fdb056a commit a1a623a

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

rootfs/api/tests/test_app.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import mock
1212
import requests
1313

14-
from django.conf import settings
1514
from django.contrib.auth.models import User
1615
from django.test import TestCase
1716
from rest_framework.authtoken.models import Token
@@ -28,12 +27,6 @@ class AppTest(TestCase):
2827
def setUp(self):
2928
self.user = User.objects.get(username='autotest')
3029
self.token = Token.objects.get(user=self.user).key
31-
# provide mock authentication used for run commands
32-
settings.SSH_PRIVATE_KEY = '<some-ssh-private-key>'
33-
34-
def tearDown(self):
35-
# reset global vars for other tests
36-
settings.SSH_PRIVATE_KEY = ''
3730

3831
def test_app(self):
3932
"""

rootfs/api/tests/test_scheduler.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,10 @@ def setUp(self):
3333
chaos.STOP_ERROR_RATE = 0
3434
# use chaos scheduler
3535
settings.SCHEDULER_MODULE = 'scheduler.chaos'
36-
# provide mock authentication used for run commands
37-
settings.SSH_PRIVATE_KEY = '<some-ssh-private-key>'
3836

3937
def tearDown(self):
4038
# reset for subsequent tests
4139
settings.SCHEDULER_MODULE = 'scheduler.mock'
42-
settings.SSH_PRIVATE_KEY = ''
4340

4441
def test_create_chaos(self):
4542
url = '/v2/apps'

0 commit comments

Comments
 (0)