Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Remove the lock-out realm

Client certificate tests: see below

Test Suite

Download latest nightly build

https://download.eclipse.org/ee4j/jakartaee-tck/8.0.1/nightly/servlettck-4.0_latest.zip

Extract to SERVLET_TCK_HOME

Import bin/cts_cert to a truststore doing: "keytool -import -alias cts -file cts_cert -storetype JKS -keystore cacerts.jks" password should be "changeit"

Create the truststore using  "keytool -import -alias cts -file cts_cert -storetype JKS -keystore cacerts.jks" password should be "changeit"

Place cacerts.jks

...

truststore in $SERVLET_TCK_HOME/bin/certificates

...

Add $SERVLET_TCK_HOME/bin/certificates/cacerts.jks and $SERVLET_TCK_HOME/bin/certificates/

...

clientcert.jks

...

in the

...

Tomcat conf folder

...

Download latest nightly build

https://download.eclipse.org/ee4j/jakartaee-tck/8.0.1/nightly/servlettck-4.0_latest.zip

Extract to SERVLET_TCK_HOME


Edit $SERVLET_TCK_HOME/bin/ts.jte

You'll need to set the following properties (adjust the paths and values for your environment)

...


web.

...

home=/path/to/tomcat

servlet.classes=${web.home}home/mark/repos/asf-public/tomcat/trunk/output/build/lib/servlet-api.jar:/${web.home/mark/repos/asf-public/tomcat/trunk/output/build/}/lib/annotations-api.jar
webServerHost=localhost

...

command.testExecute += -Djava.endorsed.dirs=${ts.home}/endorsedlib -Djavax.net.ssl.trustStore=${ts.home}/bin/certificates/cacerts.jks
  
set JAVA_HOME
cd $SERVLET_TCK_HOME/bin

...

A default 9.0.x build with the above configuration triggers 11 12 test failures

2 Expected failures

...

  • 1 x case sensitive HTTP header checks
  • 5 * com/sun/ts/tests/servlet/spec/security/denyUncovered/* use URLs which don't match the WAR name (; it needs to be renamed from servlet_sec_denyUncovered_web.war to servlet_sec_denyUncovered.war (there is a proprietary descriptor to rectify the mapping on deployment for Glassfish, but it is not portable)

3 4 TBD

  • 1 * 2 * com/sun/ts/tests/servlet/api/javax_servlet_http/sessioncookieconfig/constructortest1 com/sun/ts/tests/servlet/pluggability/api/javax_servlet_http/sessioncookieconfig/constructortest1
  • 2 * com/sun/ts/tests/servlet/spec/security/secbasic/client.java#test7[_anno]

...