Example #1
0
def main():
    # set default web flag option
    CONF.set_default('web', '/usr/share/novnc')
    config.parse_args(sys.argv)

    baseproxy.proxy(host=CONF.vnc.novncproxy_host,
                    port=CONF.vnc.novncproxy_port,
                    security_proxy=rfb.RFBSecurityProxy())
Example #2
0
    def setUp(self):
        super(RFBSecurityProxyTestCase, self).setUp()
        self.manager = mock.Mock()
        self.tenant_sock = mock.Mock()
        self.compute_sock = mock.Mock()

        self.tenant_sock.recv.side_effect = []
        self.compute_sock.recv.side_effect = []

        self.expected_manager_calls = []
        self.expected_tenant_calls = []
        self.expected_compute_calls = []

        self.proxy = rfb.RFBSecurityProxy()
def main():
    # set default web flag option
    CONF.set_default('web', '/usr/share/novnc')
    config.parse_args(sys.argv)

    # TODO(stephenfin): Always enable the security proxy once we support RFB
    # version 3.3, as used in XenServer.
    security_proxy = None
    if CONF.compute_driver != 'xenapi.XenAPIDriver':
        security_proxy = rfb.RFBSecurityProxy()

    baseproxy.proxy(host=CONF.vnc.novncproxy_host,
                    port=CONF.vnc.novncproxy_port,
                    security_proxy=security_proxy)