Skip to content

Commit

Permalink
Corrected errors in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vasan-agrostar committed Jan 7, 2024
1 parent a631c2b commit 3e324d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions examples/tests-bundle.zzb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ variables:
addressVar:
streetAddress: 7th street
city: Nara
postalCode: "560002" # string. This will make a difference when used in the body
postalCode: "560001" # string. This will make a difference when used in the body
getUrl: /get
fooVar: bar
agrostar: https://test-farmerapp.agrostar.in
Expand Down Expand Up @@ -277,7 +277,7 @@ requests:
$.data.age.something: 55 # jsonpath should take care of this.
$.data.numbers[5]: 0 # jsonpath should take care of this

# This request should tests should all fail due to bad tests schema
# This request tests should all fail due to bad tests schema
# Ensure we don't crash on these.
tests-negative-schema:
method: POST
Expand All @@ -301,7 +301,7 @@ requests:
url: /post
body:
name: Tom
address: { city: Bangalore, pincode: 560001 }
address: { city: Bangalore, pincode: 560002 }
setvars:
nameVar: $.data.name
addressVarNum: $.data.address
Expand All @@ -327,7 +327,7 @@ requests:
tests:
$.data.name: Tom
$.data.city: Bangalore
$.data.pincode: 560001
$.data.pincode: 560002
$.data.customHeader: Custom Header Value

capture-checks-object-option-1:
Expand All @@ -343,7 +343,7 @@ requests:
tests:
$.data.name: Tom
$.data.address.city: Bangalore
$.data.address.pincode: 560001 # this time it is NOT a string.
$.data.address.pincode: 560002 # this time it is NOT a string.

capture-checks-object-option-2:
method: POST
Expand All @@ -353,4 +353,4 @@ requests:
address: $addressVarNum
tests:
$.data.name: Tom
$.data.address: { $eq: { city: Bangalore, pincode: 560001 } }
$.data.address: { $eq: { city: Bangalore, pincode: 560002 } }

0 comments on commit 3e324d4

Please sign in to comment.