1
1
#!/usr/bin/env python
2
2
# **********************************************************************
4
# Copyright (c) 2003-2009 ZeroC, Inc. All rights reserved.
4
# Copyright (c) 2003-2010 ZeroC, Inc. All rights reserved.
6
6
# This copy of Ice is licensed to you under the terms described in the
7
7
# ICE_LICENSE file included in this distribution.
21
21
from scripts import *
23
23
server = os.path.join(os.getcwd(), "server")
24
client = os.path.join(os.getcwd(), "client")
25
router = TestUtil.getGlacier2Router()
28
if TestUtil.appverifier:
29
targets = [server, client, router]
30
TestUtil.setAppVerifierSettings(targets)
25
32
print "starting server...",
26
33
serverProc = TestUtil.startServer(server)
29
router = os.path.join(TestUtil.getCppBinDir(), "glacier2router")
31
36
args = ' --Ice.Warn.Dispatch=0' + \
32
37
' --Glacier2.AddSSLContext=1' + \
33
' --Glacier2.Client.Endpoints="tcp -h 127.0.0.1 -p 12347 -t 10000:ssl -h 127.0.0.1 -p 12348 -t 10000"' + \
34
' --Glacier2.Server.Endpoints="tcp -h 127.0.0.1 -t 10000"' \
35
' --Ice.Admin.Endpoints="tcp -h 127.0.0.1 -p 12349 -t 10000"' + \
38
' --Glacier2.AddConnectionContext=1' + \
39
' --Glacier2.Client.Endpoints="tcp -h 127.0.0.1 -p 12347:ssl -h 127.0.0.1 -p 12348"' + \
40
' --Glacier2.Server.Endpoints="tcp -h 127.0.0.1"' \
41
' --Ice.Admin.Endpoints="tcp -h 127.0.0.1 -p 12349"' + \
36
42
' --Ice.Admin.InstanceName=Glacier2' + \
37
' --Glacier2.SessionManager="sessionmanager:tcp -h 127.0.0.1 -p 12350 -t 10000"' + \
38
' --Glacier2.PermissionsVerifier="Glacier2/NullPermissionsVerifier"' + \
39
' --Glacier2.SSLSessionManager="sslsessionmanager:tcp -h 127.0.0.1 -p 12350 -t 10000"' + \
40
' --Glacier2.SSLPermissionsVerifier="sslverifier:tcp -h 127.0.0.1 -p 12350 -t 10000"'
43
' --Glacier2.SessionManager="sessionmanager:tcp -h 127.0.0.1 -p 12350"' + \
44
' --Glacier2.PermissionsVerifier="verifier:tcp -h 127.0.0.1 -p 12350"' + \
45
' --Glacier2.SSLSessionManager="sslsessionmanager:tcp -h 127.0.0.1 -p 12350"' + \
46
' --Glacier2.SSLPermissionsVerifier="sslverifier:tcp -h 127.0.0.1 -p 12350"'
42
48
routerCfg = TestUtil.DriverConfig("server")
43
49
routerCfg.protocol = "ssl"
48
54
clientCfg = TestUtil.DriverConfig("client")
49
55
clientCfg.protocol = "ssl"
50
client = os.path.join(os.getcwd(), "client")
51
57
print "starting client...",
52
58
clientProc = TestUtil.startClient(client, "", clientCfg, startReader = False)