Project Date
DKK API TEST 15 Jun 2021, 02:31

Feature Report

Steps Scenarios Features
Feature Passed Failed Skipped Pending Undefined Total Passed Failed Total Duration Status
download/T05_FullCustom.feature 264 0 0 0 0 264 8 0 8 34.444 Passed
Tags: @SMOKE
Feature download/T05_FullCustom.feature
DKK Api geeft Custom full
0.001
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.001
02:29:19.525 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
3.211
Given request {format: 'gml',featuretypes: ["perceel"], geofilter: 'POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))' } 0.000
When method post 1.586
02:29:19.527 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 218
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["perceel"],"geofilter":"POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))"}

02:29:21.113 response time in milliseconds: 1585.48
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:20 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status"}},"downloadRequestId":"ee7478ad-b7af-4902-45c7-4be3205ad4dd"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.042
And def statusurl = apiBaseUrl + links.status.href 0.002
* print 'links:' , links 0.004
02:29:21.163 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status"
  }
}
* print 'statusurl', statusurl 0.011
02:29:21.175 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status
* print 'extracId:', downloadRequestId 0.014
02:29:21.190 [print] extracId: ee7478ad-b7af-4902-45c7-4be3205ad4dd
Given url statusurl 0.000
When method GET 0.491
02:29:21.190 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:21.682 response time in milliseconds: 490.82
2 < 200
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 160
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:21 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status"}},"progress":100,"status":"RUNNING"}
* print "waiting update delta link" 0.001
02:29:21.684 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.490
02:29:21.688 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/ee7478ad-b7af-4902-45c7-4be3205ad4dd/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:22.176 response time in milliseconds: 487.48
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:22 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/91711e57-5926-42b9-8de1-5d25baf23508/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.001
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.002
02:29:22.181 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/91711e57-5926-42b9-8de1-5d25baf23508/extract.zip
Given url downloadlink 0.000
When method HEAD 0.535
02:29:22.182 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/91711e57-5926-42b9-8de1-5d25baf23508/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:22.717 response time in milliseconds: 534.13
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 1805266
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:29:22 GMT
4 < Etag: "9621e3316ec021d13d5b375066c5f41e-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:22 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A085E72063B3
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.000
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.002
02:29:22.725 [print] size 1805266
* assert zipsize > 300 0.007
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_1_perceel\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.013
0.001
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.001
02:29:29.662 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
4.051
Given request {format: 'gml',featuretypes: ["kadastralegrens"], geofilter: 'POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))' } 0.000
When method post 2.487
02:29:29.677 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 226
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["kadastralegrens"],"geofilter":"POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))"}

02:29:32.151 response time in milliseconds: 2473.55
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:32 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status"}},"downloadRequestId":"3f8bc35d-2207-49df-6091-6409d093bf8e"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.002
And def statusurl = apiBaseUrl + links.status.href 0.002
* print 'links:' , links 0.004
02:29:32.162 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status"
  }
}
* print 'statusurl', statusurl 0.009
02:29:32.171 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status
* print 'extracId:', downloadRequestId 0.003
02:29:32.174 [print] extracId: 3f8bc35d-2207-49df-6091-6409d093bf8e
Given url statusurl 0.000
When method GET 0.509
02:29:32.176 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:32.684 response time in milliseconds: 507.81
2 < 200
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 160
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:32 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status"}},"progress":100,"status":"RUNNING"}
* print "waiting update delta link" 0.003
02:29:32.688 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.485
02:29:32.689 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/3f8bc35d-2207-49df-6091-6409d093bf8e/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:33.173 response time in milliseconds: 484.12
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:33 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/13625067-128a-4d8f-8cc3-d532f5b97b93/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.002
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.000
02:29:33.177 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/13625067-128a-4d8f-8cc3-d532f5b97b93/extract.zip
Given url downloadlink 0.000
When method HEAD 0.518
02:29:33.178 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/13625067-128a-4d8f-8cc3-d532f5b97b93/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:33.696 response time in milliseconds: 517.24
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 2207806
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:29:33 GMT
4 < Etag: "a14569a99d5c9f929ccab40ec5481035-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:32 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A0887689F6EB
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.000
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:29:33.706 [print] size 2207806
* assert zipsize > 300 0.017
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_2_kadastralegrens\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.002
0.001
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.001
02:29:37.075 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
2.055
Given request {format: 'gml',featuretypes: ["pand"], geofilter: 'POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))' } 0.000
When method post 0.486
02:29:37.078 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 215
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["pand"],"geofilter":"POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))"}

