testAuthBasicWWWAuthenticate_credenzialiNonValide
(from org.openspcoop2.protocol.trasparente.testsuite.units.rest.auth.RESTAutenticazionePortaApplicativa took 46 ms)PASS
Test Name: Ant test
Suite Name: Ant suite
Group(s): RESTAutenticazionePortaApplicativa, RESTAutenticazionePortaApplicativaNoPrincipal, RESTAutenticazionePortaApplicativa.AuthBasic_WWWAuthenticate_credenzialiNonValide
Reporter Output
URL: http://localhost:8080/govway/api/in/AuthenticationREST_basic/service/echo?destFile=/etc/govway/testfiles/restError.json&checkEqualsHttpHeader=ProvaHeaderRequest:TEST_15&destFileContentType=text/json&checkEqualsHttpMethod=GET
Atteso [401] ritornato [401], raccolgo id ...
Headers: ([Keep-Alive, Transfer-Encoding, GovWay-Transaction-ID, ReturnCode, Server, X-Content-Type-Options, WWW-Authenticate, Connection, Pragma, Date, GovWay-Version, GovWay-Transaction-ErrorType, GovWay-Version-Info, Cache-Control, Vary, Expires, Content-Type])
Leggo id transazione da header [GovWay-Transaction-ID]
[AuthnError-231db7ee-a671-11ef-b6a4-060730329b56] Atteso [401] ritornato [401]
WWWAuthenticate AuthType atteso 'Basic' rilevato 'Basic'
WWWAuthenticate Realm atteso 'TestGovWayBasic' rilevato 'TestGovWayBasic'
WWWAuthenticate error atteso 'invalid_request' rilevato 'invalid_request'
WWWAuthenticate error_description atteso 'TestGovWayBasic Invalid credentials' rilevato 'TestGovWayBasic Invalid credentials'