Skip to content

Commit 89f2a72

Browse files
fix(dropwizard-dedup): noise Content-Length, restore full header capture
Previous attempt stripped Vary + Content-Length from the captured response header set to look like Spring's keploy-record output — that broke linux replay too because keploy strict-compares the set of response headers, not just values: dropwizard's Jetty actually emits Vary + Content-Length on the wire, so a fixture that omits them is "missing" a header from the live response and fails the match across all 200 tests on both linux and docker. Restores full header capture (Date, Content-Type, Vary, Content- Length) and adds `header.Content-Length: []` to noise on top of Date and Vary. That keeps the header set equal between fixture and live response while letting docker-mode framing (chunked vs explicit Content-Length) ignore the value drift that originally broke docker. Reverts the `127.0.0.1` -> `localhost` host swap from the previous attempt as well; it was unrelated to the docker failure (keploy sends the recorded Host header verbatim) and only added churn. Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent 200c22c commit 89f2a72

200 files changed

Lines changed: 2322 additions & 1600 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dropwizard-dedup/keploy/test-set-0/tests/test-1.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/healthz
11+
url: http://127.0.0.1:8080/healthz
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 16
2325
body: '{"healthy":true}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url http://localhost:8080/healthz \
37-
--header 'Host: localhost:8080' \
40+
--url http://127.0.0.1:8080/healthz \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-10.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=books&limit=2
11+
url: http://127.0.0.1:8080/catalog?category=books&limit=2
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 257
2325
body: '{"category":"books","limit":2,"items":[{"sku":"BK-1","name":"Clean Architecture","category":"books","status":"available","price":"32.50"},{"sku":"BK-2","name":"Effective Java","category":"books","status":"available","price":"45.00"}],"source":"warehouse-a"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=books&limit=2' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=2' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-11.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=books&limit=3
11+
url: http://127.0.0.1:8080/catalog?category=books&limit=3
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 257
2325
body: '{"category":"books","limit":3,"items":[{"sku":"BK-1","name":"Clean Architecture","category":"books","status":"available","price":"32.50"},{"sku":"BK-2","name":"Effective Java","category":"books","status":"available","price":"45.00"}],"source":"warehouse-a"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=books&limit=3' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=3' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-12.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=books&limit=5
11+
url: http://127.0.0.1:8080/catalog?category=books&limit=5
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 257
2325
body: '{"category":"books","limit":5,"items":[{"sku":"BK-1","name":"Clean Architecture","category":"books","status":"available","price":"32.50"},{"sku":"BK-2","name":"Effective Java","category":"books","status":"available","price":"45.00"}],"source":"warehouse-a"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=books&limit=5' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=5' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-13.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=electronics&limit=1
11+
url: http://127.0.0.1:8080/catalog?category=electronics&limit=1
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 184
2325
body: '{"category":"electronics","limit":1,"items":[{"sku":"EL-1","name":"Noise Cancelling Headphones","category":"electronics","status":"backorder","price":"199.99"}],"source":"warehouse-b"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=electronics&limit=1' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=1' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-14.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=electronics&limit=2
11+
url: http://127.0.0.1:8080/catalog?category=electronics&limit=2
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 281
2325
body: '{"category":"electronics","limit":2,"items":[{"sku":"EL-1","name":"Noise Cancelling Headphones","category":"electronics","status":"backorder","price":"199.99"},{"sku":"EL-2","name":"USB-C Dock","category":"electronics","status":"available","price":"89.00"}],"source":"warehouse-b"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=electronics&limit=2' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=2' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-15.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=electronics&limit=3
11+
url: http://127.0.0.1:8080/catalog?category=electronics&limit=3
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 281
2325
body: '{"category":"electronics","limit":3,"items":[{"sku":"EL-1","name":"Noise Cancelling Headphones","category":"electronics","status":"backorder","price":"199.99"},{"sku":"EL-2","name":"USB-C Dock","category":"electronics","status":"available","price":"89.00"}],"source":"warehouse-b"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=electronics&limit=3' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=3' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

dropwizard-dedup/keploy/test-set-0/tests/test-16.yaml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,36 @@ spec:
88
method: GET
99
proto_major: 1
1010
proto_minor: 1
11-
url: http://localhost:8080/catalog?category=electronics&limit=5
11+
url: http://127.0.0.1:8080/catalog?category=electronics&limit=5
1212
header:
13-
Host: 'localhost:8080'
13+
Host: '127.0.0.1:8080'
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T20:34:29Z
17+
timestamp: 2026-04-30T20:48:01Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 20:34:29 GMT'
21+
Date: 'Thu, 30 Apr 2026 20:48:01 GMT'
2222
Content-Type: application/json
23+
Vary: Accept-Encoding
24+
Content-Length: 281
2325
body: '{"category":"electronics","limit":5,"items":[{"sku":"EL-1","name":"Noise Cancelling Headphones","category":"electronics","status":"backorder","price":"199.99"},{"sku":"EL-2","name":"USB-C Dock","category":"electronics","status":"available","price":"89.00"}],"source":"warehouse-b"}'
2426
status_message: OK
2527
proto_major: 0
2628
proto_minor: 0
27-
timestamp: 2026-04-30T20:34:29Z
29+
timestamp: 2026-04-30T20:48:01Z
2830
objects: []
2931
assertions:
3032
noise:
3133
header.Date: []
32-
created: 1777581269
34+
header.Vary: []
35+
header.Content-Length: []
36+
created: 1777582081
3337
app_port: 8080
3438
curl: |
3539
curl --request GET \
36-
--url 'http://localhost:8080/catalog?category=electronics&limit=5' \
37-
--header 'Host: localhost:8080' \
40+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=5' \
41+
--header 'Host: 127.0.0.1:8080' \
3842
--header 'User-Agent: curl/8.19.0' \
3943
--header 'Accept: */*'

0 commit comments

Comments
 (0)