From 9ee8190f478cd1f6132c58334107ecaa5b406382 Mon Sep 17 00:00:00 2001 From: Owais Jamil Date: Sat, 16 May 2026 09:10:08 -0500 Subject: [PATCH] fix: correct jsonpath syntax for blob reference and type assertions --- test/smoke/blobs.hurl | 4 ++-- test/smoke/car-sync.hurl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/smoke/blobs.hurl b/test/smoke/blobs.hurl index 44af4ed..488993d 100644 --- a/test/smoke/blobs.hurl +++ b/test/smoke/blobs.hurl @@ -19,10 +19,10 @@ Content-Type: text/plain `hello blob` HTTP 200 [Captures] -blob_cid: jsonpath "$.blob.ref.$link" +blob_cid: jsonpath "$.blob.ref['$link']" [Asserts] header "content-type" contains "application/json" -jsonpath "$.blob.$type" == "blob" +jsonpath "$.blob['$type']" == "blob" jsonpath "$.blob.mimeType" == "text/plain" jsonpath "$.blob.size" == 10 diff --git a/test/smoke/car-sync.hurl b/test/smoke/car-sync.hurl index 4aaec96..183104f 100644 --- a/test/smoke/car-sync.hurl +++ b/test/smoke/car-sync.hurl @@ -82,10 +82,10 @@ Content-Type: text/plain `hello blob` HTTP 200 [Captures] -blob_cid: jsonpath "$.blob.ref.$link" +blob_cid: jsonpath "$.blob.ref['$link']" [Asserts] header "content-type" contains "application/json" -jsonpath "$.blob.$type" == "blob" +jsonpath "$.blob['$type']" == "blob" jsonpath "$.blob.mimeType" == "text/plain" jsonpath "$.blob.size" == 10 -- 2.51.2