def test_remote_credentials(self): server = DataProviderServer( DataProviderTestClass({}), address=RemoteAdapterBase.PROXY_DATA_ADAPTER_ADDRESS) server.remote_user = "******" server.remote_password = "******" self.assertEqual("user", server.remote_user) self.assertEqual("password", server.remote_password)
def setup_remote_adapter(self, keep_alive=None, config=None, params=None, username=None, password=None): remote_server = DataProviderServer( adapter=self.adapter, address=RemoteAdapterBase.PROXY_DATA_ADAPTER_ADDRESS, keep_alive=keep_alive, name="DataProviderTest") remote_server.adapter_config = config remote_server.adapter_params = params remote_server.remote_user = username remote_server.remote_password = password self.launch_remote_server(remote_server)