mirror of
https://github.com/aljazceru/cowrie.git
synced 2026-02-18 21:04:21 +01:00
change paths for unittests. get ready for travis
This commit is contained in:
14
.travis.yml
Normal file
14
.travis.yml
Normal file
@@ -0,0 +1,14 @@
|
||||
language: python
|
||||
python:
|
||||
- "2.6"
|
||||
- "2.7"
|
||||
- "3.2"
|
||||
- "3.3"
|
||||
- "3.4"
|
||||
- "3.5"
|
||||
- "3.5-dev" # 3.5 development branch
|
||||
- "nightly" # currently points to 3.6-dev
|
||||
# command to install dependencies
|
||||
install: "pip install -r requirements.txt"
|
||||
# command to run tests
|
||||
script: nosetests
|
||||
@@ -13,7 +13,7 @@ import fake_transport
|
||||
|
||||
class ShellBaseCommandsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.cfg = config.readConfigFile("../cowrie/test/unittests.cfg")
|
||||
self.cfg = config.readConfigFile("cowrie/test/unittests.cfg")
|
||||
self.proto = protocol.HoneyPotInteractiveProtocol \
|
||||
(fake_server.FakeAvatar(fake_server.FakeServer(self.cfg)))
|
||||
self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
|
||||
@@ -203,7 +203,7 @@ class ShellBaseCommandsTests(unittest.TestCase):
|
||||
|
||||
class ShellFileCommandsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.cfg = config.readConfigFile("../cowrie/test/unittests.cfg")
|
||||
self.cfg = config.readConfigFile("cowrie/test/unittests.cfg")
|
||||
self.proto = protocol.HoneyPotInteractiveProtocol(
|
||||
fake_server.FakeAvatar(fake_server.FakeServer(self.cfg)))
|
||||
self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
|
||||
@@ -277,7 +277,7 @@ class ShellFileCommandsTests(unittest.TestCase):
|
||||
|
||||
class ShellPipeCommandsTests(unittest.TestCase):
|
||||
def setUp(self):
|
||||
self.cfg = config.readConfigFile("../cowrie/test/unittests.cfg")
|
||||
self.cfg = config.readConfigFile("cowrie/test/unittests.cfg")
|
||||
self.proto = protocol.HoneyPotInteractiveProtocol(
|
||||
fake_server.FakeAvatar(fake_server.FakeServer(self.cfg)))
|
||||
self.tr = fake_transport.FakeTransport("1.1.1.1", "1111")
|
||||
|
||||
@@ -41,7 +41,7 @@ internet_facing_ip = 111.111.111.111
|
||||
# Directory for miscellaneous data files, such as the password database.
|
||||
#
|
||||
# (default: data_path)
|
||||
data_path = ../data
|
||||
data_path = data
|
||||
|
||||
|
||||
# Directory where virtual file contents are kept in.
|
||||
@@ -51,7 +51,7 @@ data_path = ../data
|
||||
# actual virtual filesystem is kept in filesystem_file (see below)
|
||||
#
|
||||
# (default: honeyfs)
|
||||
contents_path = ../honeyfs
|
||||
contents_path = honeyfs
|
||||
|
||||
|
||||
# File in the python pickle format containing the virtual filesystem.
|
||||
@@ -61,7 +61,7 @@ contents_path = ../honeyfs
|
||||
# a real template linux installation.
|
||||
#
|
||||
# (default: fs.pickle)
|
||||
filesystem_file = ../data/fs.pickle
|
||||
filesystem_file = data/fs.pickle
|
||||
|
||||
|
||||
# Directory for creating simple commands that only output text.
|
||||
|
||||
Reference in New Issue
Block a user