Exemple #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()
Exemple #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()
Exemple #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
Exemple #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()
Exemple #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
Exemple #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
Exemple #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()
Exemple #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()
Exemple #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()