02:29:37.563 response time in milliseconds: 485.68
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:37 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status"}},"downloadRequestId":"57163183-7468-4603-5ba9-e0f40471ad13"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.006
And def statusurl = apiBaseUrl + links.status.href 0.006
* print 'links:' , links 0.039
02:29:37.617 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status"
  }
}
* print 'statusurl', statusurl 0.001
02:29:37.619 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status
* print 'extracId:', downloadRequestId 0.003
02:29:37.622 [print] extracId: 57163183-7468-4603-5ba9-e0f40471ad13
Given url statusurl 0.000
When method GET 0.504
02:29:37.630 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:38.127 response time in milliseconds: 496.72
2 < 200
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 160
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:38 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status"}},"progress":100,"status":"RUNNING"}
* print "waiting update delta link" 0.001
02:29:38.132 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.480
02:29:38.133 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/57163183-7468-4603-5ba9-e0f40471ad13/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:38.613 response time in milliseconds: 479.57
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:38 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/0af8b23e-6382-4984-b646-f84988ff1fae/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.002
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.000
02:29:38.616 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/0af8b23e-6382-4984-b646-f84988ff1fae/extract.zip
Given url downloadlink 0.000
When method HEAD 0.506
02:29:38.617 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/0af8b23e-6382-4984-b646-f84988ff1fae/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:39.122 response time in milliseconds: 504.93
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 1633902
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:29:39 GMT
4 < Etag: "5cc6b306c5b2ffba047bfcd004af849f-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:38 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A089B99DA68D
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.000
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:29:39.123 [print] size 1633902
* assert zipsize > 300 0.006
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_3_pand\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.006
0.001
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.001
02:29:40.272 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
3.963
Given request {format: 'gml',featuretypes: ["openbareruimtelabel"], geofilter: 'POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))' } 0.000
When method post 2.448
02:29:40.275 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 230
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["openbareruimtelabel"],"geofilter":"POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))"}

02:29:42.723 response time in milliseconds: 2447.69
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:42 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/fba3dfc9-b1fd-4671-66ca-14db8c1f0889/status"}},"downloadRequestId":"fba3dfc9-b1fd-4671-66ca-14db8c1f0889"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.001
And def statusurl = apiBaseUrl + links.status.href 0.001
* print 'links:' , links 0.006
02:29:42.740 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/fba3dfc9-b1fd-4671-66ca-14db8c1f0889/status"
  }
}
* print 'statusurl', statusurl 0.003
02:29:42.744 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/fba3dfc9-b1fd-4671-66ca-14db8c1f0889/status
* print 'extracId:', downloadRequestId 0.002
02:29:42.746 [print] extracId: fba3dfc9-b1fd-4671-66ca-14db8c1f0889
Given url statusurl 0.000
When method GET 0.486
02:29:42.750 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/fba3dfc9-b1fd-4671-66ca-14db8c1f0889/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:43.233 response time in milliseconds: 482.91
2 < 201
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 167
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:43 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/4da425e2-9e33-4369-88e5-04d018615a9f/extract.zip"}},"progress":100,"status":"COMPLETED"}
* print "waiting update delta link" 0.001
02:29:43.235 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.493
02:29:43.237 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/fba3dfc9-b1fd-4671-66ca-14db8c1f0889/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:43.728 response time in milliseconds: 490.68
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:43 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/4da425e2-9e33-4369-88e5-04d018615a9f/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.004
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.000
02:29:43.734 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/4da425e2-9e33-4369-88e5-04d018615a9f/extract.zip
Given url downloadlink 0.000
When method HEAD 0.500
02:29:43.739 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/4da425e2-9e33-4369-88e5-04d018615a9f/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:44.234 response time in milliseconds: 494.74
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 29974
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:29:44 GMT
4 < Etag: "c592387aec83091f5cbe9d9309162462-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:42 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A08AEABA1D6A
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.002
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.002
02:29:44.241 [print] size 29974
* assert zipsize > 300 0.001
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_4_openbareruimtelabel\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.002
0.001
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.001
02:29:47.336 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
9.113
Given request {format: 'gml',featuretypes: ["perceel", "kadastralegrens", "pand", "openbareruimtelabel"], geofilter: 'POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))' } 0.000
When method post 1.865
02:29:47.338 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 265
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["perceel","kadastralegrens","pand","openbareruimtelabel"],"geofilter":"POLYGON((81044.88 455429.52,81634.56000000001 455444.64,81735.36000000002 455199.36,81612.72 454955.76,81070.08 454952.4,80880.24 455192.64,81044.88 455429.52))"}

