Commit 2435cb76 authored by Jérome Perrin's avatar Jérome Perrin

test

parent a788d52a
......@@ -77,9 +77,9 @@ class TestSFTPListen(ProFTPdTestCase):
def test_does_not_listen_on_all_ip(self):
from paramiko.ssh_exception import SSHException
import pdb; pdb.set_trace()
with self.assertRaises(SSHException):
self._getConnection(hostname='127.0.0.1')
import pdb; pdb.set_trace()
class TestSFTPOperations(ProFTPdTestCase):
......@@ -173,7 +173,9 @@ class TestInstanceParameterPort(ProFTPdTestCase):
@classmethod
def getInstanceParmeterDict(cls):
cls.free_port = utils.findFreeTCPPort(cls.config['ipv4_address'])
return {'port': cls.free_port, }
import json
import pdb;pdb.set_trace()
return {'port': cls.free_port, '_': json.dumps({'port': cls.free_port})}
def test_instance_parameter_port(self):
parameter_dict = self.computer_partition.getConnectionParameterDict()
......
......@@ -136,6 +136,8 @@ class SlapOSInstanceTestCase(unittest.TestCase):
partition_reference='testing partition {i}'.format(i=i, **config),
partition_parameter_kw=instance_parameter_dict))
if instance_parameter_dict:
import pdb; pdb.set_trace()
# expose some class attributes so that tests can use them:
# the ComputerPartition instances, to getInstanceParmeterDict
cls.computer_partition = computer_partition_list[0]
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment