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/T06_DeltaCustomIniteel.feature 114 0 0 0 0 114 3 0 3 48.207 Passed
Tags: @SMOKE
Feature download/T06_DeltaCustomIniteel.feature
DKK Api geeft Custom delta initial request Dit feature test zowel de intiele download voor een specifiek interessegebied
15.220
* def requestparams = {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
02:29:10.353 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
* print "Initeel:", requestparams 0.010
02:29:10.363 [print] Initeel: {
  "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))"
}
* def dodelta = call read('DeltaCustomargs.feature') requestparams 7.616
download/DeltaCustomargs.feature 0.000
{
  "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))"
}
> * url apiBaseUrl +'kadastralekaart/api/v4_0/delta/custom' 0.005
> * def requestparams = __arg 0.000
> * print requestparams 0.002
02:29:10.392 [print] {
  "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))"
}
> Given request requestparams 0.000
> When method post 0.490
02:29:10.400 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/delta/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:10.882 response time in milliseconds: 481.57
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: 188
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:10 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/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/status"}},"downloadRequestId":"83628cca-3da6-4a79-427f-8534fe52d3c5"}
> Then status 202 0.000
> And match response == { downloadRequestId: '#uuid' , _links:'#notnull'} 0.000
> And def downloadRequestId = response.downloadRequestId 0.002
> And def links = response._links 0.001
> * print "delta status links:" links 0.000
02:29:10.888 [print]
> And def statusurl = apiBaseUrl + links.status.href 0.002
> * print 'statusurl', statusurl 0.002
02:29:10.893 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/status
> Given url statusurl 0.000
> When method GET 0.561
02:29:10.895 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/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:11.454 response time in milliseconds: 559.09
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: 159
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:11 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/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/status"}},"progress":0,"status":"PENDING"}
> And retry until responseStatus == 201 0.000
> Given url statusurl 0.000
> When method GET 5.982
02:29:11.456 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/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:11.936 response time in milliseconds: 479.69
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: 161
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:11 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/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/status"}},"progress":100,"status":"RUNNING"}

02:29:11.940 retry condition not satisfied: responseStatus == 201
02:29:11.940 sleeping before retry #1
02:29:16.946 request:
4 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/83628cca-3da6-4a79-427f-8534fe52d3c5/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:17.436 response time in milliseconds: 489.50
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:17 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/d3b70f8c-5398-4bfa-ae88-3b9e4e7e7699/extract.zip"}},"progress":100,"status":"COMPLETED"}

02:29:17.436 retry condition satisfied
> And def downloadlink = response._links 0.000
> And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
> * print "downloadlink:", downloadlink 0.001
02:29:17.438 [print] downloadlink: {
  "download": {
    "href": "/kadaster/kadastralekaart/download/v4_0/extract/d3b70f8c-5398-4bfa-ae88-3b9e4e7e7699/extract.zip"
  }
}
> Given url apiBaseUrl + downloadlink.download.href 0.000
> When method HEAD 0.531
02:29:17.440 request:
5 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/d3b70f8c-5398-4bfa-ae88-3b9e4e7e7699/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:17.970 response time in milliseconds: 529.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: 2106761
5 < Content-Security-Policy: block-all-mixed-content
5 < Content-Type: application/zip
5 < Date: Tue, 15 Jun 2021 02:29:17 GMT
5 < Etag: "d0b9712270fc850702fa98c42721e6f9-1"
5 < Last-Modified: Tue, 15 Jun 2021 02:29:12 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: 1688A084CCF0ACED
5 < X-Cnection: close
5 < X-Xss-Protection: 1; mode=block
> Then status 200 0.000
> And match responseHeaders['Content-Length'][0] == '#notnull' 0.003
> And match responseHeaders['Content-Type'][0] == 'application/zip' 0.000
> And def zipsize = responseHeaders['Content-Length'][0] 0.001
> * print "###" 0.000
02:29:17.977 [print] ###
> * print "location", apiBaseUrl + downloadlink.download.href 0.000
02:29:17.979 [print] location https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/d3b70f8c-5398-4bfa-ae88-3b9e4e7e7699/extract.zip
> * print "size", zipsize 0.000
02:29:17.979 [print] size 2106761
> * assert zipsize > 600 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: DeltaUpdate_' + __loop + ' '+ '\n leveringsId:'+ downloadRequestId +'\n'+' Url:'+apiBaseUrl + downloadlink.download.href+'\n Size:'+zipsize+'\n Time:'+ LocalDateTime.now() +'\n' , 'target/surefire-reports/delta_url.yaml') 0.000
15.196
* def requestparams = {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
02:29:10.811 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
* print "Initeel:", requestparams 0.001
02:29:10.813 [print] Initeel: {
  "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))"
}
* def dodelta = call read('DeltaCustomargs.feature') requestparams 7.601
download/DeltaCustomargs.feature 0.000
{
  "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))"
}
> * url apiBaseUrl +'kadastralekaart/api/v4_0/delta/custom' 0.000
> * def requestparams = __arg 0.000
> * print requestparams 0.000
02:29:10.823 [print] {
  "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))"
}
> Given request requestparams 0.001
> When method post 0.535
02:29:10.826 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/delta/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:11.360 response time in milliseconds: 534.05
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: 188
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:11 GMT
1 < Server: Apache
1 < Strict-Transport-Security: [max-age=31536000; includeSubDomains; preload, max-age=3600; includeSubDomains; preload]
1 < X-Cnection: [close, close]
{"_links":{"status":{"href":"/kadaster/kadastralekaart/download/v4_0/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/status"}},"downloadRequestId":"53b22f3b-4334-4671-5413-3e2dafe63298"}
> Then status 202 0.000
> And match response == { downloadRequestId: '#uuid' , _links:'#notnull'} 0.000
> And def downloadRequestId = response.downloadRequestId 0.000
> And def links = response._links 0.000
> * print "delta status links:" links 0.000
02:29:11.363 [print]
> And def statusurl = apiBaseUrl + links.status.href 0.000
> * print 'statusurl', statusurl 0.000
02:29:11.364 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/status
> Given url statusurl 0.000
> When method GET 0.520
02:29:11.372 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/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:11.884 response time in milliseconds: 511.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: 159
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:11 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/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/status"}},"progress":0,"status":"PENDING"}
> And retry until responseStatus == 201 0.000
> Given url statusurl 0.000
> When method GET 5.992
02:29:11.886 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/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:12.381 response time in milliseconds: 494.27
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: 161
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:12 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/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/status"}},"progress":100,"status":"RUNNING"}

02:29:12.382 retry condition not satisfied: responseStatus == 201
02:29:12.382 sleeping before retry #1
02:29:17.383 request:
4 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/53b22f3b-4334-4671-5413-3e2dafe63298/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:17.877 response time in milliseconds: 494.13
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:17 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/1c152c92-555c-4981-a248-35b63642d09c/extract.zip"}},"progress":100,"status":"COMPLETED"}

02:29:17.878 retry condition satisfied
> And def downloadlink = response._links 0.000
> And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
> * print "downloadlink:", downloadlink 0.000
02:29:17.879 [print] downloadlink: {
  "download": {
    "href": "/kadaster/kadastralekaart/download/v4_0/extract/1c152c92-555c-4981-a248-35b63642d09c/extract.zip"
  }
}
> Given url apiBaseUrl + downloadlink.download.href 0.000
> When method HEAD 0.518
02:29:17.880 request:
5 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/1c152c92-555c-4981-a248-35b63642d09c/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:18.398 response time in milliseconds: 517.54
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: 3132712
5 < Content-Security-Policy: block-all-mixed-content
5 < Content-Type: application/zip
5 < Date: Tue, 15 Jun 2021 02:29:18 GMT
5 < Etag: "0c075eacce0f4254fc6e72bdad8f03f6-1"
5 < Last-Modified: Tue, 15 Jun 2021 02:29:12 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: 1688A084E554ED67
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.001
> * print "###" 0.002
02:29:18.403 [print] ###
> * print "location", apiBaseUrl + downloadlink.download.href 0.000
02:29:18.404 [print] location https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/1c152c92-555c-4981-a248-35b63642d09c/extract.zip
> * print "size", zipsize 0.000
02:29:18.405 [print] size 3132712
> * assert zipsize > 600 0.000
> * def mydownloads = Java.type('download.DataStorage') 0.000
> * def LocalDateTime = Java.type('java.time.LocalDateTime') 0.000
> * def db = new mydownloads 0.002
> * eval db.mywriteln('- Test: DeltaUpdate_' + __loop + ' '+ '\n leveringsId:'+ downloadRequestId +'\n'+' Url:'+apiBaseUrl + downloadlink.download.href+'\n Size:'+zipsize+'\n Time:'+ LocalDateTime.now() +'\n' , 'target/surefire-reports/delta_url.yaml') 0.007
17.790
* def requestparams = {format: "gml",featuretypes: ["perceel","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
02:29:11.621 base url : {
  "apiBaseUrl": "https://downloads.pdok.nl/"
}
* print "Initeel:", requestparams 0.000
02:29:11.622 [print] Initeel: {
  "format": "gml",
  "featuretypes": [
    "perceel",
    "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))"
}
* def dodelta = call read('DeltaCustomargs.feature') requestparams 8.906
download/DeltaCustomargs.feature 0.000
{
  "format": "gml",
  "featuretypes": [
    "perceel",
    "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))"
}
> * url apiBaseUrl +'kadastralekaart/api/v4_0/delta/custom' 0.001
> * def requestparams = __arg 0.000
> * print requestparams 0.000
02:29:11.645 [print] {
  "format": "gml",
  "featuretypes": [
    "perceel",
    "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))"
}
> Given request requestparams 0.000
> When method post 1.866
02:29:11.653 request:
1 > POST https://downloads.pdok.nl/kadastralekaart/api/v4_0/delta/custom
1 > Accept-Encoding: gzip,deflate
1 > Connection: Keep-Alive
1 > Content-Length: 236
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"],"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:13.511 response time in milliseconds: 1857.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: 188
1 < Content-Type: application/json
1 < Date: Tue, 15 Jun 2021 02:29:13 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/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/status"}},"downloadRequestId":"fa97e205-f6ea-457e-64df-79c461ee299c"}
> Then status 202 0.000
> And match response == { downloadRequestId: '#uuid' , _links:'#notnull'} 0.000
> And def downloadRequestId = response.downloadRequestId 0.000
> And def links = response._links 0.000
> * print "delta status links:" links 0.000
02:29:13.512 [print]
> And def statusurl = apiBaseUrl + links.status.href 0.000
> * print 'statusurl', statusurl 0.000
02:29:13.513 [print] statusurl https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/status
> Given url statusurl 0.000
> When method GET 0.510
02:29:13.514 request:
2 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/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:14.024 response time in milliseconds: 509.20
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: 159
2 < Content-Type: application/json
2 < Date: Tue, 15 Jun 2021 02:29:13 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/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/status"}},"progress":0,"status":"PENDING"}
> And retry until responseStatus == 201 0.000
> Given url statusurl 0.000
> When method GET 5.980
02:29:14.025 request:
3 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/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:14.513 response time in milliseconds: 487.46
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: 160
3 < Content-Type: application/json
3 < Date: Tue, 15 Jun 2021 02:29:14 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/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/status"}},"progress":50,"status":"RUNNING"}

02:29:14.514 retry condition not satisfied: responseStatus == 201
02:29:14.514 sleeping before retry #1
02:29:19.515 request:
4 > GET https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/delta/custom/fa97e205-f6ea-457e-64df-79c461ee299c/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:20.001 response time in milliseconds: 486.06
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:19 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/28023775-5ff7-4e90-a042-b364a023b6ff/extract.zip"}},"progress":100,"status":"COMPLETED"}

02:29:20.005 retry condition satisfied
> And def downloadlink = response._links 0.000
> And match response == { _links:'#notnull' , progress:100, status:'COMPLETED' } 0.000
> * print "downloadlink:", downloadlink 0.000
02:29:20.005 [print] downloadlink: {
  "download": {
    "href": "/kadaster/kadastralekaart/download/v4_0/extract/28023775-5ff7-4e90-a042-b364a023b6ff/extract.zip"
  }
}
> Given url apiBaseUrl + downloadlink.download.href 0.000
> When method HEAD 0.518
02:29:20.006 request:
5 > HEAD https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/28023775-5ff7-4e90-a042-b364a023b6ff/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:20.524 response time in milliseconds: 517.33
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: 5239468
5 < Content-Security-Policy: block-all-mixed-content
5 < Content-Type: application/zip
5 < Date: Tue, 15 Jun 2021 02:29:20 GMT
5 < Etag: "0fc646a774c55df6c23076e53fad4f75-1"
5 < Last-Modified: Tue, 15 Jun 2021 02:29:16 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: 1688A08564EB6FBE
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 "###" 0.000
02:29:20.525 [print] ###
> * print "location", apiBaseUrl + downloadlink.download.href 0.000
02:29:20.526 [print] location https://downloads.pdok.nl//kadaster/kadastralekaart/download/v4_0/extract/28023775-5ff7-4e90-a042-b364a023b6ff/extract.zip
> * print "size", zipsize 0.000
02:29:20.526 [print] size 5239468
> * assert zipsize > 600 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: DeltaUpdate_' + __loop + ' '+ '\n leveringsId:'+ downloadRequestId +'\n'+' Url:'+apiBaseUrl + downloadlink.download.href+'\n Size:'+zipsize+'\n Time:'+ LocalDateTime.now() +'\n' , 'target/surefire-reports/delta_url.yaml') 0.000