02:29:49.203 response time in milliseconds: 1864.29
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:49 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status"}},"downloadRequestId":"7c821444-e2d3-4cae-481e-6241f811a1c3"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.001
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.007
And def statusurl = apiBaseUrl + links.status.href 0.001
* print 'links:' , links 0.005
02:29:49.219 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status"
  }
}
* print 'statusurl', statusurl 0.001
02:29:49.222 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status
* print 'extracId:', downloadRequestId 0.003
02:29:49.225 [print] extracId: 7c821444-e2d3-4cae-481e-6241f811a1c3
Given url statusurl 0.000
When method GET 0.673
02:29:49.226 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:49.898 response time in milliseconds: 672.32
2 < 200
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 158
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:49 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status"}},"progress":0,"status":"PENDING"}
* print "waiting update delta link" 0.001
02:29:49.900 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 6.038
02:29:49.901 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:50.449 response time in milliseconds: 547.85
3 < 200
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 159
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:50 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status"}},"progress":25,"status":"RUNNING"}

02:29:50.450 retry condition not satisfied: responseStatus == 201
02:29:50.450 sleeping before retry #1
02:29:55.451 request:
4 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/7c821444-e2d3-4cae-481e-6241f811a1c3/status
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:55.932 response time in milliseconds: 481.32
4 < 201
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Method: GET,POST,OPTIONS
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
4 < Content-Length: 167
4 < Content-Type: application/json
4 < Date: Tue, 15 Jun 2021 02:29:55 GMT
4 < Expires: 0
4 < Pragma: no-cache
4 < Server: Apache
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/827e7b8d-9908-400f-838b-288baeb65b43/extract.zip"}},"progress":100,"status":"COMPLETED"}

02:29:55.939 retry condition satisfied
And def downloadlink = apiBaseUrl + response._links.download.href 0.003
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.000
02:29:55.943 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/827e7b8d-9908-400f-838b-288baeb65b43/extract.zip
Given url downloadlink 0.000
When method HEAD 0.494
02:29:55.945 request:
5 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/827e7b8d-9908-400f-838b-288baeb65b43/extract.zip
5 > Accept-Encoding: gzip,deflate
5 > Connection: Keep-Alive
5 > Host: downloads.pdok.nl
5 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:56.438 response time in milliseconds: 493.03
5 < 200
5 < Accept-Ranges: bytes
5 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
5 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
5 < Access-Control-Allow-Origin: *
5 < Access-Control-Max-Age: 1000
5 < Content-Disposition: attachment; filename=extract.zip
5 < Content-Length: 5676882
5 < Content-Security-Policy: block-all-mixed-content
5 < Content-Type: application/zip
5 < Date: Tue, 15 Jun 2021 02:29:56 GMT
5 < Etag: "4a00513059e6a7ede1887842a530d1ce-2"
5 < Last-Modified: Tue, 15 Jun 2021 02:29:52 GMT
5 < Server: MinIO
5 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
5 < Vary: Origin
5 < X-Amz-Request-Id: 1688A08DC1FB4365
5 < X-Cnection: close
5 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.000
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:29:56.439 [print] size 5676882
* assert zipsize > 300 0.005
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_5_4features_hof\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.005
0.000
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.000
02:29:55.009 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
2.317
Given request {format: 'gml',featuretypes: ["perceel","openbareruimtelabel"], geofilter: 'POLYGON((171808.896 509246.97597949224,172768.51212304688 509276.54393847665,172760.44804101562 508392.1920000001,171773.95212304688 508381.43995898444,171808.896 509246.97597949224))' } 0.000
When method post 0.503
02:29:55.011 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 263
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["perceel","openbareruimtelabel"],"geofilter":"POLYGON((171808.896 509246.97597949224,172768.51212304688 509276.54393847665,172760.44804101562 508392.1920000001,171773.95212304688 508381.43995898444,171808.896 509246.97597949224))"}

