forked from jetty-project/tck-run
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wsts.jte
362 lines (326 loc) · 19.9 KB
/
wsts.jte
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
#
# Copyright (c) 2013, 2018 Oracle and/or its affiliates. All rights reserved.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License v. 2.0, which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the
# Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
# version 2 with the GNU Classpath Exception, which is available at
# https://www.gnu.org/software/classpath/license.html.
#
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
#
#
#########################################################################
# #
# JavaTest Environment file for Websocket Compatibility Test Suite #
# #
# Environment specific properties in this file will likely #
# have to be modified prior to running the Websocket TCK. Instructions#
# for modifying these properties are contained in this file. #
# #
#########################################################################
########################################################################
## Javatest batch mode work directory and report directory, and policy for
## handling existing work and report directories. These properties affects
## runclient and report targets, but not gui target.
## To disable generating test report, unset report.dir, or set it to "none"
## either here or from command line, as in the following command:
## ant runclient -Dreport.dir="none"
##
# @work.dir The directory used to store Javatest test results and test
# information.
# @report.dir The directory used to store Javatest summary reports of
# test results.
# @if.existing.work.report.dirs specifies how existing work.dir and
# report.dir will be handled, and it must be one of the following values:
# overwrite overwrites all content in work.dir and report.dir
# backup moves all content in work.dir and report.dir to
# work.dir_time_day_bak and report.dir_time_day_bak,
# respectively
# append reuses and preserves the existing work.dir and report.dir
# auto lets the build files decide which mode to use
# (overwrite, backup or append). the value is determined
# like this:
# if.existing.work.report.dirs == auto
# if in CTS workspace
# if.existing.work.report.dirs = overwrite
# else we are in a distribution bundle
# if.existing.work.report.dirs = append
# end if
# else
# if.existing.work.report.dirs = value in this file
# end if
########################################################################
work.dir=@WORKSPACE@/JTWork
report.dir=@WORKSPACE@/JTReport
if.existing.work.report.dirs=auto
########################################################################
# @javatest.timeout.factor This property specifies the scale factor used by
# Javatest to adjust the time JavaTest will wait for a given test to
# complete before returning failure. For instance if the default test timeout
# is 5 minutes, this value will be multiplied by 5 minutes to determine
# the total timeout delay. Note: this value only works with Javatest's
# batch mode (runclient). When using the Javatest GUI users must change
# this timeout factor in the GUI. Configure -> Edit Configuration -> View
# -> choose Standard Values -> select tab Execution -> set Time Factor.
########################################################################
javatest.timeout.factor=1.0
########################################################################
## Settings for Vendor WebSocket Implementation
# @web.home The location of the vendor's WebSocket Implementation
########################################################################
web.home=@WORKSPACE@/jetty-home/target/jetty-home
########################################################################
## Common environment for both ts_unix and ts_win32
#
# @command.testExecute - This command is used to execute any test
# clients which are not run inside an
# application client container. For example,
# any URL clients or standalone java clients
# would be executed with this command. Some
# test directories which make use of this command
# are websocket and servlet.
########################################################################
command.testExecute=com.sun.ts.lib.harness.ExecTSTestCmd \
CLASSPATH=${JAVA_HOME}/lib/rt.jar${pathsep}\
${LOCAL_CLASSES} \
HOME="${user.home}" \
windir=${windir} \
SYSTEMROOT=${SYSTEMROOT} \
${JAVA_HOME}/bin/java \
-Dbytecheck=true \
-Djavax.net.ssl.keyStorePassword=changeit \
-Djavax.net.ssl.keyStore=${bin.dir}/certificates/clientcert.jks \
-Djavax.net.ssl.trustStore=${web.home}/domains/domain1/config/cacerts.jks \
${JAVA_OPTIONS} $testExecuteClass $testExecuteArgs
########################################################################
# Environment ts_unix
########################################################################
env.ts_unix.menu=true
########################################################################
# Environment ts_win32
########################################################################
env.ts_win32.menu=true
########################################################################
#These properties are used by the Javatest harness. "harness.log.port"
#specifies the port that server components use to send logging
#output back to JavaTest. If the default port # is not available
#on the machine running JavaTest, then you can set it here.
#
#harness.socket.retry.count denotes the number of time we should attempt
#to create a server socket when intilizing a test client. The socket
#is used for logging purposes.
#
# "harness.log.traceflag" is used to turn on/off verbose debugging output
# for the tests.
#
# "harness.executeMode" is used to run the harness in the following modes
# of execution:
# 0 - default (deploy, run, undeploy)
# 1 - deploy only
# 2 - run only
# 3 - undeploy only
# 4 - deploy and run only
########################################################################
harness.temp.directory=${TS_HOME}
harness.log.port=2000
harness.log.mode=silent
harness.log.delayseconds=1
harness.socket.retry.count=10
harness.log.traceflag=false
harness.executeMode=2
ts_home=${ts.home}
##########################################################################
#build level
#2: compile and build component archives (war's)
##########################################################################
build.level=2
###############################################################
## These properties must be set to tell the Test harness the
## class names of your porting class implementations. By default
## both property sets below point to Oracle RI specific classes. To
## run interoperability tests, the ".2" set of properties should
## always point to Oracle RI classes. The ".1" set should point to
## implementations that work in your specific Java EE environment.
#
# @porting.ts.url.class.1 VI of
# com.sun.ts.lib.porting.TSURLInterface
###############################################################
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
#####################################################################
#The following properties must be set prior to running the Websocket API tests
#
## These properties must specify the host and port of the web server,
## in which the servlets and JSPs are deployed.
#
# @webServerHost hostname for the Vendor's Java EE Web Server
# @webServerPort port number of the Vendor's Java EE Web Server
#
##########################################################################
webServerHost=localhost
webServerPort=8080
###############################################################
# @securedWebServicePort must be set to run ssl tests.
# Set this property with your application server's secured webservice port.
###############################################################
securedWebServicePort=8443
##########################################################################
# The ClientThreads property configures the number of threads
# used by the client.
# If the container implementation supports pooling,
# set the value of ClientThreads to twice the value
# of the default server instance pool size. If the container
# implementation only maintains a single instance,
# leave the default value of 2.
##########################################################################
websocket.client.threads=2
ClientThreads=2
##########################################################################
## Classpath properties required by Web Socket TCK:
#
# @websocket.api -- classes for the Web Socket api
# @websocket.classes -- classes for the Web Socket implementation
# @ts.harness.classpath -- Classes required by javatest
# @ts.classpath -- Classes used to build the Web Socket TCK tests
# @ts.run.classpath -- Classpath required to run Web Socket TCK tests
##########################################################################
#websocket.api=${web.home}/modules/jakarta.websocket-api.jar${pathsep}${web.home}/modules/jakarta.servlet-api.jar${pathsep}${web.home}/modules/cdi-api.jar
# mix of paths for jetty-9.4.x and jetty-10.0.x
websocket.api=${web.home}/lib/websocket/jetty-javax-websocket-api-1.1.2.jar${pathsep}${web.home}/lib/websocket/websocket-api-@[email protected]${pathsep}${web.home}/lib/websocket/jetty-javax-websocket-api-1.1.1.jar${pathsep}${web.home}/lib/websocket/jetty-websocket-api-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-core-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-core-@[email protected]${pathsep}${web.home}/lib/websocket/jetty-javax-websocket-api-1.1.2.jar
#websocket.classes=${web.home}/modules/tyrus-websocket-core.jar${pathsep}${web.home}/modules/tyrus-client.jar${pathsep}${web.home}/modules/tyrus-core.jar${pathsep}${web.home}/modules/tyrus-container-grizzly.jar${pathsep}${web.home}/modules/glassfish-grizzly-extra-all.jar${pathsep}${web.home}/modules/nucleus-grizzly-all.jar${pathsep}${web.home}/modules/tyrus-server.jar${pathsep}${web.home}/modules/tyrus-container-servlet.jar${pathsep}${web.home}/modules/tyrus-container-grizzly-client.jar${pathsep}${web.home}/modules/tyrus-spi.jar
// ${websocket.api}${pathsep}
# mix of paths for jetty-9.4.x and jetty-10.0.x
websocket.classes=${web.home}/lib/websocket/websocket-javax-client-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-javax-server-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-javax-common-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-core-@[email protected]$${web.home}/lib/websocket/javax-websocket-client-impl-@[email protected]${pathsep}${web.home}/lib/websocket/javax-websocket-server-impl-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-client-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-common-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-server-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-servlet-@[email protected]${pathsep}${web.home}/lib/jetty-util-@[email protected]${pathsep}${web.home}/lib/jetty-io-@[email protected]${pathsep}${web.home}/lib/jetty-client-@[email protected]${pathsep}${web.home}/lib/jetty-http-@[email protected]${pathsep}${web.home}/lib/websocket/jetty-websocket-common-@[email protected]${pathsep}${web.home}/lib/websocket/jetty-websocket-server-@[email protected]${pathsep}${web.home}/lib/websocket/jetty-websocket-server-@[email protected]${pathsep}${web.home}/lib/websocket/javax-websocket-common-@[email protected]${pathsep}${web.home}/lib/websocket/javax-websocket-client-@[email protected]${pathsep}${web.home}/lib/websocket/websocket-util-@[email protected]${pathsep}${web.home}/lib/websocket/javax-websocket-server-@[email protected]${pathsep}${web.home}/lib/jetty-slf4j-impl-@[email protected]${pathsep}${web.home}/lib/logging/slf4j-api-2.0.0-alpha1.jar
ts.classpath=${websocket.api}${pathsep}${ts.harness.classpath}
ts.harness.classpath=${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/websockettck.jar${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/classes${pathsep}${websocket.classes}${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}${ts.home}/lib/commons-codec-1.9.jar
ts.run.classpath=${websocket.api}${pathsep}${websocket.classes}${pathsep}${ts.harness.classpath}
local.classes=${ts.home}/classes${pathsep}${websocket.api}${pathsep}${websocket.classes}${pathsep}${ts.home}/lib/commons-httpclient-3.1.jar${pathsep}${ts.home}/lib/commons-logging-1.1.3.jar${pathsep}${ts.home}/lib/commons-codec-1.9.jar${pathsep}${ts.home}/lib/sigtest.jar${pathsep}${ts.home}/lib/javatest.jar:${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/websockettck.jar
##########################################################################
# Default client used for tests
##########################################################################
test.client=WSClient.java
##########################################################################
# Set your local timezone. For valid values, consult your Operating System
# documentation.
##########################################################################
tz=US/Eastern
deliverable.class=com.sun.ts.lib.deliverable.tck.TCKDeliverable
##########################################################################
# The alt.schema.dir and alt.dtd.dir properties specify the location of
# the Schemas used to package the TCK tests (web, j2ee, etc). These
# properties need not be set if only running the tests.
# DO NOT EDIT
##########################################################################
alt.dtd.dir=${ts.home}/lib/dtds
alt.schema.dir=${ts.home}/lib/schemas
##########################################################################
# The sigTestClasspath specify the location of websocket implementation
# classes that used for signature test
##########################################################################
sigTestClasspath=${java.home}/lib/rt.jar${pathsep}${websocket.classes}${pathsep}${websocket.api}
##########################################################################
## Deliverables wanting ts.* packaging tasks to add extension list
## attributes to the manifest files must set this property to true.
##########################################################################
#create.manifest.extension.entries=
##########################################################################
## Deliverables must set this property to the name of the deliverable
## specific library jar file (if create.manifest.extension.entries is set
## to true)
##########################################################################
tslib.name=websockettck
####################################################################
# Implementation Property Settings for Vendor and RI.
#
# They are are used when using the "ant deploy" and "ant undeploy"
# targets outside of running tests.
#
# The TCK provides to run tests against the glassfish implementation iby default
#
# Here are the common properties that need to be defined for the common
# implementation functionality:
#
# @impl.vi This property must be set to the Vendor implementation
# under test.
# @impl.vi.deploy.dir This property must be set to the deploy directory for
# the Vendor implementation.
####################################################################
impl.vi=
impl.vi.deploy.dir=${web.home}/domains/domain1/autodeploy
####################################################################
# For the webcontainer home properties defined above, if glassfish
# is selected these are the various additional properties that should
# be set for use with configuration setup.
####################################################################
glassfish.instance.home=${web.home}/domains/domain1
glassfish.admin.host=localhost
glassfish.admin.port=4848
glassfish.admin.user=admin
glassfish.admin.pass=
glassfish.master.pass=changeit
glassfish.server.instance=server
glassfish.domain.name=domain1
#################################################################
#The following properties must be set prior to running the JAXRS
#TCK tests. These properties are used for the JAXRS security tests
#which test HTTP Authentication.
#
# @user User defined to exercise rolemapping feature
# @password Associated password for the user
# @authuser User defined to exercise rolemapping feature
# @authpassword Associated password for the authuser
#################################################################
user=j2ee
password=j2ee
authuser=javajoe
authpassword=javajoe
##########################################################################
# Waiting time in seconds for socket to send/receive a message
##########################################################################
ws_wait=5
#################################################################
# To Configure config.vi with security manager
#################################################################
javaee.home=${web.home}
###############################################################
## Config params needed for Sun Java System Application Server
## (SJSAS) asadmin. You must change these values as needed
## only if you are testing against SJSAS app server
## (javaee.home is pointing to SJSAS).
#
# @s1as.admin.user -- The SJSAS asadmin user id
# @s1as.admin.passwd -- The SJSAS asadmin user password
# @s1as.admin.host -- The SJSAS host
# @s1as.admin.port -- The SJSAS port
# @s1as.admin -- The SJSAS admin command
# @s1as.server -- The SJSAS server instance being used
# @s1as.domain.dir -- Points to where your domains are installed.
# @s1as.domain.name -- The SJSAS domain being used
# @s1as.domain -- The SJSAS domain path being used
# @s1as.asenv.loc -- location of asenv.conf or asenv.bat
# @s1as.imqbin.loc -- location of the IMQ bin directory
# @s1as.lib -- Library directory for other Java EE RI
# jars
# @s1as.imq.share.lib -- Shared library directory for imq
# @s1as.jvm.options -- Java options needed by SJSAS
# The xxxlogin and xxxpassword are used
# to set known server side creds for use
# with connector tests.
# @s1as.java.endorsed.dirs -- endorsed directory used by SJSAS
# @s1as.applicationRoot-- Location of application repository
# Only needed when running on windows
# @s1as.db.ext.dirs -- The extension directory for DB Type 2
# drivers. Currently, this only needs
# to be set when using DB2 else it
# should be empty.
###############################################################
s1as.admin=${javaee.home}/bin/asadmin
s1as.domain.dir=${javaee.home}/domains
s1as.domain.name=domain1
s1as.domain=${s1as.domain.dir}/${s1as.domain.name}
s1as.admin.host=${glassfish.admin.host}
s1as.admin.port=${glassfish.admin.port}