Class groovyx.net.http.UriBuilderSpec

19

tests

0

failures

0

ignored

0.445s

duration

100%

successful

Tests

Test Duration Result
another encoded uri test 0.162s passed
basic from root 0.008s passed
builder with parent 0.007s passed
commas allowed in query string 0.001s passed
full uri with path 0.002s passed
relative paths (http://localhost:9191/something /more/pathy -> http://localhost:9191/more/pathy) 0.001s passed
relative paths (http://localhost:9191/something more/pathy -> http://localhost:9191/something/more/pathy) 0s 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.014s passed
threadSafe from root 0.005s 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.002s passed
uri with query in configuration and empty verb 0.097s passed
url with encoded query 0.001s passed
url with encoded slash 0.003s passed
url with encoded slash (2) 0.069s passed
url with encoded slash (3) 0.067s passed

Standard output

19:16:23.443 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@1f27827
19:16:23.458 [XNIO-24 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-1', selector sun.nio.ch.EPollSelectorImpl@1fe80d50
19:16:23.466 [XNIO-24 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-2', selector sun.nio.ch.EPollSelectorImpl@56395709
19:16:23.472 [XNIO-24 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-3', selector sun.nio.ch.EPollSelectorImpl@65fe835a
19:16:23.475 [XNIO-24 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-4', selector sun.nio.ch.EPollSelectorImpl@33b5a67a
19:16:23.475 [XNIO-24 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-5', selector sun.nio.ch.EPollSelectorImpl@7a27cae9
19:16:23.477 [XNIO-24 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-6', selector sun.nio.ch.EPollSelectorImpl@7840a6cf
19:16:23.478 [XNIO-24 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-7', selector sun.nio.ch.EPollSelectorImpl@6d1b1891
19:16:23.478 [XNIO-24 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 I/O-8', selector sun.nio.ch.EPollSelectorImpl@f5e15a
19:16:23.482 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:23.482 [XNIO-24 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-24 Accept', selector sun.nio.ch.EPollSelectorImpl@5c528f2a
19:16:23.486 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:35669/something?foo=bar
19:16:23.487 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:23.503 [XNIO-24 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_222], Host=[localhost:35669]}, cookies=[:]): <empty> }
19:16:23.525 [XNIO-24 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
19:16:23.526 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:18 GMT
19:16:23.528 [Test worker] DEBUG ersatz.undertow - stopping undertow server ersatz.undertow.Undertow@1f27827
19:16:23.540 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@688c8165
19:16:23.542 [XNIO-25 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-1', selector sun.nio.ch.EPollSelectorImpl@44cd29cf
19:16:23.551 [XNIO-25 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-2', selector sun.nio.ch.EPollSelectorImpl@5c3b1e0f
19:16:23.558 [XNIO-25 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-3', selector sun.nio.ch.EPollSelectorImpl@455560d5
19:16:23.560 [XNIO-25 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-4', selector sun.nio.ch.EPollSelectorImpl@7f515e43
19:16:23.563 [XNIO-25 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-5', selector sun.nio.ch.EPollSelectorImpl@2c2c8adb
19:16:23.566 [XNIO-25 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-6', selector sun.nio.ch.EPollSelectorImpl@6db962a3
19:16:23.574 [XNIO-25 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-7', selector sun.nio.ch.EPollSelectorImpl@22191bbc
19:16:23.582 [XNIO-25 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 I/O-8', selector sun.nio.ch.EPollSelectorImpl@1b98efec
19:16:23.586 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:23.586 [XNIO-25 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-25 Accept', selector sun.nio.ch.EPollSelectorImpl@534dc04a
19:16:23.592 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:36749/api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json
19:16:23.592 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:23.598 [XNIO-25 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_222], Host=[localhost:36749]}, cookies=[:]): <empty> }
19:16:23.600 [XNIO-25 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
19:16:23.601 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:18 GMT
19:16:23.607 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@52d40d3e
19:16:23.614 [XNIO-26 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-1', selector sun.nio.ch.EPollSelectorImpl@46666934
19:16:23.614 [XNIO-26 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-2', selector sun.nio.ch.EPollSelectorImpl@5c52e788
19:16:23.619 [XNIO-26 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-3', selector sun.nio.ch.EPollSelectorImpl@20e39137
19:16:23.623 [XNIO-26 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-4', selector sun.nio.ch.EPollSelectorImpl@7732e06b
19:16:23.624 [XNIO-26 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-5', selector sun.nio.ch.EPollSelectorImpl@1a1b8278
19:16:23.625 [XNIO-26 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-6', selector sun.nio.ch.EPollSelectorImpl@5ae9b784
19:16:23.635 [XNIO-26 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-7', selector sun.nio.ch.EPollSelectorImpl@6c0c43b6
19:16:23.638 [XNIO-26 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 I/O-8', selector sun.nio.ch.EPollSelectorImpl@6bfea129
19:16:23.642 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:23.642 [XNIO-26 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-26 Accept', selector sun.nio.ch.EPollSelectorImpl@5ac35831
19:16:23.651 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): http://localhost:34059/api/v4/projects/myteam%2Fmyrepo/repository/files/myfile.json
19:16:23.652 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:23.665 [XNIO-26 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_222], Host=[localhost:34059]}, cookies=[:]): <empty> }
19:16:23.667 [XNIO-26 task-1] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/plain]}): ok
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: ok
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/plain
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 22
19:16:23.668 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:18 GMT
19:16:23.686 [Test worker] DEBUG ersatz.undertow - starting undertow server ersatz.undertow.Undertow@5221b116
19:16:23.689 [XNIO-27 I/O-1] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-1', selector sun.nio.ch.EPollSelectorImpl@67a496cf
19:16:23.695 [XNIO-27 I/O-2] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-2', selector sun.nio.ch.EPollSelectorImpl@31156451
19:16:23.696 [XNIO-27 I/O-3] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-3', selector sun.nio.ch.EPollSelectorImpl@100c17f6
19:16:23.698 [XNIO-27 I/O-4] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-4', selector sun.nio.ch.EPollSelectorImpl@5782e522
19:16:23.707 [XNIO-27 I/O-6] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-6', selector sun.nio.ch.EPollSelectorImpl@4057ef7a
19:16:23.707 [XNIO-27 I/O-5] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-5', selector sun.nio.ch.EPollSelectorImpl@544ad8f1
19:16:23.727 [XNIO-27 I/O-7] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-7', selector sun.nio.ch.EPollSelectorImpl@3faea825
19:16:23.734 [XNIO-27 I/O-8] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 I/O-8', selector sun.nio.ch.EPollSelectorImpl@5e9597ef
19:16:23.738 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTP for interface localhost and port 0
19:16:23.738 [XNIO-27 Accept] DEBUG ersatz.xnio.nio - Started channel thread 'XNIO-27 Accept', selector sun.nio.ch.EPollSelectorImpl@6837619d
19:16:23.740 [Test worker] DEBUG ersatz.undertow - Configuring listener with protocol HTTPS for interface localhost and port 0
19:16:23.765 [Test worker] DEBUG groovyx.net.http.JavaHttpBuilder - Request-URI(GET): https://localhost:44451/api/v4/projects/something%2Fsomewhere/repository/files/thefile/salt-api_request.json?ref=master
19:16:23.766 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: PRIVATE-TOKEN -> [asdfasdfasdf]
19:16:23.766 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept -> [application/json]
19:16:23.766 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Accept-Encoding -> [gzip, deflate]
19:16:23.766 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Request-Header: Content-Type -> [application/json; charset=utf-8]
19:16:23.819 [XNIO-27 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_222], Host=[localhost:44451]}, cookies=[:]): <empty> }
19:16:23.825 [XNIO-27 task-3] DEBUG com.stehno.ersatz.ErsatzServer - Response({Content-Type=[text/json]}): {"value":"ok"}
19:16:23.827 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.content - Response-Body: {"value":"ok"}
19:16:23.827 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Encoding -> gzip
19:16:23.827 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Connection -> keep-alive
19:16:23.828 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Type -> text/json
19:16:23.828 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Content-Length -> 34
19:16:23.828 [Test worker] DEBUG groovy.net.http.JavaHttpBuilder.headers - Response-Header: Date -> Sun, 11 Aug 2019 00:16:18 GMT