02:29:55.514 response time in milliseconds: 502.33
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:55 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/a13d9b9c-e7b4-4c70-4f1f-5754616e53ea/status"}},"downloadRequestId":"a13d9b9c-e7b4-4c70-4f1f-5754616e53ea"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.004
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.001
And def statusurl = apiBaseUrl + links.status.href 0.003
* print 'links:' , links 0.001
02:29:55.527 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/a13d9b9c-e7b4-4c70-4f1f-5754616e53ea/status"
  }
}
* print 'statusurl', statusurl 0.000
02:29:55.528 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/a13d9b9c-e7b4-4c70-4f1f-5754616e53ea/status
* print 'extracId:', downloadRequestId 0.004
02:29:55.533 [print] extracId: a13d9b9c-e7b4-4c70-4f1f-5754616e53ea
Given url statusurl 0.000
When method GET 0.511
02:29:55.536 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/a13d9b9c-e7b4-4c70-4f1f-5754616e53ea/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:56.044 response time in milliseconds: 507.93
2 < 201
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 167
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:55 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/7a108de6-a3bc-4f65-82c0-8520494f2b09/extract.zip"}},"progress":100,"status":"COMPLETED"}
* print "waiting update delta link" 0.002
02:29:56.046 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.496
02:29:56.047 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/a13d9b9c-e7b4-4c70-4f1f-5754616e53ea/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:56.537 response time in milliseconds: 489.68
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:56 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/7a108de6-a3bc-4f65-82c0-8520494f2b09/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.000
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.000
02:29:56.544 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/7a108de6-a3bc-4f65-82c0-8520494f2b09/extract.zip
Given url downloadlink 0.000
When method HEAD 0.776
02:29:56.549 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/7a108de6-a3bc-4f65-82c0-8520494f2b09/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:57.320 response time in milliseconds: 771.08
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 561032
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:29:57 GMT
4 < Etag: "d9a891898850e4dfa3d9333045cfdf81-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:55 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A08DEB2968F9
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.005
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:29:57.326 [print] size 561032
* assert zipsize > 300 0.000
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_6_perceelenOpenbareruimtelabel_swift\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.002
0.000
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.000
02:29:58.374 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
2.037
Given request {format: 'gml',featuretypes: ["pand","openbareruimtelabel"], geofilter: 'POLYGON((194115.26404101565 465939.2639692384,194369.2799794922 465943.296010254,194351.80802050783 465775.29595898447,194093.76006152347 465724.2240205079,194115.26404101565 465939.2639692384))' } 0.000
When method post 0.512
02:29:58.375 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 271
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["pand","openbareruimtelabel"],"geofilter":"POLYGON((194115.26404101565 465939.2639692384,194369.2799794922 465943.296010254,194351.80802050783 465775.29595898447,194093.76006152347 465724.2240205079,194115.26404101565 465939.2639692384))"}

