Exemplo n.º 1
0
 def setup_class(cls):
   cls.server = SimpleThriftServer()
   cls.server.start_server_process()
   cls.client = thrift_util.get_client(TestService.Client,
                                       '127.0.0.1',
                                       cls.server.port,
                                       'Hue Unit Test Client',
                                       timeout_seconds=1)
Exemplo n.º 2
0
 def setup_class(cls):
     cls.server = SimpleThriftServer()
     cls.server.start_server_process()
     cls.client = thrift_util.get_client(TestService.Client,
                                         '127.0.0.1',
                                         cls.server.port,
                                         'Hue Unit Test Client',
                                         timeout_seconds=1)
Exemplo n.º 3
0
 def test_basic_operation(self):
     raise SkipTest()
     server = TestSuperClient.TestHandler.start_server_thread()
     try:
         test_client = thrift_util.get_client(TestService.Client,
                                              '127.0.0.1',
                                              server.get_port(),
                                              timeout_seconds=1)
         assert_equal(10, test_client.ping(5))
     finally:
         server.stop()
Exemplo n.º 4
0
 def test_basic_operation(self):
   raise SkipTest()
   server = TestSuperClient.TestHandler.start_server_thread()
   try:
     test_client = thrift_util.get_client(TestService.Client,
                                          '127.0.0.1',
                                          server.get_port(),
                                          timeout_seconds=1)
     assert_equal(10, test_client.ping(5))
   finally:
     server.stop()
Exemplo n.º 5
0
    def __init__(self, query_server, user):
        self.query_server = query_server
        self.user = user

        # use_sasl, kerberos_principal_short_name = BeeswaxClient.get_security(query_server)

        self._client = thrift_util.get_client(
            TCLIService.Client,
            query_server['server_host'],
            query_server['server_port'],
            service_name=query_server['server_name'],
            # kerberos_principal=kerberos_principal_short_name,
            kerberos_principal="*****@*****.**",
            # use_sasl=use_sasl,
            use_sasl=True,
            # timeout_seconds=conf.BEESWAX_SERVER_CONN_TIMEOUT.get())
            timeout_seconds=120)
Exemplo n.º 6
0
 def setup_class(cls):
     cls.server = SimpleThriftServer()
     cls.server.start_server_process()
     cls.client = thrift_util.get_client(
         TestService.Client, "localhost", cls.server.port, "Hue Unit Test Client", timeout_seconds=1
     )