Skip to content

Commit 05ac1cf

Browse files
fix(dropwizard-dedup): match keploy record YAML format exactly
Previous regen was missing three fields the canonical keploy-record fixtures carry. Added them so the docker mode replays cleanly: - spec.assertions.noise.header.Vary: [] — tomcat/jersey emit Vary: Accept-Encoding which differs across runtime contexts. - spec.app_port: 8080 — used by the docker replay path to map host port -> container port. Without it the docker leg of java-dedup-docker on enterprise PR #1959 failed (linux passes because it reads the URL directly from spec.req.url). - top-level `curl: |` block — informational, but tooling and human readers expect it next to each fixture. 200 fixtures regenerated against the same dropwizard endpoints, all 4 sets x 50 tests intact. Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
1 parent 3577a5b commit 05ac1cf

204 files changed

Lines changed: 2740 additions & 1000 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.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# empty mocks

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 16
2525
body: '{"healthy":true}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url http://127.0.0.1:8080/healthz \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 257
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=2' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 257
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=3' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 257
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=books&limit=5' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 184
2525
body: '{"category":"electronics","limit":1,"items":[{"sku":"EL-1","name":"Noise Cancelling Headphones","category":"electronics","status":"backorder","price":"199.99"}],"source":"warehouse-b"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=1' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 281
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=2' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 281
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=3' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 281
2525
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"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=electronics&limit=5' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

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

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,29 @@ spec:
1414
User-Agent: curl/8.19.0
1515
Accept: '*/*'
1616
body: ''
17-
timestamp: 2026-04-30T18:58:47Z
17+
timestamp: 2026-04-30T19:48:43Z
1818
resp:
1919
status_code: 200
2020
header:
21-
Date: 'Thu, 30 Apr 2026 18:58:47 GMT'
21+
Date: 'Thu, 30 Apr 2026 19:48:43 GMT'
2222
Content-Type: application/json
2323
Vary: Accept-Encoding
2424
Content-Length: 161
2525
body: '{"category":"home","limit":1,"items":[{"sku":"BK-1","name":"Clean Architecture","category":"books","status":"available","price":"32.50"}],"source":"warehouse-a"}'
2626
status_message: OK
2727
proto_major: 0
2828
proto_minor: 0
29-
timestamp: 2026-04-30T18:58:47Z
29+
timestamp: 2026-04-30T19:48:43Z
3030
objects: []
3131
assertions:
3232
noise:
33-
header.Date: []
34-
created: 1777575527
33+
header.Date: []
34+
header.Vary: []
35+
created: 1777578523
36+
app_port: 8080
37+
curl: |
38+
curl --request GET \
39+
--url 'http://127.0.0.1:8080/catalog?category=home&limit=1' \
40+
--header 'Host: 127.0.0.1:8080' \
41+
--header 'User-Agent: curl/8.19.0' \
42+
--header 'Accept: */*'

0 commit comments

Comments
 (0)