02:29:58.887 response time in milliseconds: 511.34
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:58 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/febda526-4006-431f-4cb5-4a07b1a0944e/status"}},"downloadRequestId":"febda526-4006-431f-4cb5-4a07b1a0944e"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.000
And def statusurl = apiBaseUrl + links.status.href 0.000
* print 'links:' , links 0.000
02:29:58.889 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/febda526-4006-431f-4cb5-4a07b1a0944e/status"
  }
}
* print 'statusurl', statusurl 0.002
02:29:58.892 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/febda526-4006-431f-4cb5-4a07b1a0944e/status
* print 'extracId:', downloadRequestId 0.000
02:29:58.893 [print] extracId: febda526-4006-431f-4cb5-4a07b1a0944e
Given url statusurl 0.000
When method GET 0.505
02:29:58.901 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/febda526-4006-431f-4cb5-4a07b1a0944e/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:59.398 response time in milliseconds: 497.10
2 < 201
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 167
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:59 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/ba85c8bd-9cbc-41e9-9458-2d55adc5f6fd/extract.zip"}},"progress":100,"status":"COMPLETED"}
* print "waiting update delta link" 0.000
02:29:59.399 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 0.480
02:29:59.400 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/febda526-4006-431f-4cb5-4a07b1a0944e/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:29:59.879 response time in milliseconds: 479.12
3 < 201
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 167
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:59 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/ba85c8bd-9cbc-41e9-9458-2d55adc5f6fd/extract.zip"}},"progress":100,"status":"COMPLETED"}
And def downloadlink = apiBaseUrl + response._links.download.href 0.000
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.005
02:29:59.886 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/ba85c8bd-9cbc-41e9-9458-2d55adc5f6fd/extract.zip
Given url downloadlink 0.000
When method HEAD 0.519
02:29:59.887 request:
4 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/ba85c8bd-9cbc-41e9-9458-2d55adc5f6fd/extract.zip
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:30:00.405 response time in milliseconds: 518.31
4 < 200
4 < Accept-Ranges: bytes
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Content-Disposition: attachment; filename=extract.zip
4 < Content-Length: 138140
4 < Content-Security-Policy: block-all-mixed-content
4 < Content-Type: application/zip
4 < Date: Tue, 15 Jun 2021 02:30:00 GMT
4 < Etag: "fac221052db452b07945ee659eb7b023-1"
4 < Last-Modified: Tue, 15 Jun 2021 02:29:59 GMT
4 < Server: MinIO
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < Vary: Origin
4 < X-Amz-Request-Id: 1688A08EAD7AD1AE
4 < X-Cnection: close
4 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.000
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:30:00.406 [print] size 138140
* assert zipsize > 300 0.000
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_7_dkkbgt_brug\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.005
0.006
* url apiBaseUrl +'kadastralekaart/api/v4_0/full/custom' 0.006
02:30:03.927 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
7.679
Given request {format: 'gml',featuretypes: ["perceel", "kadastralegrens", "pand", "openbareruimtelabel"], geofilter: 'POLYGON ((154125.82490221905754879 463344.15998090390348807, 154404.92781473969807848 463761.69793803477659822, 154804.60318546928465366 463460.26679251249879599, 154447.35145744285546243 463040.49601208145031705, 154125.82490221905754879 463344.15998090390348807))' } 0.000
When method post 0.486
02:30:03.937 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/full/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 370
1 > Content-Type: application/json; charset=UTF-8
1 > Host: downloads.pdok.nl
1 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)
{"format":"gml","featuretypes":["perceel","kadastralegrens","pand","openbareruimtelabel"],"geofilter":"POLYGON ((154125.82490221905754879 463344.15998090390348807, 154404.92781473969807848 463761.69793803477659822, 154804.60318546928465366 463460.26679251249879599, 154447.35145744285546243 463040.49601208145031705, 154125.82490221905754879 463344.15998090390348807))"}

02:30:04.421 response time in milliseconds: 483.24
1 < 202
1 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
1 < Access-Control-Allow-Method: GET,POST,OPTIONS
1 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
1 < Access-Control-Allow-Origin: *
1 < Access-Control-Max-Age: 1000
1 < Content-Length: 187
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:30:04 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: close
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status"}},"downloadRequestId":"d0b267a4-285c-440f-415d-2f22ae5528a8"}
Then status 202 0.000
And match response == { downloadRequestId: '#uuid' , _links:'#notnull' } 0.000
And def links = response._links 0.000
And def downloadRequestId = response.downloadRequestId 0.000
And def status = response.status 0.001
And def statusurl = apiBaseUrl + links.status.href 0.001
* print 'links:' , links 0.015
02:30:04.439 [print] links: {
  "status": {
    "href": "/kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status"
  }
}
* print 'statusurl', statusurl 0.006
02:30:04.446 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status
* print 'extracId:', downloadRequestId 0.001
02:30:04.447 [print] extracId: d0b267a4-285c-440f-415d-2f22ae5528a8
Given url statusurl 0.000
When method GET 0.493
02:30:04.448 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status
2 > Accept-Encoding: gzip,deflate
2 > Connection: Keep-Alive
2 > Host: downloads.pdok.nl
2 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:30:04.941 response time in milliseconds: 492.84
2 < 200
2 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
2 < Access-Control-Allow-Method: GET,POST,OPTIONS
2 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
2 < Access-Control-Allow-Origin: *
2 < Access-Control-Max-Age: 1000
2 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
2 < Content-Length: 158
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:30:04 GMT
2 < Expires: 0
2 < Pragma: no-cache
2 < Server: Apache
2 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
2 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status"}},"progress":0,"status":"PENDING"}
* print "waiting update delta link" 0.004
02:30:04.946 [print] waiting update delta link
And retry until responseStatus == 201 0.000
Given url statusurl 0.000
When method GET 5.964
02:30:04.947 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status
3 > Accept-Encoding: gzip,deflate
3 > Connection: Keep-Alive
3 > Host: downloads.pdok.nl
3 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:30:05.425 response time in milliseconds: 478.35
3 < 200
3 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
3 < Access-Control-Allow-Method: GET,POST,OPTIONS
3 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
3 < Access-Control-Allow-Origin: *
3 < Access-Control-Max-Age: 1000
3 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
3 < Content-Length: 158
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:30:05 GMT
3 < Expires: 0
3 < Pragma: no-cache
3 < Server: Apache
3 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
3 < X-Cnection: close
{"_links":{"self":{"href":"/kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status"}},"progress":0,"status":"PENDING"}

