Class groovyx.net.http.UriBuilderSpec

19

tests

0

failures

0

ignored

0.201s

duration

100%

successful

Tests

Test Duration Result
another encoded uri test 0.095s passed
basic from root 0.001s passed
builder with parent 0.002s passed
commas allowed in query string 0s passed
full uri with path 0.001s passed
relative paths (http://localhost:9191/something /more/pathy -> http://localhost:9191/more/pathy) 0s passed
relative paths (http://localhost:9191/something more/pathy -> http://localhost:9191/something/more/pathy) 0.001s passed
relative paths (http://localhost:9191/something/ /more/pathy -> http://localhost:9191/more/pathy) 0s passed
relative paths (http://localhost:9191/something/ more/pathy -> http://localhost:9191/something/more/pathy) 0.001s passed
root yields empty URI 0.009s passed
threadSafe from root 0.001s passed
uri full specified with duplicates in query string 0.001s passed
uri full specified with query string 0.004s passed
uri with param with no value 0.001s passed
uri with query in configuration and empty verb 0.030s passed
url with encoded query 0.001s passed
url with encoded slash 0.001s passed
url with encoded slash (2) 0.029s passed
url with encoded slash (3) 0.023s passed

Standard output

06:24:59.259 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@49212e0b
06:24:59.260 [XNIO-61 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-1', selector sun.nio.ch.EPollSelectorImpl@5a473265
06:24:59.262 [XNIO-61 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-2', selector sun.nio.ch.EPollSelectorImpl@2e3afa45
06:24:59.267 [XNIO-61 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-3', selector sun.nio.ch.EPollSelectorImpl@4168883f
06:24:59.274 [XNIO-61 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-4', selector sun.nio.ch.EPollSelectorImpl@44641681
06:24:59.274 [XNIO-61 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-5', selector sun.nio.ch.EPollSelectorImpl@3367ec92
06:24:59.274 [XNIO-61 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-7', selector sun.nio.ch.EPollSelectorImpl@2b0598ff
06:24:59.274 [XNIO-61 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 Accept', selector sun.nio.ch.EPollSelectorImpl@773b3a92
06:24:59.274 [XNIO-61 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-8', selector sun.nio.ch.EPollSelectorImpl@64d064cf
06:24:59.274 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:59.274 [XNIO-61 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-61 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6e198400
06:24:59.277 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:42675/something?foo=bar
06:24:59.277 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:24:59.282 [XNIO-61 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /something (query=[foo:[bar]], headers={Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], User-Agent=[Java/1.8.0_131], Host=[localhost:42675]}, cookies=[:]): <empty> }
06:24:59.283 [XNIO-61 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
06:24:59.283 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:50 GMT
06:24:59.284 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@49212e0b
06:24:59.291 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@9ad2207
06:24:59.297 [XNIO-62 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-1', selector sun.nio.ch.EPollSelectorImpl@7cc46c5
06:24:59.298 [XNIO-62 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-3', selector sun.nio.ch.EPollSelectorImpl@65d1b5ca
06:24:59.299 [XNIO-62 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-2', selector sun.nio.ch.EPollSelectorImpl@2da974d7
06:24:59.300 [XNIO-62 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-4', selector sun.nio.ch.EPollSelectorImpl@10e81582
06:24:59.300 [XNIO-62 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-6', selector sun.nio.ch.EPollSelectorImpl@2ebe491e
06:24:59.300 [XNIO-62 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-5', selector sun.nio.ch.EPollSelectorImpl@3159048c
06:24:59.300 [XNIO-62 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-7', selector sun.nio.ch.EPollSelectorImpl@7c90d9e7
06:24:59.300 [XNIO-62 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 I/O-8', selector sun.nio.ch.EPollSelectorImpl@3f708ad1
06:24:59.300 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:59.300 [XNIO-62 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-62 Accept', selector sun.nio.ch.EPollSelectorImpl@6dba3e6c
06:24:59.303 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:43193/api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json
06:24:59.303 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:24:59.314 [XNIO-62 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json (query=[:], headers={Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], User-Agent=[Java/1.8.0_131], Host=[localhost:43193]}, cookies=[:]): <empty> }
06:24:59.315 [XNIO-62 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
06:24:59.315 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:50 GMT
06:24:59.322 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@44e7a69d
06:24:59.323 [XNIO-63 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-1', selector sun.nio.ch.EPollSelectorImpl@4fc1d96
06:24:59.325 [XNIO-63 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-2', selector sun.nio.ch.EPollSelectorImpl@6c05e043
06:24:59.325 [XNIO-63 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-3', selector sun.nio.ch.EPollSelectorImpl@6ea05508
06:24:59.326 [XNIO-63 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-6', selector sun.nio.ch.EPollSelectorImpl@16985db3
06:24:59.325 [XNIO-63 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-4', selector sun.nio.ch.EPollSelectorImpl@5c706fd0
06:24:59.325 [XNIO-63 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2893ba3b
06:24:59.326 [XNIO-63 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-7', selector sun.nio.ch.EPollSelectorImpl@45f12af7
06:24:59.326 [XNIO-63 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 I/O-8', selector sun.nio.ch.EPollSelectorImpl@354a9b94
06:24:59.326 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:59.326 [XNIO-63 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-63 Accept', selector sun.nio.ch.EPollSelectorImpl@37009f7f
06:24:59.329 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:41987/api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json
06:24:59.330 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:24:59.338 [XNIO-63 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json (query=[:], headers={Accept=[text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], User-Agent=[Java/1.8.0_131], Host=[localhost:41987]}, cookies=[:]): <empty> }
06:24:59.338 [XNIO-63 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
06:24:59.339 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:50 GMT
06:24:59.353 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@5b0561fe
06:24:59.358 [XNIO-64 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-1', selector sun.nio.ch.EPollSelectorImpl@10b18dcf
06:24:59.358 [XNIO-64 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-2', selector sun.nio.ch.EPollSelectorImpl@a74259
06:24:59.358 [XNIO-64 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-3', selector sun.nio.ch.EPollSelectorImpl@3d38c41f
06:24:59.366 [XNIO-64 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-4', selector sun.nio.ch.EPollSelectorImpl@ba09c1a
06:24:59.370 [XNIO-64 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-8', selector sun.nio.ch.EPollSelectorImpl@40e8e484
06:24:59.366 [XNIO-64 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-5', selector sun.nio.ch.EPollSelectorImpl@54ba84b
06:24:59.366 [XNIO-64 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-7', selector sun.nio.ch.EPollSelectorImpl@1dc70767
06:24:59.366 [XNIO-64 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 I/O-6', selector sun.nio.ch.EPollSelectorImpl@17c71265
06:24:59.378 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
06:24:59.378 [XNIO-64 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-64 Accept', selector sun.nio.ch.EPollSelectorImpl@4f3d2b
06:24:59.378 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
06:24:59.394 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): https://localhost:35417/api/v4/projects/something%2Fsomewhere/repository/files/thefile/salt-api_request.json?ref=master
06:24:59.396 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: PRIVATE-TOKEN -> [asdfasdfasdf]
06:24:59.396 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept -> [application/json]
06:24:59.396 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
06:24:59.396 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Content-Type -> [application/json; charset=utf-8]
06:24:59.431 [XNIO-64 task-3] DEBUG com.stehno.ersatz.ErsatzServer - Request: { GET /api/v4/projects/something%2Fsomewhere/repository/files/thefile/salt-api_request.json (query=[ref:[master]], headers={Accept=[application/json], Connection=[keep-alive], Accept-Encoding=[gzip, deflate], PRIVATE-TOKEN=[asdfasdfasdf], Content-Type=[application/json; charset=utf-8], User-Agent=[Java/1.8.0_131], Host=[localhost:35417]}, cookies=[:]): <empty> }
06:24:59.432 [XNIO-64 task-3] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/json]}): {"value":"ok"}
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: {"value":"ok"}
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/json
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 34
06:24:59.433 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Mon, 20 Nov 2017 12:24:50 GMT