Exemplo n.º 1
0
 def setUp(self):
     self.port = '14834'
     self.ssl_port = '14835'
     pem = "cardstories.pem"
     fd = open(pem, "w")
     fd.write(snake_oil_cert)
     fd.close()
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--ssl-port', self.ssl_port, '--ssl-pem', pem, '--db', 'test.sqlite' ])
     self.service = tap.makeService(options)
     self.service.startService()
Exemplo n.º 2
0
 def setUp(self):
     self.port = '14834'
     self.ssl_port = '14835'
     pem = "cardstories.pem"
     fd = open(pem, "w")
     fd.write(snake_oil_cert)
     fd.close()
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--ssl-port', self.ssl_port, '--ssl-pem', pem, '--db', 'test.sqlite' ])
     self.service = tap.makeService(options)
     self.service.startService()
Exemplo n.º 3
0
 def test00_start_stop(self):
     self.port = "14834"
     options = tap.Options()
     options.parseOptions(["--port", self.port, "--db", "test.sqlite", "--plugins-dir", "..", "--plugins", "plugin"])
     self.service = tap.makeService(options)
     for service in self.service:
         if isinstance(service, CardstoriesService):
             break
     self.service.startService()
     self.assertEqual(service.plugin_event["type"], "start")
     d = self.service.stopService()
     self.assertEqual(service.plugin_event["type"], "stop")
     return d
Exemplo n.º 4
0
 def setUp(self):
     self.port = "14834"
     self.ssl_port = "14835"
     pem = "cardstories.pem"
     fd = open(pem, "w")
     fd.write(snake_oil_cert)
     fd.close()
     options = tap.Options()
     options.parseOptions(
         ["--port", self.port, "--ssl-port", self.ssl_port, "--ssl-pem", pem, "--db", "test.sqlite"]
     )
     self.service = tap.makeService(options)
     self.service.startService()
Exemplo n.º 5
0
 def test00_start_stop(self):
     self.port = '14834'
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--db', 'test.sqlite',
                           '--plugins-dir', '..',
                           '--plugins', 'plugin'])
     self.service = tap.makeService(options)
     for service in self.service:
         if isinstance(service, CardstoriesService):
             break
     self.service.startService()
     self.assertEqual(service.plugin_event['type'], 'start')
     d = self.service.stopService()
     self.assertEqual(service.plugin_event['type'], 'stop')
     return d
Exemplo n.º 6
0
 def test00_start_stop(self):
     self.port = '14834'
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--db', 'test.sqlite',
                           '--plugins-dir', '..',
                           '--plugins', 'plugin'])
     self.service = tap.makeService(options)
     for service in self.service:
         if isinstance(service, CardstoriesService):
             break
     self.service.startService()
     self.assertEqual(service.plugin_event['type'], 'start')
     d = self.service.stopService()
     self.assertEqual(service.plugin_event['type'], 'stop')
     return d
Exemplo n.º 7
0
 def setUp(self):
     self.port = "14834"
     options = tap.Options()
     options.parseOptions(["--port", self.port, "--db", "test.sqlite"])
     self.service = tap.makeService(options)
     self.service.startService()
Exemplo n.º 8
0
 def setUp(self):
     self.port = '14834'
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--db', 'test.sqlite' ])
     self.service = tap.makeService(options)
     self.service.startService()
Exemplo n.º 9
0
 def setUp(self):
     self.port = '14834'
     options = tap.Options()
     options.parseOptions(['--port', self.port, '--db', 'test.sqlite' ])
     self.service = tap.makeService(options)
     self.service.startService()