02:30:05.428 retry condition not satisfied: responseStatus == 201
02:30:05.428 sleeping before retry #1
02:30:10.429 request:
4 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/full/custom/d0b267a4-285c-440f-415d-2f22ae5528a8/status
4 > Accept-Encoding: gzip,deflate
4 > Connection: Keep-Alive
4 > Host: downloads.pdok.nl
4 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:30:10.910 response time in milliseconds: 480.87
4 < 201
4 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
4 < Access-Control-Allow-Method: GET,POST,OPTIONS
4 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
4 < Access-Control-Allow-Origin: *
4 < Access-Control-Max-Age: 1000
4 < Cache-Control: no-cache, no-store, max-age=0, must-revalidate
4 < Content-Length: 167
4 < Content-Type: application/json
4 < Date: Tue, 15 Jun 2021 02:30:10 GMT
4 < Expires: 0
4 < Pragma: no-cache
4 < Server: Apache
4 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
4 < X-Cnection: close
{"_links":{"download":{"href":"/kadaster/kadastralekaart/download/v4_0/extract/07823603-f8d2-4809-a2d5-f15f31768e91/extract.zip"}},"progress":100,"status":"COMPLETED"}

02:30:10.910 retry condition satisfied
And def downloadlink = apiBaseUrl + response._links.download.href 0.001
And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
* print "downloadlink:", downloadlink 0.001
02:30:10.913 [print] downloadlink: https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/07823603-f8d2-4809-a2d5-f15f31768e91/extract.zip
Given url downloadlink 0.000
When method HEAD 0.689
02:30:10.914 request:
5 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/07823603-f8d2-4809-a2d5-f15f31768e91/extract.zip
5 > Accept-Encoding: gzip,deflate
5 > Connection: Keep-Alive
5 > Host: downloads.pdok.nl
5 > User-Agent: Apache-HttpClient/4.5.11 (Java/1.8.0_151)

02:30:11.603 response time in milliseconds: 688.40
5 < 200
5 < Accept-Ranges: bytes
5 < Access-Control-Allow-Headers: SOAPAction,X-Requested-With,Content-Type,Origin,Authorization,Accept
5 < Access-Control-Allow-Methods: POST, GET, OPTIONS, HEAD
5 < Access-Control-Allow-Origin: *
5 < Access-Control-Max-Age: 1000
5 < Content-Disposition: attachment; filename=extract.zip
5 < Content-Length: 6083971
5 < Content-Security-Policy: block-all-mixed-content
5 < Content-Type: application/zip
5 < Date: Tue, 15 Jun 2021 02:30:11 GMT
5 < Etag: "583232ce09a7869dbdf51395f6ea5e45-2"
5 < Last-Modified: Tue, 15 Jun 2021 02:30:10 GMT
5 < Server: MinIO
5 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
5 < Vary: Origin
5 < X-Amz-Request-Id: 1688A09144C52F97
5 < X-Cnection: close
5 < X-Xss-Protection: 1; mode=block
Then status 200 0.000
And match responseHeaders['Content-Length'][0] == '#notnull' 0.002
And match responseHeaders['Content-Type'][0] == 'application/zip' 0.002
And def zipsize = responseHeaders['Content-Length'][0] 0.000
* print "size", zipsize 0.000
02:30:11.608 [print] size 6083971
* assert zipsize > 300 0.001
* def mydownloads = Java.type('download.DataStorage') 0.000
* def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
* def db = new mydownloads 0.000
* eval db.mywriteln('- Test: T05_8_prodent_fabriek\n'+' Url: '+downloadlink+'\n Size: '+zipsize+'\n Time: '+ LocalDateTime.now() +'\n' , 'target/surefire-reports/fullcustomurl.yaml') 0.003