Integrationtest should set the accept-language to en, for common testing

Description

None

Environment

None

Activity

Show:
Achim Nierbeck
June 2, 2014, 10:33 PM

Branch: refs/heads/master
Home: https://github.com/ops4j/org.ops4j.pax.web
Commit: 0d376f076de7ab86bc57334fdbf939aa9cd0c897
https://github.com/ops4j/org.ops4j.pax.web/commit/0d376f076de7ab86bc57334fdbf939aa9cd0c897
Date: 2014-06-03 (Tue, 03 Jun 2014)

CharlieM
June 4, 2014, 5:01 PM

Hi,

Unfortunately, tests are failing, even with the patch:

Failed tests:
testWebContainerExample(org.ops4j.pax.web.itest.tomcat.WarBasicAuthTCIntegrationTest):

Content: <html><head><title>Apache Geronimo(Embedded Tomcat 7.0.27.1) - Rapport d''erreur</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>Etat HTTP 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Rapport d''état</p><p><b>message</b> <u></u></p><p><b>description</b> <u>La requête nécessite une authentification HTTP ().</u></p><HR size="1" noshade="noshade"><h3>Apache Geronimo(Embedded Tomcat 7.0.27.1)</h3></body></html>

Telling request needs an http auth

testWebContainerAdditionalSample(org.ops4j.pax.web.itest.tomcat.WarBasicAuthTCIntegrationTest):

Content: <html><head><title>Apache Geronimo(Embedded Tomcat 7.0.27.1) - Rapport d''erreur</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>Etat HTTP 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Rapport d''état</p><p><b>message</b> <u></u></p><p><b>description</b> <u>La requête nécessite une authentification HTTP ().</u></p><HR size="1" noshade="noshade"><h3>Apache Geronimo(Embedded Tomcat 7.0.27.1)</h3></body></html>

Same for here.

I'm with Jdk 1.7.60

Achim Nierbeck
June 5, 2014, 9:32 PM

Branch: refs/heads/master
Home: https://github.com/ops4j/org.ops4j.pax.web
Commit: 90f9c683138a02a8e78b27f49f184b332d93ee15
https://github.com/ops4j/org.ops4j.pax.web/commit/90f9c683138a02a8e78b27f49f184b332d93ee15
Date: 2014-06-05 (Thu, 05 Jun 2014)


The fix pretty much just ignores the response when a 401 RC is expected.

Achim Nierbeck
June 14, 2014, 11:11 PM

last time missed one call of the client.

Branch: refs/heads/master
Home: https://github.com/ops4j/org.ops4j.pax.web
Commit: 9f721ec99fdbada7230c81cb6131f043c839d709
https://github.com/ops4j/org.ops4j.pax.web/commit/9f721ec99fdbada7230c81cb6131f043c839d709
Date: 2014-06-15 (Sun, 15 Jun 2014)

Assignee

Achim Nierbeck

Reporter

Achim Nierbeck

Labels

None

Components

Fix versions

Priority

Major
Configure