-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathts.jte.jdk11
378 lines (340 loc) · 18.4 KB
/
ts.jte.jdk11
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
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
#
# Copyright (c) 2020, 2021 Oracle and/or its affiliates and others.
# 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 SERVLET Compatibility Test Suite #
# #
# Environment specific properties in this file will likely #
# have to be modified prior to running the SERVLET 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 Servlet Implementation
# @web.home The location of the vendor's Servlet implementation.
########################################################################
web.home=@WORKSPACE@/jetty-home/target/jetty-home
###############################################################
# The following property are added for setting up security tests.
# All values are default to running with Servlet RI.
#
# All above environmental property are
# used for method permission testing; as well as security related API testing.
#
#
## (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
#########################################################################
javaee.home=${web.home}
s1as.admin.user=admin
s1as.admin.passwd=
s1as.admin.host=${webServerHost}
s1as.admin.port=4848
s1as.admin=${javaee.home}/bin/asadmin
s1as.domain.dir=${web.home}/domains
s1as.domain.name=domain1
s1as.domain=${web.home}/domains/domain1
s1as.asenv.loc=${javaee.home}/config
###############################################################
# @tz - your local timezone. For valid values, consult your
# Operating System documentation.
###############################################################
tz=US/Eastern
###############################################################
# @alt.dtd.dir DTD location for Servlet specification and RI xml files.
# Used for xml validation when building tests.
# @alt.schema.dir schema location for Servlet specification and RI xml files.
# Used for xml validation when building tests.
###############################################################
alt.dtd.dir=${ts.home}/lib/dtds
alt.schema.dir=${ts.home}/lib/schemas
##########################################################################
## Classpath properties required by Servlet TCK:
# @ts.harness.classpath -- Classes required by javatest
# @ts.classpath -- Classes used to build the Servlet TCK tests
# @servlet.classes -- Servlet API classes, default value using Servlet RI
##########################################################################
local.classes=${ts.home}/classes${pathsep}${servlet.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${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/servlettck.jar${pathsep}${ts.home}/lib/http.jar
ts.classpath=${local.classes}${pathsep}${ts.harness.classpath}
ts.harness.classpath=${ts.home}/lib/jaxb-xjc.jar${pathsep}${ts.home}/lib/tsharness.jar${pathsep}${ts.home}/lib/servlettck.jar${pathsep}${ts.home}/lib/javatest.jar${pathsep}${ant.home}/lib/ant.jar${pathsep}${ts.home}/lib/http.jar${pathsep}${servlet.classes}${pathsep}${ts.home}/lib/jaxb-impl.jar${pathsep}${ts.home}/lib/jaxb-api.jar
#servlet.classes=${web.home}/modules/jakarta.servlet-api.jar${pathsep}${web.home}/modules/jakarta.annotation-api.jar
servlet.classes=${ts.home}/lib/annotation-api.jar${pathsep}${ts.home}/lib/servlet-api.jar
########################################################################
# @endorsedlib.dir - Location to be used for java.endorsed.dirs as some
# tests require some addition classes in the
# java.util.concurrent package that are not present
# in Java 8 as they were added in Java 9.
########################################################################
endorsedlib.dir=${ts.home}/endorsedlib
########################################################################
## 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 servlet and jsp.
########################################################################
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 \
-Djava.protocol.handler.pkgs=javax.net.ssl \
-Djavax.net.ssl.keyStore=${ts.home}/bin/certificates/clientcert.jks \
-Djavax.net.ssl.keyStorePassword=changeit \
-Djavax.net.ssl.trustStore=${ts.home}/bin/certificates/cacerts.jks \
${JAVA_OPTIONS} $testExecuteClass $testExecuteArgs
########################################################################
# Environment ts_unix
########################################################################
env.ts_unix.menu=true
########################################################################
# Environment ts_win32
########################################################################
env.ts_win32.menu=true
##########################################################################
# @jimage.dir: This property specifies the directory where Java 11+
# modules will be expanded by the jimage tool for use
# in sigTestClasspath
# @sigTestClasspath: This property specifies the location of servlet
# implementation classes used for the signature test
##########################################################################
jimage.dir=@WORKSPACE@/tmp/jdk-bundles
sigTestClasspath=${servlet.classes}${pathsep}${jimage.dir}/java.base${pathsep}${jimage.dir}/java.rmi${pathsep}${jimage.dir}/java.sql${pathsep}${jimage.dir}/java.naming
########################################################################
## These properties are used by the 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.temp.directory directory location used by the
# harness to store temporary files
#
# @harness.log.port the port the harness listens on for log mesages
# from remote clients
#
# @harness.log.traceflag used to turn on/off verbose debugging output
# for the tests.
#
# @harness.executeMode 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.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.delayseconds Number of seconds to delay to allow
# reporting from remote clients to finish.
#
########################################################################
harness.temp.directory=${TS_HOME}
harness.log.port=2000
harness.log.traceflag=true
harness.executeMode=2
harness.socket.retry.count=10
harness.log.delayseconds=1
harness.log.mode=silent
##########################################################################
# Added for convenience to use CTS utilities for deploy in Servlet RI
##########################################################################
impl.vi=
impl.vi.deploy.dir=${web.home}/domains/domain1/autodeploy
###############################################################
# These properties must be set to tell the Javatest harness the
# class names of your porting class implementations. By default
# the property settings below point to Sun RI specific classes.
# @porting.ts.url.class.1 VI of
# com.sun.ts.lib.porting.TSURLInterface
# @porting.ts.HttpsURLConnection.class.1 - VI of
# com.sun.ts.lib.porting.TSHttpsURLConnectionInterface
###############################################################
porting.ts.url.class.1=com.sun.ts.lib.implementation.sun.common.SunRIURL
porting.ts.HttpsURLConnection.class.1=com.sun.ts.lib.implementation.sun.javaee.SunRIHttpsURLConnection
##############################################################
# @certLoginUserAlias User alias for certificate based login.
# This property is used in mutual authentication to pickup the
# certificate based on the user alias.
##############################################################
certLoginUserAlias=cts
#########################################################################
## These properties must specify the host and port of the web server,
## in which the servlets are deployed.
#
# @webServerHost hostname for the Vendor's Java EE Web Server
# @webServerPort port number of the Vendor's Java EE Web Server
# @ServletClientThreads The ServletClientThreads property configures
# the number of threads used by the client for
# the SingleThreadModel servlet test. If the
# container implementation supports pooling of
# SingleThreadModel servlets, set the value of
# ServletClientThreads to twice the value of
# the default servlet instance pool size. If
# the container implementation only maintains
# a single instance of a SingleTheadModel
# servlet, leave the default value of 2.
#####################################################################
webServerHost=localhost
webServerPort=8080
ServletClientThreads=2
#########################################################################
## The following properties must be set before running any security
## related tests. The properties user, password, authuser, authpassword,
## and nobodyuser must be set.
##
## The value for user, password, authuser, and authpassword need to be set
## exactly as they are set in the container/server.
#
# @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
###############################################################
# @securedWebServicePort must be set to run secbasicssl test.
# Set this property with your application
# server's secured webservice port.
###############################################################
securedWebServicePort=8443
###############################################################################
# @client.cert.test.jdk.tls.client.protocols JDK 11 in TLSv1.3 does not support
# Post-Handshake Authentication, so TLSv1.2 must be used
# for client-cert authentication to work.
###############################################################################
client.cert.test.jdk.tls.client.protocols=TLSv1.2
###################################################################
###################################################################
###################################################################
## PROPERTIES USERS WILL NOT HAVE TO SET LIVE BELOW
###################################################################
###################################################################
###################################################################
##
## The directory seperator for the platform. User should not change
## this property.
##
dirsep=/
##build level
##2: compile and build component archives (e.g., jar's, war's)
##default is set to 3
build.level=2
##########################################################################
# Needed for building/packaging
##########################################################################
deliverable.class=com.sun.ts.lib.deliverable.servlet.ServletDeliverable
######################################################################
## Deliverables must set this property to the name of the deliverable
## specific library jar file (iff create.manifest.extension.entries
## is set to true)
######################################################################
tslib.name=servlettck
ts_home=${ts.home}
org.omg.CORBA.ORBClass=foo
##########################################################################
# @servlet_waittime: Time in seconds to wait after HttpSession expires
# to access the session
# @servlet_async_wait: Time in seconds to wait between sending asynchronous messages
# @logical.hostname.servlet
# This used to identify the the name of a logical host that
# processes Servlet requests. Servlet requests may be directed to
# a logical host using various physical or virtual host names or
# addresses, and a message processing runtime may be composed of
# multiple logical hosts (This is required to properly identify
# the servlet profiles AppContextId hostname.)
# If a logical.hostname.servlet does not exist, you can set this
# to the default hostname (eg webServerHost).
##########################################################################
servlet_waittime=10
servlet_async_wait=4
logical.hostname.servlet=server
##########################################################################
# Default client used for tests
##########################################################################
test.client=URLClient.java