File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111import mock
1212import requests
1313
14- from django .conf import settings
1514from django .contrib .auth .models import User
1615from django .test import TestCase
1716from 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 """
Original file line number Diff line number Diff 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'
You can’t perform that action at this time.
0 commit comments